Search found 9 matches
- Fri Feb 04, 2022 6:34 pm
- Forum: ESP8266 boards
- Topic: serial communication and variables
- Replies: 15
- Views: 18975
Re: serial communication and variables
Your basic problem is that UART 0 is used by the REPL see: https://docs.micropython.org/en/latest/esp8266/quickref.html#uart-serial-bus in the standard documentation for the ESP8266 port. ok so far what I have done is enter the boot.py file of the micro and uncomment this line (uos.dupterm(None, 1)...
- Fri Feb 04, 2022 6:07 pm
- Forum: ESP8266 boards
- Topic: serial communication and variables
- Replies: 15
- Views: 18975
Re: serial communication and variables
yes but, this car.json document is inside the microcontoler?.. because if that is the case, I don't see the advantage regarding the use of a dictionary, now if the car.json file comes via serial it would be difficult because remember that what is going to communicate with the esp8266 via serial is g...
- Fri Feb 04, 2022 1:13 am
- Forum: ESP8266 boards
- Topic: serial communication and variables
- Replies: 15
- Views: 18975
Re: serial communication and variables
The code doesn't work, I suspect because of the UART communication so I tried this little code and it doesn't work serial = UART(0, 115200) serial.init(115200, bits=8, parity=None, stop=1) ch = "" while True: if serial.any() > 0: ch = serial.readline() if ch == "on": serial.write("led on") led.on() ...
- Thu Feb 03, 2022 10:01 pm
- Forum: ESP8266 boards
- Topic: serial communication and variables
- Replies: 15
- Views: 18975
Re: serial communication and variables
hello, I'm a bit confused about what you mean when you tell me to use json outside the codeOlivierLenoir wrote: ↑Sat Jan 29, 2022 9:17 am
If the list of color is very long, I recommend using a json file outside of your code.
- Wed Feb 02, 2022 4:30 am
- Forum: ESP8266 boards
- Topic: serial communication and variables
- Replies: 15
- Views: 18975
Re: serial communication and variables
hello, friend, it looks very very good, thank you very much... a question in micropython is there a way to use the serial monitor at the same time as the program editor (Mu or Thonny), in the style of arduino
- Tue Feb 01, 2022 4:04 am
- Forum: ESP8266 boards
- Topic: serial communication and variables
- Replies: 15
- Views: 18975
Re: serial communication and variables
I will also look for information on json files, it may be a better option, thank you very muchOlivierLenoir wrote: ↑Sat Jan 29, 2022 9:17 am
If the list of color is very long, I recommend using a json file outside of your code.
- Tue Feb 01, 2022 3:53 am
- Forum: ESP8266 boards
- Topic: serial communication and variables
- Replies: 15
- Views: 18975
Re: serial communication and variables
many, many thanks for the help, I'm going to try these options I imagine I can make several dictionaries... being more specific the lists are of car brands and their models, for exampel: chevrolet = { "corsa_2005" : (0, 1, 0, 1, 0, 1, ), "corsa_2006_2010" : (0, 1, 0, 1, 0, 1, ), "corsa_2011_2016" : ...
- Fri Jan 28, 2022 9:25 pm
- Forum: ESP8266 boards
- Topic: serial communication and variables
- Replies: 15
- Views: 18975
Re: serial communication and variables
thanks for answering, but the examples of the lists that I put "red", "blue", are just that, examples, but in the real code I have more than 500 lists and some go from 200 elements and others exceed 700 elements...what I want is to be able to choose between them through serial communication
- Fri Jan 28, 2022 2:44 pm
- Forum: ESP8266 boards
- Topic: serial communication and variables
- Replies: 15
- Views: 18975
serial communication and variables
hello greetings, I hope you are well, I am new to the forum, and I have been trying to find information on methods that allow me to manipulate lists and variables through serial communication, I am using an esp32 board, interacting with a touch screen through UART communication, now that is a proble...