Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
|
Forum Index : Microcontroller and PC projects : Confusion with SPI LCD panel
Author | Message | ||||
apalert Newbie Joined: 06/07/2023 Location: AustraliaPosts: 15 |
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: 6098 |
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 MMBasic Help |
||||
apalert Newbie Joined: 06/07/2023 Location: AustraliaPosts: 15 |
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: 6098 |
MOSI is 'Master Out Slave In' which I would call tx VK7JH MMedit MMBasic Help |
||||
phil99 Guru Joined: 11/02/2018 Location: AustraliaPosts: 2135 |
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: 4233 |
You only need this: Volhout PicomiteVGA PETSCII ROBOTS |
||||
apalert Newbie Joined: 06/07/2023 Location: AustraliaPosts: 15 |
Thanks everyone for your help. Got it running today :) |
||||
Print this page |