That's really neat! Thanks for sharing
I've seen a similar trick where changing the parity mode allows switching between multiple virtual serial consoles on the same USB VCP.
Search found 2262 matches
- Thu Mar 11, 2021 6:22 am
- Forum: Raspberry Pi microcontroller boards
- Topic: External "machine.reset()"
- Replies: 1
- Views: 315
- Thu Mar 11, 2021 6:00 am
- Forum: ESP32 boards
- Topic: ESP32 Help
- Replies: 1
- Views: 282
Re: ESP32 Help
How to use USB HID on the ESP32, not the bluetooth hid, i wanted to ask about how to use wired hid with micropython on the EESP32 This is not possible on the ESP32 as it does not have a USB peripheral. (It has an external USB to UART converter that only provides serial access). The ESP32-S2 will su...
- Thu Mar 11, 2021 6:00 am
- Forum: Development of MicroPython
- Topic: Call I2C to method of Micropython from C
- Replies: 1
- Views: 619
Re: Call I2C to method of Micropython from C
to call the functions, but I have not found any clear example of how to implement the call, it would be very helpful, some example of using this method. It's worth searching the codebase to find other places that use it, but the general idea is: But for a specific example, let's say you wanted to t...
- Thu Mar 11, 2021 5:53 am
- Forum: General Discussion and Questions
- Topic: ESP32 RTC.now() is not in MicroPython v1.14?
- Replies: 3
- Views: 1002
Re: ESP32 RTC.now() is not in MicroPython v1.14?
I don't know why ESP32 is different, but I think rtc.datetime() is what you want.
- Thu Mar 11, 2021 5:51 am
- Forum: Programs, Libraries and Tools
- Topic: Build msgpack for micropython
- Replies: 9
- Views: 886
Re: Build msgpack for micropython
Is there some examples of iterating through an object content in C ? How to walk trough all the fields recursively ? I wish I could just say "look at how the JSON serialiser works" -- https://github.com/micropython/micropython/blob/master/extmod/modujson.c Unfortunately, it's a bit complicated beca...
- Thu Mar 11, 2021 5:40 am
- Forum: General Discussion and Questions
- Topic: press and hold button for an input.
- Replies: 2
- Views: 315
Re: press and hold button for an input.
heres a snip of the code: "time.ticks_diff(time.ticks_ms, btn0_press_time)" should be "time.ticks_diff(time.ticks_ms(), btn0_press_time)" (extra parens for ticks_ms) I think I need to see more of the code to understand how your code works. In general though, the approach would be something like thi...
- Thu Mar 11, 2021 5:35 am
- Forum: ESP32 boards
- Topic: bluetooth esp32
- Replies: 1
- Views: 337
Re: bluetooth esp32
Hi! Im trying to use the bluetooth that already exists in esp32 dev kit's board, but I was not able to find the package to make that work. I dont find any specific package to use, just from machine import UART, but i dont think that will happen, i dont even know wich Tx/Rx the ble is connected, and...
- Thu Mar 11, 2021 5:33 am
- Forum: General Discussion and Questions
- Topic: Best most up to date book to read?
- Replies: 1
- Views: 264
Re: Best most up to date book to read?
What is the most upto date, best book to read to learn Micropython? I say book because I'm struggling to read to read from a laptop screen. I think Nicholas Tollervey's book (https://www.oreilly.com/library/view/programming-with-micropython/9781491972724/) is probably the best. Although it's nearly...
- Thu Mar 11, 2021 5:31 am
- Forum: ESP32 boards
- Topic: Multithreading issue
- Replies: 2
- Views: 638
Re: Multithreading issue
When I want to use ctrl+C to stop these threads, they can't stop. I think the problem here is that your main program finishes and returns you back to the REPL. When you hit ctrl-C, the main thread (at the REPL) will handle it instead and have nothing to do. If you hit Ctrl-D to soft reset, does tha...
- Thu Mar 11, 2021 5:28 am
- Forum: ESP32 boards
- Topic: Could not enter raw repl in fresh install
- Replies: 2
- Views: 279
Re: Could not enter raw repl in fresh install
I'm not quite sure what's happened here...
Can you confirm how you erased flash memory (assuming it was the "esptool.py erase_flash" command?).
When the board is in this state are you able to connect to it just with a regular serial console? e.g. TeraTerm or Putty?
Can you confirm how you erased flash memory (assuming it was the "esptool.py erase_flash" command?).
When the board is in this state are you able to connect to it just with a regular serial console? e.g. TeraTerm or Putty?