Search found 938 matches

by Roberthh
Wed May 30, 2018 7:32 pm
Forum: The MicroPython pyboard
Topic: Inline assembly in callback
Replies: 3
Views: 158

Re: Inline assembly in callback

If the naming in assembler is too tricky, you could use viper code. It typically needs twice the time of assembler code, but you can create simple variables, give them the names you like and use the control structure of Python-
by Roberthh
Wed May 30, 2018 7:22 am
Forum: ESP8266 boards
Topic: disable_irq for inline assembler has time limits.
Replies: 2
Views: 103

Re: disable_irq for inline assembler has time limits.

I would assume that this is the expected behaviour. Interrupts should be disabled for a minimal time only, in the range of clearly below 1 ms. if longer, you should get an watchdog reset. In the sample you cite I had a short burst of 10 pulse, total duration a few µs. Please consider, whether your c...
by Roberthh
Mon May 28, 2018 11:41 am
Forum: ESP32 boards
Topic: MicroPython on ESP-WROOM-32
Replies: 9
Views: 2771

Re: MicroPython on ESP-WROOM-32

see the documentation of the esptool.py: Flash Frequency (--flash_freq, -ff) Clock frequency for SPI flash interactions. Valid values are keep, 40m, 26m, 20m, 80m (MHz). The default is keep, which keeps whatever value is already in the image file. This parameter can also be specified using the envir...
by Roberthh
Wed May 23, 2018 6:11 pm
Forum: ESP32 boards
Topic: MicroPython on ESP-WROOM-32
Replies: 9
Views: 2771

Re: MicroPython on ESP-WROOM-32

Did you flash the binary at address 0x1000 ? So the command for flashing is something like:

python esptool. py --chip esp32 --port <portname> --baud 460800 write_flash -z --flash_mode dio --flash_freq 40m 0x1000 filename
by Roberthh
Tue May 22, 2018 7:26 pm
Forum: ESP32 boards
Topic: Connecting via USB
Replies: 7
Views: 337

Re: Connecting via USB

I just tried that on a mac. The device I had to use started with /dev/tty.usbserial
So maybe it is just another device name to use.
Otherwise try rebooting the mac to get rid of a maybe blocking script.
by Roberthh
Tue May 22, 2018 6:58 pm
Forum: ESP32 boards
Topic: Connecting via USB
Replies: 7
Views: 337

Re: Connecting via USB

How did you upload the software? Uploading too requires the serial port. So maybe the upload process is still holding the serial device.
by Roberthh
Wed May 16, 2018 2:17 pm
Forum: The MicroPython pyboard
Topic: Fast method for writing to a Neopixel strip
Replies: 2
Views: 203

Re: Fast method for writing to a Neopixel strip

You could try to decorate the fucntions update_buf() and fill_buff() as @micropython.native or @micropython.viper.
by Roberthh
Tue May 15, 2018 5:55 am
Forum: ESP8266 boards
Topic: Differences between CH340 & CP210X Boards
Replies: 9
Views: 438

Re: Differences between CH340 & CP210X Boards

It looks like the culprit is the Raspian driver for CP210x, or a combination of driver plus minicom sw. Try to change that, like using picocom, or python miniterm https://github.com/pyserial/pyserial/bl ... initerm.py
by Roberthh
Mon May 14, 2018 5:41 am
Forum: General Discussion and Questions
Topic: Cursor positioning in TeraTerm
Replies: 2
Views: 138

Re: Cursor positioning in TeraTerm

For instance:

Code: Select all

import sys
def goto(row, col):
    sys.stdout.write("\x1b[{};{}H".format(row + 1, col + 1))
by Roberthh
Fri May 11, 2018 2:45 pm
Forum: The MicroPython pyboard
Topic: Clone from the original PyBoard
Replies: 2
Views: 275

Re: Clone from the original PyBoard

There are others too, even one which copies the board one by one (same formfactor, same connectors, same board labelling), just worse manufacturing = not worth the savings.