Search found 29 matches

by jwissing
Wed May 11, 2016 8:35 pm
Forum: Drivers for External Components
Topic: Standard API for drivers?
Replies: 37
Views: 16025

Re: Standard API for drivers?

How about we review some existing drivers and use that as a starting point to define how we want things to be done? Like: https://github.com/micropython-IMU/micropython-bmp180 - properties should be avoided - ??? Here are some subtle differences in the BME280 driver between the WiPy and the ESP por...
by jwissing
Mon May 09, 2016 4:42 pm
Forum: ESP8266 boards
Topic: WDT yet to be implemented?
Replies: 2
Views: 1549

Re: WDT yet to be implemented?

pfalcon wrote:...
Thank you for the long explanation.
I had not yet used deepsleep but will try that route.
by jwissing
Mon May 09, 2016 3:53 pm
Forum: ESP8266 boards
Topic: WDT yet to be implemented?
Replies: 2
Views: 1549

WDT yet to be implemented?

After deploying my nodeMCU with BME280, it reported for about 15 hours temp, humidity and pressure, which i consider a great success, being able to assemble and program that stuff during one weekend. But it stopped reporting after said 15 hours. I had read about the WDT in the docs and wanted to giv...
by jwissing
Sun May 08, 2016 6:11 pm
Forum: Drivers for External Components
Topic: Bosch BME280 driver
Replies: 42
Views: 27080

Re: Bosch BME280 driver

I needed to interface a BME280 environmental sensor to my WiPy, so I modified Adafruit's driver (written for Raspberry Pi) to work on MicroPython. Hopefully someone else will find it useful. https://bitbucket.org/oscarBravo/wipy_bme280 Thank you Oscar for your driver. It helped a lot for my weekend...
by jwissing
Sun May 08, 2016 12:49 pm
Forum: ESP8266 boards
Topic: MemoryError when importing a custom module
Replies: 44
Views: 24446

Re: MemoryError when importing a custom module

OK so I removed webrepl from boot.py but I still do not have enough memory to load my module. I guess I will simply have to shelve the whole project until I the frozen bytecode becomes usable on the ESP. Best regards, Llwy I had the same issue with another module. I got it to import with increased ...
by jwissing
Sun May 08, 2016 12:37 pm
Forum: ESP8266 boards
Topic: Cross-Compile and import
Replies: 7
Views: 4698

Re: Cross-Compile and import

I got it to work with increased heap size and small modifications to BME280: >>> import BME280 >>> b=BME280.BME280(i2c=i2c) >>> dir(b) ['read_pressure', 'read_humidity', '_load_calibration', '__init__', '__qualname__', 'read_raw_humidity', 'read_temperature', 'humidity', 'read_raw_pressure', 'temper...
by jwissing
Sun May 08, 2016 9:36 am
Forum: ESP8266 boards
Topic: Cross-Compile and import
Replies: 7
Views: 4698

Cross-Compile and import

I have come to the same memory error just by using the BME280 module. https://forum.micropython.org/viewtopic.php?f=14&t=1315 I have tried to get around this by precompiling the module using the cross-compiler as suggested by pythoncoder. http://forum.micropython.org/viewtopic.php?f=16&t=1876#p10542...
by jwissing
Sun May 01, 2016 4:15 pm
Forum: ESP8266 boards
Topic: Call for testing finalized WebREPL setup (before 1.8 release)
Replies: 27
Views: 11406

Re: Call for testing finalized WebREPL setup

Hi, the setup procedure works as expected, but the board has to be in station mode as my dev machine does not have wifi. My board (ESP12E, doit) has no serial connection, but is just connected via wifi. As soon as i enter a wrong password the board starts to misbehave. I'm seeing hangups that i can ...
by jwissing
Wed Apr 27, 2016 4:53 pm
Forum: ESP8266 boards
Topic: Early access releases #3 & #4
Replies: 51
Views: 21128

Re: Early access releases #3 & #4

One more observation while testing the webREPL. It takes about 20 seconds after a disconnect is acknowledged in the browser. Could this be faster? This was fixed in master. Sorry for not many comments lately - we're all-hands preparing for the release. And yep, unfortunately, it will be with a numb...
by jwissing
Sun Apr 24, 2016 10:36 am
Forum: ESP8266 boards
Topic: Early access releases #3 & #4
Replies: 51
Views: 21128

Re: Early access releases #3 & #4

Hi, for those interested here is a small snippet to download files to a micropython board: def listfile(fn): f=open(fn,'rt') print(f.read()) f.close() lf = listfile def getfile(name): import socket s = socket.socket(socket.AF_INET,socket.SOCK_STREAM) addr=socket.getaddrinfo('giant.fritz.box',80)[0][...