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

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

Open
pukspriit opened this issue Apr 5, 2024 · 4 comments

Comments

@pukspriit
Copy link

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
Copy link
Owner

alanesq commented Apr 5, 2024

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
Copy link
Author

pukspriit commented Apr 6, 2024 via email

@alanesq
Copy link
Owner

alanesq commented Apr 6, 2024

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
Copy link
Author

pukspriit commented Apr 7, 2024 via email

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

2 participants