Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/informaticore/toit-pi4ioe5v9535
Toit library for the PI4IOE5V6416
https://github.com/informaticore/toit-pi4ioe5v9535
Last synced: about 1 month ago
JSON representation
Toit library for the PI4IOE5V6416
- Host: GitHub
- URL: https://github.com/informaticore/toit-pi4ioe5v9535
- Owner: Informaticore
- License: mit
- Created: 2024-03-13T22:24:38.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-03-14T15:08:06.000Z (9 months ago)
- Last Synced: 2024-03-15T11:55:24.957Z (9 months ago)
- Language: Toit
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# toit-pi4ioe5v9535
Library to control a PI4IOE5V9535 GPIO Expander. Other variants of the PI4IOE5Vxxx should work as well but I have not tested it yet.```
import i2c
import pi4ioex
import gpiomain:
bus0 := i2c.Bus
--sda=gpio.Pin 9
--scl=gpio.Pin 10print "Bus0: $bus0.scan"
ioA := pi4ioex.PI4IOEX (bus0.device 0x20)
P0 := ioA.get-pin 1 0
while true:
print "an"
P0.on
sleep --ms=1000
print "aus"
P0.off
sleep --ms=1000
```