Search found 3242 matches

by pythoncoder
Mon Feb 18, 2019 2:01 pm
Forum: General Discussion and Questions
Topic: Error when flashing ESP32 - Testing if ubinascii.unhexlify exists ...
Replies: 17
Views: 674

Re: Error when flashing ESP32 - Testing if ubinascii.unhexlify exists ...

Some ESP8266 boards require special esptool args. I have found the following -fm values to work on some hardware: esptool.py --port /dev/ttyUSB0 --baud 115200 write_flash --verify --flash_size=8m -fm qio 0 build/firmware-combined.bin esptool.py --port /dev/ttyUSB0 --baud 115200 write_flash --verify ...
by pythoncoder
Mon Feb 18, 2019 7:02 am
Forum: The MicroPython pyboard
Topic: AttributeError: 'module' object has no attribute 'Pin'
Replies: 10
Views: 347

Re: AttributeError: 'module' object has no attribute 'Pin'

... Apart from the imports main.py is empty. I would suggest having main.py completely empty during development; also issuing a soft reset (ctrl-D) between each run. I have seen similar errors: I've never managed to pin down the exact cause, but they seem to stem from failing to "clear the decks" b...
by pythoncoder
Mon Feb 18, 2019 6:51 am
Forum: General Discussion and Questions
Topic: RuntimeError from PEP479 violation - need help
Replies: 4
Views: 134

Re: RuntimeError from PEP479 violation - need help

At risk of suggesting the obvious, have you tried running the code under CPython to see if it offers a more comprehensive traceback?
by pythoncoder
Sun Feb 17, 2019 11:30 am
Forum: The MicroPython pyboard
Topic: Questions and wish list about Pyboard D
Replies: 23
Views: 1229

Unofficial guide to the Pyboard D.

I've posted this unofficial guide to the Pyboard D. Some of the content is based on my testing, the rest on information from Damien (reproduced with his permission).

Any additions/corrections/PR's/comments from those with boards are welcome.
by pythoncoder
Sat Feb 16, 2019 9:46 am
Forum: The MicroPython pyboard
Topic: opening internal pull-up for I2C is so complex!!
Replies: 3
Views: 180

Beware of internal pull-up for I2C.

Quite. But the internal pullup value is probably too large for reliable I2C operation. This is relevant for anyone using soft I2C.
by pythoncoder
Fri Feb 15, 2019 2:49 pm
Forum: The MicroPython pyboard
Topic: opening internal pull-up for I2C is so complex!!
Replies: 3
Views: 180

Not on a Pyboard 1.x

The Pyboard 1.x has physical 4.7KΩ resistors to 3.3V on both I2C ports so there is no need for special coding.
by pythoncoder
Thu Feb 14, 2019 11:18 am
Forum: ESP8266 boards
Topic: Pyboard code on ESP2866
Replies: 1
Views: 143

Re: Pyboard code on ESP2866

... >>>from machine import I2C, Pin >>>i2c = I2C(scl=Pin(5),sda=Pin(4)) ## Works OK Now back to the README.md instructions, with some misguided initiative: >>>imu = MPU9250(i2c) ... That is the correct way to set it up, and your scan result is correct. The fact that you're getting ValueError: Bad c...
by pythoncoder
Wed Feb 13, 2019 12:22 pm
Forum: ESP32 boards
Topic: ESP32 Debouncing Switches & Relays: IRQ Timer vs Simple Code vs ASYNC
Replies: 21
Views: 718

Re: ESP32 Debouncing Switches & Relays: IRQ Timer vs Simple Code vs ASYNC

You need to read up on Python packages. The server example I gave you is organised as a package, and the import is from __init__.py. However I wouldn't spend time trying to follow the application code. I suggest you look at the _send and _read methods as examples of how to write to and to read from ...
by pythoncoder
Tue Feb 12, 2019 5:57 pm
Forum: ESP32 boards
Topic: ESP32 Debouncing Switches & Relays: IRQ Timer vs Simple Code vs ASYNC
Replies: 21
Views: 718

Re: ESP32 Debouncing Switches & Relays: IRQ Timer vs Simple Code vs ASYNC

I think it's trying to tell you that there is no server on 192.168.1.44 port 80.
by pythoncoder
Tue Feb 12, 2019 8:36 am
Forum: The MicroPython pyboard
Topic: Questions and wish list about Pyboard D
Replies: 23
Views: 1229

Re: Questions and wish list about Pyboard D

blmorris wrote:
Mon Feb 11, 2019 10:45 pm
...The I2S project that pythoncoder referred to is mine (Hi Peter! Miss hanging out here with you guys! :D )...
Hi Bryan, good to know you're still around. :D

It would be great to see this working - it seemed to me that you were very close.

Cheers, Pete