Saludos, estoy creando mi proyecto en platformio. Resulta ser que cuando recién adquirí la placa si encendió la pantalla y todo bien. Pero cuando cargué un codigo dejó de mostrarse por pantalla el inicio de la placa, he cargado algunos códigos de prueba y me he puesto a ver el pinmap de la placa. Pero no logro conseguir como aparecer algo por pantalla o si se dañó. Me pueden ayudar por favor
Ayuda pantalla OLED WIFI LoRa V3
Avez-vous consulté les exemples de tests d’usine ? Ce problème est abordé dans de nombreuses discussions sur le forum.
Si, pero me arroja problemas con las librerias y la verdad ya traté de descargarlas e igual no compilan esos ejemplos
Wir können nur Fehler beheben, die wir lesen können. Tut uns leid, wir haben hier keine Kristallkugel!
Aqui esta el codigo a probar:
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#include <Fonts/FreeMono12pt7b.h>
/* ───── P I N A S I G N A C I Ó N ───────────────────────────
Estos son los pines internos más comunes en la Heltec V3
Si no ves la pantalla, prueba la otra pareja al final */
#define SDA_OLED 17 // I²C SDA en muchas V3
#define SCL_OLED 18 // I²C SCL
#define OLED_RESET 21 // Reset físico (si está cableado)
#define VEXT_PIN 35 // Controla la alimentación 3 V 3 “Vext”
#define SCREEN_W 128
#define SCREEN_H 64
#define OLED_ADDR 0x3C // Dirección de fábrica SSD1306
Adafruit_SSD1306 display(SCREEN_W, SCREEN_H, &Wire, OLED_RESET);
/* Opcional: encender Vext (alimenta la OLED) */
void vextOn() { pinMode(VEXT_PIN, OUTPUT); digitalWrite(VEXT_PIN, LOW); }
void vextOff() { pinMode(VEXT_PIN, OUTPUT); digitalWrite(VEXT_PIN, HIGH); }
void setup() {
Serial.begin(115200);
delay(200);
vextOn(); // asegura alimentación a la OLED
delay(100);
/* Iniciar bus I²C con los pines correctos */
Wire.begin(SDA_OLED, SCL_OLED);
/* Iniciar la pantalla */
if (!display.begin(SSD1306_SWITCHCAPVCC, OLED_ADDR)) {
Serial.println("❌ OLED NO detectada (revisa SDA/SCL/Vcc)");
while (true) delay(1000);
}
display.clearDisplay();
display.setFont(&FreeMono12pt7b); // fuente grande
display.setTextColor(SSD1306_WHITE);
display.setCursor(0, 20);
display.print(“OLED OK!”);
display.setCursor(0, 45);
display.print(“Heltec V3”);
display.display();
Serial.println(“ Mensaje enviado a la pantalla.”);
}
void loop() {
// Nada: el texto permanece
}
RTC_DATA_ATTR uint8_t debugLevel=LoRaWAN_DEBUG_LEVEL;
^~~~~~~~~~~~~~~~~~~
.pio/libdeps/heltec_wifi_lora_32_V3/Heltec ESP32 Dev-Boards/src/LoRaWan_APP.cpp:40:34: note: suggested alternative: ‘XCHAL_DEBUGLEVEL’
RTC_DATA_ATTR uint8_t debugLevel=LoRaWAN_DEBUG_LEVEL;
^~~~~~~~~~~~~~~~~~~
XCHAL_DEBUGLEVEL
.pio/libdeps/heltec_wifi_lora_32_V3/Heltec ESP32 Dev-Boards/src/LoRaWan_APP.cpp: In member function ‘void LoRaWanClass::sleep(DeviceClass_t)’:
.pio/libdeps/heltec_wifi_lora_32_V3/Heltec ESP32 Dev-Boards/src/LoRaWan_APP.cpp:666:33: error: ‘HELTEC_BOARD’ was not declared in this scope
Mcu.sleep(classMode,debugLevel,HELTEC_BOARD,SLOW_CLK_TPYE);
^~~~~~~~~~~~
.pio/libdeps/heltec_wifi_lora_32_V3/Heltec ESP32 Dev-Boards/src/LoRaWan_APP.cpp:666:46: error: ‘SLOW_CLK_TPYE’ was not declared in this scope
Mcu.sleep(classMode,debugLevel,HELTEC_BOARD,SLOW_CLK_TPYE);
estos son los errores que muestra
^~~~~~~~~~~~~
Virker det med standard Arduino IDE?
Estoy usando Visual studio code
Using platformio as extension
Yeah, can tell from logs (which need formatting with the </> tool by the way).
But I actually asked if you’d tried it with the standard Arduino IDE - the crucial test is to follow the official docs from the vendor.