Post your best Lua script examples here

User avatar
By trackerj
#11913 If you need for your projects a RTC, might worth to take in consideration also PCF8563. Good price and easy to implement a I2C driver for it.

PCF8563 - 1 - Adapter -1.jpg

PCF8563 - 3 - CBDB - 3.jpg

PCF8563 - 4 - Run Test - 4.jpg



First test:


Update Time and Date with Google page:


For more details:
http://www.esp8266-projects.com/2015/03/pcf8563-real-time-clock-i2c-driver.html
User avatar
By trackerj
#12041
Mikejstb wrote:Nice!
how much memory is this using?


It depends on how are you doing the variables allocations & stuff. It still can be optimised. Local variables can also help.
Also garbage collector can help a lot. node.heap() only cannot help too much to understand exactly how much memory is used in the running process itself, but didn't have problems with exceeding available memory.