Nextion displays and memory sieves
You know the phrase 'memory like a sieve'? Well, that's mine. I just received a 3.2" Nextion display via Aliexpress which arrived after only a few days from China. This was to be a display for the M17 hotspot. But there were a few unexpected hurdles! First off, I could not remember the connections from the GPIO pins of the Pi to the Nextion. It's actually really easy, pins 4, 6, 8 and 10, but it took me an age to find that information on the web. Onthe Pi 4B the GPIO pins are numbered from the top (the opposite end from the USB and Ethernet connectors) with odd numbers on the left and even on the right. There are plenty of diagrams on the web. So pin 4, which is +5V is the second one down on the right, pin 6 is next down and 0v, then pin 8 which is transmitted data from the Pi, and pin 10 is received data to the Pi. The Nextion display came with a cable with a connector for the display. This has red for +ve, blue for data from the display, yellow for data to the display and black for 0V.
Continue reading...