¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Re: New tinySA.exe uploaded


 

Jerry,
I changed a number of pin assignments for the Nano, to make the code work:

//DB2OO, 18.1.20----------------------------------------------------------
/***
* PIN Connections Arduino Nano:
* Encoder:
* int R_pinEncA=D3;
* int R_pinEncB=D2;
* 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;
* Display:
* NANO: A4, A5 for SDA, SCL for I2C
* ESP8266: D1, D2 for I2C
*
* SI4432:
* 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
*
* Attenuator:
* #ifdef PE4302_serial
* Clock and data pints are shared with SI4432
* Serial mode LE pin
* #define PE4302_en 10
* #else
* 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
* #endif
*
* LED, that blinks during data transfer
* #if defined(ARDUINO_ARCH_SAMD)
* #define tinySA_led 13
* #else
* #define tinySA_led LED_BUILTIN
* #endif
/
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

Join [email protected] to automatically receive all group messages.