Hello,
As I worked before with Arduino, I made the switch to ESP32 in MicroPython and am using uPycraft as IDE.
In Arduino you can send easily commands through the inputline in the serial monitor (eg. I type a ‘H’ and the led goes on, with a ‘L’ it stops.
Now I don’t see how to do this in uPycraft. Can you help please?
best regards,
Olivier
Hi.
So, you want to send serial commands using the uPycraft Terminal?
Regards,
Sara
Hi.
You can send commands to the board by writing the code directly on the Terminal.
The code that you run on the Terminal is executed immediately.
If you want to send a message via Serial, you need to write the commands to do that. You can’t simply write an “L” on the Terminal.
To send messages via Serial, you need to use the UART module. You can find documentation here: https://docs.micropython.org/en/latest/library/machine.UART.html
I hope this helps.
Regards,
Sara