Open tunstek opened 2 years ago
After sending initial vector chip has to set sdata pin to low, if it does not it means that chip is not in programming mode and something is wrong. This is why device id is 0 because chip is sending nothing. Double check connections and cypress chip.
Maybe uno has different pin numbers to atmega168?
Check if each of pins SCL_PIN
, RES_PIN
and SDA_PIN
corresponds to correct physical pins on the uno board
Initialization is getting stuck in infinite loop in data_pull() routine on line 92 of main.cpp
Commenting out this line will allow initialization to complete but sending a 'd' over serial to get the device ID gives an output of 0.
I've made the relevant changes to platformio.ini for the Uno but it is possible I'm missing something?
Here are changes I've made to platformio.ini: