I don't know how to interpret that picture sorry -- doesn't have any labels.
Did changing that sleep make any difference?
Search found 2072 matches
- Mon Nov 16, 2020 10:15 am
- Forum: ESP32 boards
- Topic: Timer Interrupt Priority
- Replies: 8
- Views: 676
- Mon Nov 16, 2020 10:14 am
- Forum: MicroPython pyboard
- Topic: Is it possible to make pybflash disk readonly?
- Replies: 3
- Views: 472
Re: Is it possible to make pybflash disk readonly?
I tried it the way you did, it does change to read-only mode in micropython, but it's still writable in windows. I don't know much about Windows, but here are some pointers that might help: The pyboard makes a virtual USB device by emulating a partition table in the first block. See storage_read_bl...
- Sun Nov 15, 2020 11:15 am
- Forum: ESP32 boards
- Topic: Timer Interrupt Priority
- Replies: 8
- Views: 676
Re: Timer Interrupt Priority
Try using
Code: Select all
for i in range(100):
time.sleep_ms(10)
Code: Select all
time.sleep(1)
- Sun Nov 15, 2020 11:12 am
- Forum: Programs, Libraries and Tools
- Topic: PWM - different frequences.
- Replies: 3
- Views: 485
Re: PWM - different frequences.
I used HIGH for esc and LOW for servos. What do you mean by avoid flicker ?, that at e.g. 50hz it can cause more servo vibration than at e.g. 100hz? I mean it's designed for driving dimmable LEDs, where you want to PWM in the hundreds of kilohertz. Why do you need different frequency for ESC and se...
- Sun Nov 15, 2020 11:11 am
- Forum: MicroPython pyboard
- Topic: Is it possible to make pybflash disk readonly?
- Replies: 3
- Views: 472
Re: Is it possible to make pybflash disk readonly?
os.mount() takes a `readonly` kwarg.shaoziyang wrote: ↑Sun Nov 15, 2020 8:51 amI want make pybflash disk to readonly mode, what command can be used to implement this function?
In boot.py you can unmount /flash and then re-mount it readonly.
- Sun Nov 15, 2020 11:05 am
- Forum: General Discussion and Questions
- Topic: Using webrepl instead of USB connection with Thonny IDE
- Replies: 24
- Views: 2744
Re: Using webrepl instead of USB connection with Thonny IDE
Yes, I think this is the right term for this. It doesn't send anything to the back-end until you press ENTER. Actually, I thought that the same happens with terminal emulator + screen/tio/miniterm. Doesn't it? When MP code does `sys.stdout.read(2)` and I'm pressing "x", "y", "backspace", "z" in min...
- Sun Nov 15, 2020 4:39 am
- Forum: General Discussion and Questions
- Topic: isinstance problem
- Replies: 8
- Views: 839
Re: isinstance problem
Thanks for reporting! Raised here: https://github.com/micropython/micropython/issues/6623
- Sun Nov 15, 2020 4:34 am
- Forum: General Discussion and Questions
- Topic: isinstance problem
- Replies: 8
- Views: 839
Re: isinstance problem
Ah yeah that definitely won't work. init() will end up calling into the software implementation (which isn't initialised). This is a bug -- I will raise it on github.
- Sun Nov 15, 2020 4:31 am
- Forum: General Discussion and Questions
- Topic: Listening for keypress/keydown over WebREPL
- Replies: 3
- Views: 803
Re: Listening for keypress/keydown over WebREPL
I think this might be a question for Thonny and/or WebREPL (I was testing this with a direct VCP serial connection). See my reply on the other thread -- viewtopic.php?f=2&t=9187&p=52327#p52327
- Sun Nov 15, 2020 4:30 am
- Forum: General Discussion and Questions
- Topic: Using webrepl instead of USB connection with Thonny IDE
- Replies: 24
- Views: 2744
Re: Using webrepl instead of USB connection with Thonny IDE
In a terminal emulator you probably can send combinations with Ctrl -- eg. Ctrl+F should send byte 0x06 (smaller values are special for MicroPython REPL). I haven't tried it, though and it won't work in Thonny. I think laukejas is referring to https://forum.micropython.org/viewtopic.php?f=2&t=9303 ...