You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi firstly, your library is super. thanks for that.
I'm using ESP32 and have tried output with your library works great but it does takes the input.
Used the below code:
Hi firstly, your library is super. thanks for that.
I'm using ESP32 and have tried output with your library works great but it does takes the input.
Used the below code:
//---------------------------------------------------------------------------------------
#include <MCP23S17.h>
#ifdef PIC32MX
#include <DSPI.h>
DSPI0 SPI;
#else
#include <SPI.h>
#endif
const uint8_t targetPin = 15;
const uint8_t chipSelect = 10;
MCP23S17 Bank1(&SPI, chipSelect, 0);
void setup() {
Serial.begin(115200);
Bank1.begin();
delay(50);
for (int x = 0; x < 16; x++) {
Bank1.pinMode(x, INPUT_PULLUP);
}
}
void loop() {
for (int x = 0; x < 15; x++) {
Serial.print(Bank1.digitalRead(x));
Serial.print(" ");
}
Serial.println(Bank1.digitalRead(15));
}
//---------------------------------------------------------------------------------------
Expected output -> 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
Obtained result -> 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
also it doesn't detects any input high and lows.
Please help to fix it.
The text was updated successfully, but these errors were encountered: