Search found 540 matches

by Roberthh
Wed Mar 29, 2017 2:13 pm
Forum: General Discussion and Questions
Topic: Problems after flash
Replies: 10
Views: 165

Re: Problems after flash

That looks OK. Mp complains because it does not find main.py. So you might create one at the REPL prompt, even if it's empty:

Code: Select all

f = open("main.py", "w")
f.write("# main.py: initial code for applications\n")
f.close()
by Roberthh
Wed Mar 29, 2017 11:05 am
Forum: ESP8266 boards
Topic: I2C isn't working anymore
Replies: 1
Views: 56

Re: I2C isn't working anymore

a) did you change the firmware version?
b) is anything else connected to the I2C bus?
c) are pullup-resistors present on SCL and SDA?
d) what is the result of i2c.scan()
by Roberthh
Wed Mar 29, 2017 7:44 am
Forum: Development of MicroPython
Topic: Zephyr status
Replies: 1
Views: 71

Re: Zephyr status

There is a well developed version of MicroPython for ESP8266 and an experimental port for generic esp32 boards at http://micropython.org/download/, and a broad range of ESP32 based versions at www.pycom.io.
by Roberthh
Wed Mar 29, 2017 5:19 am
Forum: General Discussion and Questions
Topic: Problems after flash
Replies: 10
Views: 165

Re: Problems after flash

That looks OK. The gibberisch after reset are just the ESP8266 debug messages sent with 74800 Baud (about), OSError: [Errno 2] ENOENT just means "File not found", which should be main.py What is returned by uos.listdir() ? I repeated the steps (just to be sure) an get: >>> import uos >>> u...
by Roberthh
Tue Mar 28, 2017 8:09 pm
Forum: General Discussion and Questions
Topic: Problems after flash
Replies: 10
Views: 165

Re: Problems after flash

That's the typical Pattern of a corrupt file system. Erase flash and reload the image.
by Roberthh
Tue Mar 28, 2017 4:08 pm
Forum: General Discussion and Questions
Topic: Problems after flash
Replies: 10
Views: 165

Re: Problems after flash

Please try to flash a non-OTA image, like this one
http://micropython.org/resources/firmwa ... 4c41bb.bin
or this one. OTA is still experimental.
by Roberthh
Mon Mar 27, 2017 12:53 pm
Forum: The micro:bit
Topic: help adding string module to mu or any other ide
Replies: 5
Views: 79

Re: help adding string module to mu or any other ide

Just in case you can't, here is a try: def zfill(s, width): if len(s) < width: return ("0" * (width - len(s))) + s else: return s The difference to the built-in method: instead of s.zfill(width) you have to call zfill(s, width) And yes, this function may consume more heap space than a buil...
by Roberthh
Mon Mar 27, 2017 9:23 am
Forum: ESP8266 boards
Topic: Saving power
Replies: 12
Views: 2198

Re: Saving power

Without wanting to be pedantic (but being so) it should be noted, that disabling WiFi this way does not reduce power consumption much. It still stays at about 80 mA.
by Roberthh
Sun Mar 26, 2017 2:14 pm
Forum: Other Boards
Topic: Esp32 port
Replies: 32
Views: 1913

Re: Esp32 port

Since the ESP32 port does not support Pin interrupts, I tested it on a LoPy, just to find very digusting figures. Basically, the response varies by about 100 µs, but the whole time window of response travels in time between 50µ after the pulse up to 900 µs after the pulse in a periodic manner. That ...
by Roberthh
Sun Mar 26, 2017 11:27 am
Forum: Other Boards
Topic: Esp32 port
Replies: 32
Views: 1913

Re: Esp32 port

@pythoncoder: No, id did not test it yet, but I can do so. The first impression was, that it is way more responsive, maybe because of the larger RAM. but that does not exclude long latencies, since the caching mechanism is still present. I did not continue testing with the ESP32 port, since it was a...

Go to advanced search