julianschuler / mcp23s08 Goto Github PK
View Code? Open in Web Editor NEWArduino library for the MCP23S08 SPI I/O expander
License: MIT License
Arduino library for the MCP23S08 SPI I/O expander
License: MIT License
Hello Julian,
Thank you for your library.
Can you confirm that it is possible to use two expanders with this library by creating two instances using the constructor MCP23S08(uint8_t csPin, uint8_t deviceAddr) to define the two different CS_pins and device addresses?
Thanks
Geoff
Tested on Teensy 3.2, Arduino 1.8.13
Seems digitalWriteIO only works on 1 pin at a time. Is this correct?
if you set pin 0 high for example, and then set pin pin 4 high,
pin 0 goes low.
Only this function seems to work for setting multiple pins:
// set pin 0 and 4
expander.setOutputStates(B00010001);
First, add this to your Arduino IDE preferences...
https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
Second, The sketch will not compile until you add...
#include <Arduino.h>
into the MCP23S08.h and MCP23S08.cpp files.
This is not strictly an issue with the library but rather a prerequisite of 'platform = espressif32' and VS Code/PlatformIO IDE.
I would like to create a new spiClass for the ESP32's HSPI spi bus and use that in the MCP23S08 library.
(The default spi bus VHSPI is used for touch display and SD (3 devices).)
Is it possible to publish this library to PlatformIO?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.