Hey Roberthh, could u please check my last post and comment,thanks.
Search found 4 matches
- Sun Nov 21, 2021 3:19 am
- Forum: General Discussion and Questions
- Topic: how to get data through REPL port in program?
- Replies: 6
- Views: 4562
Re: how to get data through REPL port in program?
- Sun Nov 21, 2021 3:17 am
- Forum: General Discussion and Questions
- Topic: how to get data through REPL port in program?
- Replies: 6
- Views: 4562
Re: how to get data through REPL port in program?
code example demo def recv(): while True: rx = sys.stdin.readline() .... t1 = _thread.start_new_thread(recv,0) So thread t1 is not main thread,so it won't repond to CTRL+C interruption. It is a little bit confused to understand how uart data be handle when they go into the chip. My thinking is that ...
- Sun Nov 14, 2021 1:18 pm
- Forum: General Discussion and Questions
- Topic: how to get data through REPL port in program?
- Replies: 6
- Views: 4562
Re: how to get data through REPL port in program?
Thanks,it works. I have a new question. I create a thread dedicated to sys.stdin.read(),without set micropython.kbd_intr(-1).I find that CTRL+C (or 0x03) cann't stop the code. If I play sys.stdin.read() not in a thread, CTRL+C is working. It seems that CTRL+C is only working in MAIN thread(or UI thr...
- Sat Nov 13, 2021 6:20 am
- Forum: General Discussion and Questions
- Topic: how to get data through REPL port in program?
- Replies: 6
- Views: 4562
how to get data through REPL port in program?
I'm playing ESP32 board.It has a on-board USB-COM port which is used by REPL. My application is designed to use UART communication. But I would prefer to use REPL port, so I don't need to wire other Pins to use UART.Just use the REPL port like a normal UART? I don't know how to get data from REPL po...