Search found 3212 matches

by dhylands
Tue Sep 17, 2019 1:48 pm
Forum: General Discussion and Questions
Topic: picocom doesn't work
Replies: 4
Views: 79

Re: picocom doesn't work

The other possibility is that picocom is working fine and that the MCU hasn't been flashed with micropython properly.
by dhylands
Thu Sep 12, 2019 5:59 pm
Forum: General Discussion and Questions
Topic: picocom doesn't work
Replies: 4
Views: 79

Re: picocom doesn't work

What device are you trying to connect to? The pyboards show up as /dev/ttyACM0 and not ttyUSB0. Make sure that there isn't some other program running which is using the same port (EDIT: I see that you're connecting to an ESP device, so this comment probably isn't relevant) You can use the lsof comma...
by dhylands
Fri Sep 06, 2019 10:28 pm
Forum: MicroPython pyboard
Topic: Install original windows driver
Replies: 7
Views: 316

Re: Install original windows driver

starter111 wrote:
Fri Sep 06, 2019 9:34 pm
why you need pyusb? pyserial doesn't work?
pyusb is needed to DFU flash the pyboard (at least if pydfu.py is being used).
by dhylands
Fri Sep 06, 2019 10:26 pm
Forum: MicroPython pyboard
Topic: Install original windows driver
Replies: 7
Views: 316

Re: Install original windows driver

One thing to check is your boot.py file on the board.

If it has a call to pyb.usb_mode which doesn't include MSC in the string then the pyboard won't show up as a drive.
by dhylands
Thu Sep 05, 2019 10:09 pm
Forum: Other Boards
Topic: [STM32F407VGT6] How to erase flash fs?
Replies: 8
Views: 111

Re: [STM32F407VGT6] How to erase flash fs?

If your mpconfigboard.h file only defines LED1 and doesn't define LED2, then the code will use a slightly different behaviour. Instead it will flash the LED 1, 2, or 3 times.

See: https://github.com/micropython/micropyt ... ain.c#L328
by dhylands
Thu Aug 29, 2019 9:53 pm
Forum: ESP32 boards
Topic: ESP32 PyCharm all ok but nothing happens
Replies: 14
Views: 410

Re: ESP32 PyCharm all ok but nothing happens

Looking at the documentation for uos:
https://docs.micropython.org/en/latest/library/uos.html

It would appear that you need to use

Code: Select all

uos.rename
by dhylands
Wed Aug 28, 2019 10:34 pm
Forum: ESP32 boards
Topic: ESP32 PyCharm all ok but nothing happens
Replies: 14
Views: 410

Re: ESP32 PyCharm all ok but nothing happens

If your module directory is stored inside a directory called zeze then you need to add the zeze directory to your sys.path in the main.py file before you try to import it. Otherwise micropython doesn't know where to look.
by dhylands
Mon Aug 26, 2019 6:35 pm
Forum: ESP8266 boards
Topic: Servo library
Replies: 28
Views: 13797

Re: Servo library

The way that servos work is that they send a 1-2 msec long pulse at about 50 or 60 Hz. Lets say we wanted to use 50 Hz. That corresponds to a period of 20 msec. Since we want the pulse to be between 1 and 2 msec, then we want it to be between 1/20 = 0.05 and 2/20 = 0.10 or 5-10% The duty is specifie...
by dhylands
Thu Aug 22, 2019 10:18 pm
Forum: Development of MicroPython
Topic: ADC sampling with DMA/interrupts
Replies: 5
Views: 258

Re: ADC sampling with DMA/interrupts

Often, if the system becomes unresponsive when enabling interrupts it happens because an interrupt fires and the reason for it firing doesn't get cleared, so the interrupt immediately fires again. This means that the foreground never gets a chance to run.
by dhylands
Wed Aug 21, 2019 4:07 pm
Forum: General Discussion and Questions
Topic: Best practices for debug and logging output in library modules
Replies: 6
Views: 222

Re: Best practices for debug and logging output in library modules

The first few posts for each user require moderator approval. During this time, BBCode is also disabled. Once you've made enough posts that you no longer require moderator approval, then BBCode gets enabled, including for your original posts which required moderator approval.