mcp23017: implement pin toggling

Also add an example for using multiple devices.
This commit is contained in:
Roger Peppe
2020-08-24 11:55:00 +01:00
committed by Ron Evans
parent edf9ba92be
commit ce5e443084
6 changed files with 146 additions and 0 deletions
+2
View File
@@ -85,6 +85,8 @@ smoke-test:
@md5sum ./build/test.hex
tinygo build -size short -o ./build/test.hex -target=itsybitsy-m0 ./examples/mcp23017/main.go
@md5sum ./build/test.hex
tinygo build -size short -o ./build/test.hex -target=itsybitsy-m0 ./examples/mcp23017-multiple/main.go
@md5sum ./build/test.hex
tinygo build -size short -o ./build/test.hex -target=itsybitsy-m0 ./examples/mcp3008/main.go
@md5sum ./build/test.hex
tinygo build -size short -o ./build/test.hex -target=microbit ./examples/microbitmatrix/main.go