Search found 55 matches

by fstengel
Sat Mar 09, 2019 3:13 pm
Forum: General Discussion and Questions
Topic: esp8266 not booting
Replies: 18
Views: 9669

Re: esp8266 not booting

What method are you using to write files to the filesystem?
by fstengel
Thu Mar 07, 2019 6:02 pm
Forum: General Discussion and Questions
Topic: eval() method - error inside function usage
Replies: 3
Views: 2731

Re: eval() method - error inside function usage

What seems to be happening is that eval seems to be working in the global scope. The following works: def foo(**kwargs): print('From foo: ',kwargs) return True dev_no = [{'name':'dev1','exec':'foo'}, {'name':'dev2','exec':'foo'}] dd = dev_no[0] def proc( devs ): global dd dd=devs print(eval(dd['exec...
by fstengel
Wed Mar 06, 2019 7:30 pm
Forum: ESP32 boards
Topic: MicroPython M5Stack support
Replies: 13
Views: 16137

Re: MicroPython M5Stack support

AJB2K3 wrote:
Wed Mar 06, 2019 5:22 pm
dht12 and bmp280 are there somewhere because that is what the M5Stack environmental sensor uses.
Indeed they should be. However, it seems that the M5Stack github repo is incomplete or way behind the (private?) repo used for building the firmware used with UIFlow. This is annoying.
by fstengel
Tue Mar 05, 2019 8:44 am
Forum: ESP32 boards
Topic: MicroPython M5Stack support
Replies: 13
Views: 16137

Re: MicroPython M5Stack support

Ok. The same then. As far as I can tell, this firmware should contain most of the M5Stack's peculiarities. Normally help('modules') should show m5stack and others ( ubutton , units ) as well as other specific and as undocumented modules written in C ( m5ui etc)... Looking at units.py , I discovered ...
by fstengel
Mon Mar 04, 2019 10:55 am
Forum: ESP32 boards
Topic: MicroPython M5Stack support
Replies: 13
Views: 16137

Re: MicroPython M5Stack support

by fstengel
Fri Mar 01, 2019 4:34 pm
Forum: General Discussion and Questions
Topic: print
Replies: 10
Views: 26544

Re: print

You seem to have an encoding problem: your program does not even parse. See this thread on stackoverflow.
by fstengel
Fri Mar 01, 2019 4:29 pm
Forum: ESP32 boards
Topic: The SSD1306 library doesn't seem to ship in the ESP32 build
Replies: 6
Views: 4322

Re: The SSD1306 library doesn't seem to ship in the ESP32 build

Just to be on the safe side, what does

Code: Select all

help('modules')
answer? It gives you a list of the modules that are installed with the firmware.
by fstengel
Sat Dec 08, 2018 8:35 pm
Forum: ESP32 boards
Topic: optimizing uasyncio performance
Replies: 26
Views: 18342

Re: optimizing uasyncio performance

That does indeed seem high: my M5Stack's cpu clocks at 240MHz. So one could expect much shorter delays. I remember reading somewhere that the Lobo python fork uses "double" integer arithmetic. Could that be an issue here?
by fstengel
Sat Dec 08, 2018 4:02 pm
Forum: ESP32 boards
Topic: optimizing uasyncio performance
Replies: 26
Views: 18342

Re: optimizing uasyncio performance

I just found this thread and decided to test the example on an M5Stack with 4MB psRam using a Lobo stock firmware (ESP32_LoBo_v3.2.24 - 2018-09-06; psram_all). If I have the ftp and mDNS services running: await asyncio.sleep_ms(0): around 3.7-3.8 ms yield: around 2.7-2.8 ms If I have nothing but wif...
by fstengel
Wed May 02, 2018 3:38 pm
Forum: General Discussion and Questions
Topic: OSError: [Errno 5] EIO while using I2C
Replies: 4
Views: 34919

Re: OSError: [Errno 5] EIO while using I2C

Have you tried inserting some delay between I2C initialization and its use? In the past, I had a similar problem on an ESP8266 and a small delay helped a lot. Your code would look like : from pyb import I2C, Pin import utime #I2C Initialisation i2c = I2C(1,I2C.MASTER, baudrate = 100000) # And a shor...