Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.0.1 Breaks Oled #134

Open
valdt opened this issue Mar 28, 2024 · 3 comments
Open

2.0.1 Breaks Oled #134

valdt opened this issue Mar 28, 2024 · 3 comments

Comments

@valdt
Copy link

valdt commented Mar 28, 2024

The lora exemples works but the oledexemples dose not work. And vice versa if you down grade to 1.1.5

c:/users/valdt/appdata/local/arduino15/packages/heltec-esp32/tools/xtensa-esp32s3-elf-gcc/esp-12.2.0_20230208/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\valdt\AppData\Local\Temp\arduino\sketches\31CA39F4CB3EC676FA1798AC4D335946\libraries\Heltec_ESP32_Dev-Boards\LoRaWan_APP.cpp.o:c:\Users\valdt\OneDrive\Dokument\Arduino\libraries\Heltec_ESP32_Dev-Boards\src/LoRaWan_APP.cpp:28: multiple definition of `display'; C:\Users\valdt\AppData\Local\Temp\arduino\sketches\31CA39F4CB3EC676FA1798AC4D335946\sketch\OledTest.ino.cpp.o:C:\Users\valdt\OneDrive\Dokument\GitHub\Heltec-Lora-Test\OledTest/OledTest.ino:6: first defined here
collect2.exe: error: ld returned 1 exit status

exit status 1

Compilation error: exit status 1

@valdt
Copy link
Author

valdt commented Mar 29, 2024

#include "heltec.h"
#include "Arduino.h"

//rotate only for GEOMETRY_128_64
SSD1306Wire display(0x3c, SDA_OLED, SCL_OLED, RST_OLED);

void VextON(void)
{
pinMode(Vext,OUTPUT);
digitalWrite(Vext, LOW);
}

void VextOFF(void) //Vext default OFF
{
pinMode(Vext,OUTPUT);
digitalWrite(Vext, HIGH);
}

void setup() {

VextON();
delay(100);

display.init();
display.clear();
display.display();

display.setContrast(255);

display.setTextAlignment(TEXT_ALIGN_CENTER);
display.clear();
display.display();
display.screenRotate(ANGLE_0_DEGREE);
display.setFont(ArialMT_Plain_16);
display.drawString(64, 32-16/2, "ROTATE_0");
display.display();
delay(2000);

display.clear();
display.display();
display.screenRotate(ANGLE_90_DEGREE);
display.setFont(ArialMT_Plain_10);
display.drawString(32, 64-10/2, "ROTATE_90");
display.display();
delay(2000);

display.clear();
display.display();
display.screenRotate(ANGLE_180_DEGREE);
display.setFont(ArialMT_Plain_16);
display.drawString(64, 32-16/2, "ROTATE_180");
display.display();
delay(2000);

display.clear();
display.display();
display.screenRotate(ANGLE_270_DEGREE);
display.setFont(ArialMT_Plain_10);
display.drawString(32, 64-10/2, "ROTATE_270");
display.display();
delay(2000);
}

void loop() { }

@joelkoz
Copy link

joelkoz commented Apr 15, 2024

Is this related to #137 ?

@Jah-On
Copy link

Jah-On commented Apr 19, 2024

Can confirm.

The issue is that when using the most recent OLED example, the board keeps showing panic errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants