Search found 1836 matches

by Roberthh
Thu Jan 30, 2020 7:26 am
Forum: General Discussion and Questions
Topic: Remount \flash
Replies: 3
Views: 91

Re: Remount \flash

This is caused my the fact, that the way Pyboard is mounted to the PC, it does not get aware of changes to the file system made by PyBoard. Even worse, you should encounter corrupted file systems on the Pyboard when changing files both by the PC and Pyboard. The only option to avoid that is not to u...
by Roberthh
Sun Jan 26, 2020 7:46 am
Forum: ESP32 boards
Topic: MicroPython Startup Time
Replies: 26
Views: 1829

Re: MicroPython Startup Time

@mike teachman I repeated that test for Pyboard 1.1 with mostly the same results:
time reset->boot.py: 9.5 ms
time reset->main.py: 77 ms
The results for Pyboard D should be about the same. You might improve @pythoncoder's suggestion by putting the first dog feeding into boot.py.
boot_time.jpg
boot_time.jpg (59.65 KiB) Viewed 99 times
by Roberthh
Sat Jan 25, 2020 8:17 am
Forum: Pyboard D-series
Topic: Powering from both VUSB and microUSB
Replies: 3
Views: 169

Re: Powering from both VUSB and microUSB

The VUSB pin is directly connected to the USB connector. Powering there with 5V is uncritical for the PyBoard, if you stay within the limits, but may affect the computer it's connected to. For powering the Pyboard D, see: https://pybd.io/hw/pybd_sfxw.html
by Roberthh
Sat Jan 25, 2020 7:47 am
Forum: Development of MicroPython
Topic: enabling uos features in unix port
Replies: 7
Views: 219

Re: enabling uos features in unix port

You have to install micropython.lib or the required packages on your system. See the README in https://github.com/micropython/micropython-lib
by Roberthh
Fri Jan 24, 2020 10:23 am
Forum: Development of MicroPython
Topic: enabling uos features in unix port
Replies: 7
Views: 219

Re: enabling uos features in unix port

Did you see the os module in micropython-lib, which provides a lot of os funtions, including getcwd(). It is available via 'import os' MicroPython v1.12-87-g96716b46e-dirty on 2020-01-24; linux version Use Ctrl-D to exit, Ctrl-E for paste mode >>> import os >>> dir(os) ['__class__', '__name__', 'clo...
by Roberthh
Thu Jan 23, 2020 4:32 pm
Forum: General Discussion and Questions
Topic: get programs on a board?
Replies: 3
Views: 154

Re: get programs on a board?

Ampy is fine. You may also use pyboard.py https://github.com/micropython/micropython/blob/master/tools/pyboard.py or rshell. These are both python scripts, which should work on any OS. You might have to install pyserial via pip: pip install pyserial or python -m install pip pyserial Rshell is pretty...
by Roberthh
Thu Jan 23, 2020 10:51 am
Forum: Programs, Libraries and Tools
Topic: Multiaxis stepper motors using RMT
Replies: 32
Views: 1164

Re: Multiaxis stepper motors using RMT

Using the script of @OlivierLenoir with the viper code provided by @pythoncoder for do_int2, I get the following times: do_float 18039118µs do_int 8656320µs do_int2 3180131µs (Viper code) Tested on a Wemos Lolin32 Lite WITHOUT SPIRAM, at 240 MHz. On a Wemos Lolin32 Pro with SPIRAM @240MHz, i get: do...
by Roberthh
Wed Jan 22, 2020 9:24 pm
Forum: Programs, Libraries and Tools
Topic: Multiaxis stepper motors using RMT
Replies: 32
Views: 1164

Re: Multiaxis stepper motors using RMT

8.9ms for 123,000 operations
Sure? That would be ~72ns for each call of do_int2(). That's hard to believe.
by Roberthh
Mon Jan 20, 2020 8:14 am
Forum: ESP32 boards
Topic: IQR pin On "Lolin TFT 2.4" with
Replies: 7
Views: 579

Re: IQR pin On "Lolin TFT 2.4" with

The display controller and the touch controller are distinct devices. Therefore any action to the display will not affect the touch device. And the touch IRQ pin does not require a clock signal. Anyhow, the clock is only needed and active during data transfers. Looking at the data sheet, it may howe...
by Roberthh
Sun Jan 19, 2020 3:04 pm
Forum: ESP32 boards
Topic: IQR pin On "Lolin TFT 2.4" with
Replies: 7
Views: 579

Re: IQR pin On "Lolin TFT 2.4" with

The IRQ-output of the XPT2046 does not need a clock signal. Can you check with an oscilloscope, whether there is any acticity on the IRQ pin when you push the screen. It is more or less an analog output, so transition may be too slow.