B4R Question Simple example to use ESP8266 and ST7735

Gerardo Tenreiro

Active Member
Licensed User
I am trying to use the rAdaFruit_ST7735 and rAdaFruitGFX libraries to use an OLED and display information about it.
The connections made are:
ESP ----------------- ST7735
D3 ....................... CS
D4 ....................... RST
D2 ....................... RS
D7 ....................... SDA
D5 ....................... CLK
The code used is

Sub Process_Globals

Oled público como AdafruitST7735
CS_Oled público como pin
RTS_Oled público como pin
RS_Oled público como pin


End Sub

Sub Público Inicializa_Display_OLED_ST7735
Tronco("****************")
Registro ("* DISPLAY OLED *")
Tronco("****************")
Tronco ("Inicializa Pines")
'Inicializa los Pines para el Display
CS_Oled.Initialize (Main.Pines.D3, CS_Oled.MODE_OUTPUT)
RTS_Oled.Initialize (Main.Pines.D4, RTS_Oled.MODE_OUTPUT)
RS_Oled.Initialize (Main.Pines.D2, RS_Oled.MODE_INPUT_PULLUP)
'Inicializa la Libreria
Log ("Inicializa HARDWARE")
Oled.InitializeHardware (CS_Oled.PinNumber, RS_Oled.PinNumber, RTS_Oled.PinNumber, 0)
'Inicializa el SOFTWARE
Log ("Software Inicializa")
'Oled.InitializeSoftware (CS_Oled.PINNUMBER, RS_Oled.PinNumber, Main.Pines.D7, Main.Pines.D5, RTS_Oled.PINNUMBRE, 0)
'Oled.InitializeSoftware (3,2,7,5,4,0)
Oled.FillScreen (Oled.COLOR_BLACK)
'Oled.GFX.DrawCircle (10, 10, 10, Oled.COLOR_RED, Verdadero)


Oled.GFX.DrawText ("Hola Mundo")

End Sub

Attached picture of OLED ST7735
the result is that the OLED blinks but nothing is displayed.
Any help or example
Thanks
 

Attachments

  • ST7735.png
    ST7735.png
    415.4 KB · Views: 190
Last edited:
Top