Search found 156 matches

by kevinkk525
Fri Oct 19, 2018 10:59 am
Forum: General Discussion and Questions
Topic: persistent memory?!?
Replies: 1
Views: 18

Re: persistent memory?!?

as described in this thread viewtopic.php?t=3154 it is possible to use rtc memory (don't know how many bytes you can store in there), but it won't survive a power disconnect, only a reset.
by kevinkk525
Fri Oct 05, 2018 6:29 pm
Forum: ESP32 boards
Topic: Documentation for ESP32 Port
Replies: 7
Views: 258

Re: Documentation for ESP32 Port

Well in that case I guess you should just use the loboris fork of micropython for esp32 as that port at least has some good documentation for most of the important differences in the esp32
by kevinkk525
Fri Oct 05, 2018 9:56 am
Forum: ESP8266 boards
Topic: Memory error adding few line of code also if memory free are some kbytes..
Replies: 5
Views: 118

Re: Memory error adding few line of code also if memory free are some kbytes..

You can freeze any module that works as you use it now. There is no need to change anything. Just add your modules to the folder micropython/ports/esp8266/modules and build your firmware.
by kevinkk525
Thu Oct 04, 2018 8:02 am
Forum: ESP32 boards
Topic: Lobo Micropython esp32 wlan frozen
Replies: 6
Views: 194

Re: Lobo Micropython esp32 wlan frozen

I had not much problems with lobo port. Was stable for me. Just ftp sometimes hangs a bit.
by kevinkk525
Tue Oct 02, 2018 12:32 pm
Forum: ESP32 boards
Topic: Lobo Micropython esp32 wlan frozen
Replies: 6
Views: 194

Re: Lobo Micropython esp32 wlan frozen

yes it looks like that bug is still present. The wait time is not needed in mqtt anymore though, as using sockets seems to call the underlying RTOS idle methods (or similar) but a busy loop does not. I pinged loboris about that issue on his forum. Should be easy to fix this in his port by having ano...
by kevinkk525
Mon Oct 01, 2018 1:39 pm
Forum: Programs, Libraries and Tools
Topic: Smarthome firmware pysmartnode
Replies: 10
Views: 711

Re: Smarthome firmware pysmartnode

I updated the framework to version 4.0.5 with many improvements over the last versions like: * RAM usage optimizations, you can now use it on an esp8266 with activated filesystem (although not many components can be registered in this setup before you run out of RAM, more about this in the README) *...
by kevinkk525
Mon Oct 01, 2018 8:47 am
Forum: ESP32 boards
Topic: Lobo Micropython esp32 wlan frozen
Replies: 6
Views: 194

Re: Lobo Micropython esp32 wlan frozen

I think it could be the common mistake of doing this loop:

Code: Select all

while station.isconnected() == False:
    pass
instead of:

Code: Select all

while station.isconnected() == False:
    time.sleep_ms(50)
by kevinkk525
Tue Sep 25, 2018 6:20 pm
Forum: ESP32 boards
Topic: ws2811/2812 Programs very slow
Replies: 22
Views: 378

Re: ws2811/2812 Programs very slow

Where does he re-create the tuples? They’re created when they’re first used unless I don’t understand the immutability of tuples. Sent from my iPhone using Tapatalk Pro He has an unconditional while loop and in there a for loop that recreates all the tuples in the array on each iteration of the whi...
by kevinkk525
Tue Sep 25, 2018 6:02 pm
Forum: ESP32 boards
Topic: ws2811/2812 Programs very slow
Replies: 22
Views: 378

Re: ws2811/2812 Programs very slow

But tuples are immutable and he has tuple of ints which are completely immutable. Why isn’t the same tuple being used for all array entries? Sent from my iPhone using Tapatalk Pro True but he recreates those tuples in every iteration of the while loop. So instead of using a list of size n with each...
by kevinkk525
Tue Sep 25, 2018 5:53 pm
Forum: ESP32 boards
Topic: ws2811/2812 Programs very slow
Replies: 22
Views: 378

Re: ws2811/2812 Programs very slow

You could try using a bytearray to store all the values. That's faster and saves RAM as the bytearray is not changed in size after creation. But tuples are immutable and he has tuple of ints which are completely immutable. Why isn’t the same tuple being used for all array entries? Sent from my iPho...