Use the OpenSmart TFT IL9320 Display 2.8 inch with touch function as a scene controller
The test application OpenSmartLcdTouch at ../../Tests/OpenSmartLcdTouch shows the touch point coordinates and pressure.
VERY IMPORTANT: After every getPoint call, you have to set the 4 pins back to inputs again, otherwise the writing to the TFT display fails!!!!!
For better pressure precision, we need to know the resistance between X+ and X-. Use any multimeter to read it. For the one we're using, its 397 ohms.
Programmimng the Arduino with pio run -t upload only works when the display is unplugged from the Uno.
With tft.setRotation(0), which is portrait mode with the icons at the bottom, the touch screen coordinate numbers range as follows:
Side | Coordinate |
---|---|
Left | 914 |
Right | 122 |
Top | 932 |
Bottom | 91 |
The screen shows 4 rounded rectangles which serve as buttons.
Wiring
MISO = M1, MOSI = M0
Component | Pin | Wire/Component | Pin | Component |
---|---|---|---|---|
NRF24L01+ | VCC (3.3V) | red | 3V3 | Arduino Uno 3.3V |
NRF24L01+ | GND | brown | GND | Arduino Uno 3.3V |
NRF24L01+ | CE | blue | 9 ?? other pin! | Arduino Uno 3.3V |
NRF24L01+ | CSN | purple | 10 ?? other pin!! | Arduino Uno 3.3V |
NRF24L01+ | SCK | yellow | 13 | Arduino Uno 3.3V |
NRF24L01+ | M0 (MOSI) | gray | 11 | Arduino Uno 3.3V |
NRF24L01+ | M1 (MISO) | white | 12 | Arduino Uno 3.3V |
NRF24L01+ | IRQ | green | 2 ?? Not connected | Arduino Uno 3.3V |
Comments: