User Tools

Site Tools


pico_with_2.4_tenstar_spi_lcd

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
pico_with_2.4_tenstar_spi_lcd [2026/08/29 13:48] – [Pico with 2.4" Tenstar SPI LCD] walkeradminpico_with_2.4_tenstar_spi_lcd [2026/09/10 14:30] (current) – walkeradmin
Line 1: Line 1:
 ====== Pico with 2.4" Tenstar SPI LCD ====== ====== Pico with 2.4" Tenstar SPI LCD ======
 <color #db5f0b>Aug 2026</color> <color #db5f0b>Aug 2026</color>
-\\  
-\\  
-<color #ed1c24>*****THIS PAGE IS A WORK IN PROGRESS, WHEN IT IS COMPLETE THIS WARNING WILL DISAPPEAR*****</color> 
 \\  \\ 
 \\  \\ 
Line 50: Line 47:
 \\  \\ 
 {{ :pin-function-table.png?600 |}} {{ :pin-function-table.png?600 |}}
 +
 +----
 +==== Test Code ====
 +\\ 
 +We need two files to be able to test this project.
 +
 +  * 1. The Driver for the LCD.
 +  * 2. A test Python script to write to the LCD.
 +
 +We need to put the driver in the lib folder on the Pico. If you don't have a lib folder you need to create one. 
 +\\ 
 +\\ 
 +{{ :lib-driver-test-text-2.4-lcd.png?300 |}}
 +\\ 
 +Above we can see the Pico drive, and there is a folder 'lib' with the driver st7789.py, then in the top level folder there is a test file called text-text-examply.py
 +\\ 
 +\\ 
 +<color #ed1c24>**Please note, there has been some improvements in the driver since this page was started, the driver is now called st7789nf.py not st7789.py.**</color>
 +\\ 
 +
 +  * You can download the driver {{ :st7789nf.zip |Here.}}
 +  * You can download the test Python file {{ :screen-test.zip |Here.}}
 +
 +Once these are both saved to your Pico, you can open the test file in Thonny.
 +\\ 
 +\\ 
 +{{ :thonny-test-python-run.png?700 |}}
 +\\ 
 +Now click the green play button, top left in Thonny, and the code should execute with zero errors.
 +\\ 
 +\\ 
 +If you have wired your LCD up correctly, and have placed the driver and the test script in the right place, then you should see something similar to below.
 +\\
 +\\ 
 +{{ :lcd-8-line-test-2.4-240-320-tenstar.jpeg?300 |}}
 +\\ 
 +Now you are ready to tackle any project on this wiki, or indeed your own project, that requires a nice LED.
 \\  \\ 
 \\  \\ 
 ---- ----
pico_with_2.4_tenstar_spi_lcd.1788011297.txt.gz · Last modified: by walkeradmin