wearyhacker
Well-known member
I am trying to get a CHOOSE submenu working in a platformio prioject for teensy 4.1.
This is what the menu definition looks like. Full code is attache to this post.
The very first call to the nav.poll() in the loop function crashes the teensy.
I have used the arduinoMenu library in a number of other projects on teensy with problems. This the first time I have tried to the CHOOSE submenu macro.
Here is the platformio.ini file.
Any suggestions on how to fix this, I have run out of ideas.
This is what the menu definition looks like. Full code is attache to this post.
C++:
int instrument_index =-1;//some variable used by your code (not necessarily an int)
CHOOSE(instrument_index, instrument_menu,"Choose instrument",doNothing,noEvent,wrapStyle
,VALUE("First",1,doNothing,noEvent)
,VALUE("Second",2,doNothing,noEvent)
);
MENU(mainMenu, "Settings menu", doNothing, noEvent, wrapStyle
,SUBMENU(instrument_menu)
,OP("Sub1", dummy, enterEvent)
);
I have used the arduinoMenu library in a number of other projects on teensy with problems. This the first time I have tried to the CHOOSE submenu macro.
Here is the platformio.ini file.
Code:
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[env:teensy41]
platform = teensy
board = teensy41
framework = arduino
lib_deps =
neu-rah/ArduinoMenu library@^4.21.4
greiman/SSD1306Ascii@^1.3.5
neu-rah/streamFlow@0.0.0-alpha+sha.bf16ce8926
Any suggestions on how to fix this, I have run out of ideas.