shred / kaminari

AS3935 and ESP8266 based Franklin Lightning Detector
GNU General Public License v3.0
41 stars 10 forks source link

Can I use I2C interface? #9

Open diegostf opened 11 months ago

diegostf commented 11 months ago

Hi, I'm using AS3935 with ESP32-S2, but I get a lot of wrong information from the registers when using 3,3V. I read some reports of problems with the I2C interface and saw many projects using SPI. Did you have problems using I2C and that's why you chose SPI?

shred commented 11 months ago

Hi diegostf!

No, I started with SPI right away, mainly because all examples I could find were using SPI. It also turned out to be very stable, so I saw no reason to switch to I²C.

I²C is also much slower than SPI, and requires an additional external pull-up resistor on the SCL line.