Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jjcarstens/rpi_pinout_live
Phoenix LiveView component to render Raspberry Pi pinout from https://pinout.xyz
https://github.com/jjcarstens/rpi_pinout_live
Last synced: 3 months ago
JSON representation
Phoenix LiveView component to render Raspberry Pi pinout from https://pinout.xyz
- Host: GitHub
- URL: https://github.com/jjcarstens/rpi_pinout_live
- Owner: jjcarstens
- License: other
- Created: 2020-06-08T18:24:07.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-06-08T18:49:32.000Z (over 4 years ago)
- Last Synced: 2024-09-18T14:10:53.424Z (4 months ago)
- Language: Elixir
- Size: 1.01 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# RpiPinoutLive
Phoenix LiveView component to render Raspberry Pi pinout from https://pinout.xyz
This is a derivative of https://pinout.xyz by [Pinout.xyz](https://github.com/gadgetoid/Pinout.xyz),
used under [CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/)Each pin is a clickable element that will send a `rpi_pinout` event with
the correlating pin and GPIO number values:```elixir
def handle_event("rpi_pinout", %{"gpio" => gpio, "pin" => pin}, socket) do
# Handle GPIO things here
# i.e. Turn on/off pin, Set configuration,
end
```Options:
* `legend` - boolean for showing the pins color legend. Defaults to `true`
* `target` - optional target to send click events to
* `selected_pins` - list of pins that should be highlighted as selected
* `selected_gpio` - list of gpio that should be highlighted as selected
* `disabled_pins` - list of pins that should not be clickable (also highlights)
* `disabled_gpio` - list of gpio that should not be clickable (also highlights)![rpi_pinout_live](rpi_pinout_live.gif)