alanesq / BasicOLEDMenu

A very simple menu system using an oled and rotary encoder
GNU General Public License v3.0
49 stars 10 forks source link

OLED display simple none blocking menu System on esp8266/esp32 - i2c version SSD1306 - 30mar22 #6

Open pukspriit opened 3 months ago

pukspriit commented 3 months ago

I was searcing a menu code for my project and found this interesting for me. Tried compile with arduino ide 1.8.11, for ESP32 DevModule, but got error message: enumeration value 'off' not handled in switch [-Werror=switch]

What is the problem?

alanesq commented 3 months ago

Hi, I think it may be complaining that there are other possibilities in the CASE command which are not covered (In Arduino IDE2 it doesn't pick this up so compiles ok).

Try adding: default: break;

after the below lines (around line number 400) // if a message is being displayed case message: if (rotaryEncoder.reButtonPressed == 1) defaultMenu(); // if button has been pressed return to default menu break;

I have added this to the github - thanks

pukspriit commented 3 months ago

thank you, but it did not work. i have arduino ide 2 too, but your old version compiled. Now I have no idea how to implement all this to my existing code. This is some lora communication code and I would like to change some lora parameters for example.

R, 5. aprill 2024 19:36 Alan @.***> kirjutas:

Hi, I think it may be complaining that there is other possibilities in the CASE command which are not covered (In Arduino IDE2 it doesn't pick this up).

Try adding: default: break;

after the below lines (around line number 400) // if a message is being displayed case message: if (rotaryEncoder.reButtonPressed == 1) defaultMenu(); // if button has been pressed return to default menu break;

— Reply to this email directly, view it on GitHub https://github.com/alanesq/BasicOLEDMenu/issues/6#issuecomment-2040230693, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKOQMKUH3B7Y6XEUKRSIKGLY33HJDAVCNFSM6AAAAABFZLWAI6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBQGIZTANRZGM . You are receiving this because you authored the thread.Message ID: @.***>

alanesq commented 3 months ago

Hi, It compiles for me no problem so I don't know? I am using "esp32 by Espresssif Systems v 2.0.14", maybe you have a different version installed? Although I don't think the sketch uses anything esp32 specific.

pukspriit commented 2 months ago

Hei, Now it compiles. The new skech. My fault. But a new problem exists: After uploading (TTGO LoRa32 V2.0, I always compile this board like ESP32 Dev Module). I get error message:

assert failed: i2c_ll_set_bus_timing i2c_ll.h:109 (scl_high > 13)

of course I changed all nessessary pin numbers.

....and rebooting, rebooting, rebooting...

Something new for me.

Best regards!

Immar

Kontakt Alan @.***>) kirjutas kuupäeval L, 6. aprill 2024 kell 13:26:

Hi, It compiles for me no problem so I don't know? I am using "esp32 by Espresssif Systems v 2.0.14", maybe you have a different version installed? Although I don't think the sketch uses anything esp32 specific.

— Reply to this email directly, view it on GitHub https://github.com/alanesq/BasicOLEDMenu/issues/6#issuecomment-2041041610, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKOQMKSOGSLCRYERA7JZV4DY37ETVAVCNFSM6AAAAABFZLWAI6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBRGA2DCNRRGA . You are receiving this because you authored the thread.Message ID: @.***>