![]() |
Forum Index : Microcontroller and PC projects : Confusion with SPI LCD panel
Author | Message | ||||
apalert Newbie ![]() Joined: 06/07/2023 Location: AustraliaPosts: 36 |
Attempting to setup a ST7735S SPI LCD panel on Picomite Correct me if I'm wrong but from the manual I gleaned the process as: At command prompt: OPTION SYSTEM SPI CLKpin, MOSIpin, MISOpin OPTION LCDPANEL ST7735S, OR, DC, RESET, CS [,offset] In code: SETPIN rx, tx, clk, SPI I suspect all 3 of those lines refer to the same 3 pins but using different naming conventions and not necessarily in the same order. Any help will be appreciated! Mal |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6283 |
Displays are configured from the commandline and then they are 'permanent' until the options are reset. the DC, RESET and CS pins referred to in the second OPTION are in addition to the SYSTEM SPI pins and all 6 pins are needed. The display will use the SYSTEM SPI pins. Jim VK7JH MMedit |
||||
apalert Newbie ![]() Joined: 06/07/2023 Location: AustraliaPosts: 36 |
Thanks Jim And with the last line, SETPIN rx, tx, clk, SPI I'm guessing that: rx = MOSIpin tx = MISOpin clk = CLKpin |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6283 |
MOSI is 'Master Out Slave In' which I would call tx VK7JH MMedit |
||||
phil99![]() Guru ![]() Joined: 11/02/2018 Location: AustraliaPosts: 2642 |
As noted by Jim 'SETPIN rx, tx, clk, SPI' isn't needed as OPTION SYSTEM SPI takes care of that every time the Pico boots. On many panels their Rx is labelled SDI and connects to MOSI = Tx on the Pico and their Tx is labelled SDO and connects to MISIO = Rx on the Pico. |
||||
Volhout Guru ![]() Joined: 05/03/2018 Location: NetherlandsPosts: 5091 |
You only need this: Volhout PicomiteVGA PETSCII ROBOTS |
||||
apalert Newbie ![]() Joined: 06/07/2023 Location: AustraliaPosts: 36 |
Thanks everyone for your help. Got it running today :) |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |