Jerry,
I changed a number of pin assignments for the Nano, to make the code work:
//DB2OO, 18.1.20---------------------------------------------------------- |
* PIN Connections Arduino Nano: |
* NANO: const int buttonPin = 8--> 11; // the number of the pushbutton pin |
* NANO const int backButtonPin = 9 --> 12; |
* NANO: const int buttonPin = D0; // the number of the pushbutton pin |
* NANO const int backButtonPin = SD3; |
* NANO: A4, A5 for SDA, SCL for I2C |
* ESP8266: D1, D2 for I2C |
* nSEL for TX=D5, RX=D7, ??=11, ??=12 |
* const int SI_nSEL[2] = { 7,8, 11, 12 }; |
* const int SI_SCLK = 6 ; |
* NANO: const int SI_SDI = 2 --> 9? |
* NANO: const int SI_SDO = 3 --> 10;? |
* ESP8266: const int SI_SDI = SD1 ; --> WILL NEED A CHANGE |
* ESP8266: const int SI_SDO = SD2; --> will need a change |
* Clock and data pints are shared with SI4432 |
* Parallel mode bit 0 pin number, according below line the PE4302 is connected to lines A0,A1,A2,A3,A4,A5 |
* #define PE4302_pinbase A0 |
* LED, that blinks during data transfer |
* #if defined(ARDUINO_ARCH_SAMD) |
* #define tinySA_led LED_BUILTIN |
/BTW: I have no PE4302 connected and have put those code sections into #ifdef's. On the Nano D2 and D3 should be kept available for the encoder, as they support interrupts. Moreover I did not yet test on an ESP8266, which unfortunately does not have enough IOs, to support display and encoder.
--
Joerg, ex-DB2OO