Search found 5 matches
- Sun Dec 22, 2019 6:34 pm
- Forum: ESP32 boards
- Topic: Keystroke injection in REPL
- Replies: 7
- Views: 4167
Re: Keystroke injection in REPL
Thank you, thank you! I now have the chatpad injecting into the REPL. I'm trying to use keystrokes besides letters now, and am getting some odd behavior. I am using the arrow key commands and backspace command built into upycraft itself, but while they work normally if I were to type them on my comp...
- Mon Dec 16, 2019 5:52 pm
- Forum: ESP32 boards
- Topic: Keystroke injection in REPL
- Replies: 7
- Views: 4167
Re: Keystroke injection in REPL
It works the same way as any other terminal. So Ctrl-C is a byte with value 3. (i.e. the same as it's ascii value for C (i.e. 67) but without the "64" place bit set). In other words Ctrl-C is the "end of text" value in an ascii table. Ctrl-D is "end transmission". Newline is CRLF (13,10). Have a lo...
- Mon Dec 16, 2019 7:03 am
- Forum: ESP32 boards
- Topic: Keystroke injection in REPL
- Replies: 7
- Views: 4167
Re: Keystroke injection in REPL
hi, The simple answer is you want to use os.dupterm() to make a second stream attached to the REPL. Here's a rough sketch of how this might work (based on micropython/examples/bluetooth/ble_uart_repl.py which has to do a similar thing). So it's a stream that doesn't support writing (i.e. receiving ...
- Mon Dec 16, 2019 4:08 am
- Forum: ESP32 boards
- Topic: Keystroke injection in REPL
- Replies: 7
- Views: 4167
Keystroke injection in REPL
*NOTE: THIS IS NOT ABOUT MALICIOUS KEYSTROKE INJECTION* Hello, I apologize if this is the wrong section but it seemed appropriate. I'm making a self-contained ESP32 powered Micropython computer. I'm currently writing a driver for an xbox 360 chatpad, and I have it interpreting keystrokes in the back...
- Sat Dec 14, 2019 7:50 pm
- Forum: Other Boards
- Topic: bare metal Raspberry Pi Zero port
- Replies: 25
- Views: 30059
Re: bare metal Raspberry Pi Zero port
How difficult would it be to bring the code up to the current version of MicroPython?