Search found 55 matches
- Sat Mar 09, 2019 3:13 pm
- Forum: General Discussion and Questions
- Topic: esp8266 not booting
- Replies: 18
- Views: 9669
- 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...
- Wed Mar 06, 2019 7:30 pm
- Forum: ESP32 boards
- Topic: MicroPython M5Stack support
- Replies: 13
- Views: 16137
Re: MicroPython M5Stack support
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.
- 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 ...
- Mon Mar 04, 2019 10:55 am
- Forum: ESP32 boards
- Topic: MicroPython M5Stack support
- Replies: 13
- Views: 16137
Re: MicroPython M5Stack support
You could use this : M5Stack's fork of lobo's micropython fork.
- 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.
- 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 answer? It gives you a list of the modules that are installed with the firmware.
Code: Select all
help('modules')
- 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?
- 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...
- 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...