Hi use helteck lora v3 and v3 in the past but i resently bought V3.2.
ive been tring to use the oled diplay with U8G2 libray and Adafruitssd1306. and non work.
#include <Arduino.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#include “Fonts/FreeMono9pt7b.h”
#define SCREEN_WIDTH 128
#define SCREEN_HEIGHT 64
#define SCREEN_ADDRESS 0x3D
Adafruit_SSD1306 display(SCREEN_WIDTH,SCREEN_HEIGHT,&Wire,RST_OLED);
void setup() {
display.begin(SSD1306_SWITCHCAPVCC,SCREEN_ADDRESS);
}
void loop() {
display.setTextSize(1);
display.setFont();
display.setTextColor(SSD1306_WHITE);
display.clearDisplay();
display.print(“Hello World”);
display.display();
}
i used pin 17 as SDL and 18 as SCL and 21 as reset as specified in the documentation. but somehow its not working.
i dont know why its not working please help.