Using GPIO pins on a Lyra-T board
Posted: Sun Feb 26, 2023 11:19 pm
Hello, I am trying to use the JTAG header pins as GPIO pins on a Lyra-T board.
I have switched the DIP switches as per the Hardware Ref to enable JTAG (DIP switches 3 to 7 ON).
I want to run two rotary encoders using the four available pins (earth being provided on a power rail). I am using the ESP-IDF, my code works fine on an ESP32 board. Obviously I have changed the pin numbers to suit the Lyra-T.
The encoder connected to JTAG pins 3 and 4 (WTDI, GPIO 12 and WTMS, GPIO14) works, the encoder connected to JTAG pins 1 and 2 (WTDO, GPIO 15 and WTCK, GPIO15) doesn't. Swapping them over gives the same result so it is not a faulty encoder.
Any ideas why this would be, and how to fix it?
(I'm assuming that the JTAG header is the best option to use - I will have a display connected to the I2C header, and the other headers seem to have multiple uses).
Thanks!
I have switched the DIP switches as per the Hardware Ref to enable JTAG (DIP switches 3 to 7 ON).
I want to run two rotary encoders using the four available pins (earth being provided on a power rail). I am using the ESP-IDF, my code works fine on an ESP32 board. Obviously I have changed the pin numbers to suit the Lyra-T.
The encoder connected to JTAG pins 3 and 4 (WTDI, GPIO 12 and WTMS, GPIO14) works, the encoder connected to JTAG pins 1 and 2 (WTDO, GPIO 15 and WTCK, GPIO15) doesn't. Swapping them over gives the same result so it is not a faulty encoder.
Any ideas why this would be, and how to fix it?
(I'm assuming that the JTAG header is the best option to use - I will have a display connected to the I2C header, and the other headers seem to have multiple uses).
Thanks!