adrien3d / IO_ADS1118

Library for the ADS1118
MIT License
0 stars 0 forks source link

i2C to spi #1

Open XORGIN opened 1 month ago

XORGIN commented 1 month ago

How to change for spi?

thanks

adrien3d commented 1 month ago

Hello, what do you mean ? It is already using SPI.

XORGIN commented 1 month ago

ok cause in header is writen i2C and tested with spi display, it doesn't work

adrien3d commented 1 month ago

Which header (I guess file) are you referring to? Are you sure you are using the right pins?

XORGIN commented 1 month ago

in the file IOADS1118.h. I used an esp32 + sharp memory.

adrien3d commented 1 month ago

Ok, fixed: https://github.com/adrien3d/IO_ADS1118/blob/master/src/IO_ADS1118.h#L6 You should look at what are the default Arduino ESP32 SPI pins, for ths CS (chip select), it can be configured.

XORGIN commented 1 month ago

Ok i used one different from ads1118 and sharp display but seems still a conflict