michael-ring / pico-fpcexamples

Examples for programming the raspberry pi pico with FreePascal
17 stars 3 forks source link

spi_st7735 line 27 #5

Closed cobaltBlueCloud closed 1 year ago

cobaltBlueCloud commented 1 year ago

Hi,

sorry when I'm wrong.

First we declare 3 outputs: gpio_set_function(TPicoPin.SPI_CS, TGPIOFunction.GPIO_FUNC_SPI); gpio_set_function(TPicoPin.SPI_SCK, TGPIOFunction.GPIO_FUNC_SPI); gpio_set_function(TPicoPin.SPI_TX, TGPIOFunction.GPIO_FUNC_SPI);

These are CS = gpio17 pin22 SCK = gpio18 pin24 TX = gpio19 pin25

LINE 27 st7735.Initialize(spi,TPicoPin.GP16,TPicoPin.GP14,st7735.ScreenSize128x128x16);

What are GP16 and GP14 ?

Kind regards. Marcel

michael-ring commented 1 year ago

Please check documentation in sources:

( Initializes the display param SPI The SPI Interface to use aPinDC Pin used for switching between Communication between Data and Command Mode aPinRST Pin used to reset the display, not needed by all displays, pass TNativePin.None when not needed aPhysicalScreenInfo Information about Width/Height and Bitdepth of the connected screen note The SPI interface needs to be pre-initialized to required Parameters The extra Pins do not need to be initialized ) constructor Initialize(var SPI : TSpi_Registers;const aPinDC : TPinIdentifier;const aPinRST : TPinIdentifier;aPhysicalScreenInfo : TPhysicalScreenInfo);

cobaltBlueCloud commented 1 year ago

Thanks!

cobaltBlueCloud commented 8 months ago

Hi,

[image: IMG_20231102_114243.jpg] [image: pcb 03.jpg] PCB is my own DIY.

Next ting is to dive into the CustomDisplay-unit! Also got uart Tx working. Rx, I have to do next.

Kind regards. Marcel

Op di 16 aug 2022 om 08:13 schreef Michael Ring @.***>:

Please check documentation in sources:

( Initializes the display param SPI The SPI Interface to use aPinDC Pin used for switching between Communication between Data and Command Mode aPinRST Pin used to reset the display, not needed by all displays, pass TNativePin.None when not needed aPhysicalScreenInfo Information about Width/Height and Bitdepth of the connected screen note The SPI interface needs to be pre-initialized to required Parameters The extra Pins do not need to be initialized ) constructor Initialize(var SPI : TSpi_Registers;const aPinDC : TPinIdentifier;const aPinRST : TPinIdentifier;aPhysicalScreenInfo : TPhysicalScreenInfo);

— Reply to this email directly, view it on GitHub https://github.com/michael-ring/pico-fpcexamples/issues/5#issuecomment-1216190832, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2BN3X3IB772MVDJKOB6TKTVZMWQ5ANCNFSM56TASCOQ . You are receiving this because you authored the thread.Message ID: @.***>

cobaltBlueCloud commented 6 months ago

Hi, Michael!

just ran into this issue:

line 38 in https://github.com/cobaltBlueCloud/pico-fpcexamples/blob/main/uart_irq_demo/uart_irq.lpr

shows: received_string+=caractere;

should this be received_string:= received_string + caractere ?

Kind regards. Marcel