tinygo-org / drivers

TinyGo drivers for sensors, displays, wireless adaptors, and other devices that use I2C, SPI, GPIO, ADC, and UART interfaces.
https://tinygo.org
BSD 3-Clause "New" or "Revised" License
617 stars 195 forks source link

wifinina reset has polarity #307

Open sago35 opened 3 years ago

sago35 commented 3 years ago

The following is a branch depending on the value of inverted_reset. For now, I think only the Arduino MKR WiFi 1010 is inverted.

I would like to put this process somewhere, but my idea is to modify wifinina.Configure() to accept something like wifinina.Config{}. This change will break compatibility. I thought about reversing the logic in the machine package, but I'm not sure if that's a good idea.

https://github.com/arduino-libraries/WiFiNINA/blob/dcab40253ec162644f70ac212437c1b97811cd2b/src/utility/spi_drv.cpp#L107-L110

Arduino MKR WiFi 1010 image

PyPortal image

scottfeldman commented 2 years ago

Looks like duplicate issue of #386