Spanish ESP8266 y ST7735

Gerardo Tenreiro

Active Member
Licensed User
Buenos Dias
Estoy intentando hacer funcionar un ESP8266 y un St7735 sin mucho éxito, por el momento seguí los ejemplos que vi por el foro pero no consigo que funcione.
El ST7735 es chino y no tengo claro que llegara bien así que me gustaría que alguien aporte codigo para b4R y sepa que funcione.
Las Conexiones que tengo realizadas son:
ESP .......................... ST7735
D5 ............................ CLK
D7 .............................. SDA
D2 ............................. RS
D1 ............................ RST
D3 ............................ CS

mil módulo ST7735 es este:
st7735.png

mil codigo que utilizo es:
[CODE lang = "b4x" title = "Modulo OLED"] 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


'
'Inicializa Display OLED ST7735
'
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.D1, RTS_Oled.MODE_OUTPUT)
RS_Oled.Initialize (Main.Pines.D2, RS_Oled.MODE_INPUT_PULLUP)
'Inicializa la Libreria
Log ("Inicializa HARDWARE")
Oled.InitializeHardware (3, 2,1,1)

'Inicializa el SOFTWARE
'Registro ("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,1,0)


Oled.FillScreen (Oled.COLOR_BLACK)
'Oled.GFX.DrawCircle (10, 10, 10, Oled.COLOR_RED, Verdadero)
Oled.GFX.DrawText ("Hola Mundo")

End Sub [/ CODE]

Muchas Gracias por la ayuda.
 
Top