Hi everyone. I've never used the send function in the Serial Monitor but I think I would like to. I have a sketch running which has a menu function which uses the variable "menu" to look at which page it should be on. The data is a simple int between 0 and 15.
I'm running the code on an arduino with the OLED plugged in but right now my board with the buttons on is not connected and I'm waiting for some parts to connect it properly. In the interim, am I able to send a command via the Serial monitor to change it manually? I tried sending "menu = 3;" but nothing happened... Any ideas?
You have to parse the data. The data arrives at your Arduino as a series of characters. This is not a debugger environments where you can read and write to memory.
Use the serial read function and then make your sketch do what you need it to do. In the simplest case just send a single character. Compare the character in a switch-case statement and send some data back or start some action. For emulating buttons you do not need more.