...
 
Commits (5)
......@@ -7,7 +7,7 @@ __Replacing humans with electronics!__
* Wemos D1 Mini (esp8266)
* SSD1306 Display 128x64 I²C with yellow and yellow OLED display
* Simple unser interface with only two buttons to increment/decrement a decimal number.
* Simple user interface with only two buttons to increment/decrement a decimal number.
* Safe to resets (loads last total from mqtt broker)
* Mqtt for NSA surveilance compliance
* Open Source
......@@ -17,7 +17,7 @@ __Replacing humans with electronics!__
* Connect display SCL (clock) to Wemos D1 pin D1 and SDA (data) to pin D2
* Connect push buttons to pin D5 and D6, don't forget a pull-down resistor to ground
* Flash esp module with firmware (.bin file)
* Write all lua files onto esp module
* Write all lua files onto esp module (you can use supplied software/upload.sh)
## Todo
......
......@@ -5,7 +5,7 @@ module.SSID["/dev/lol"] = "4dprinter"
module.SSID["ESP8266_OPEN"] = ""
module.mqtt = {
host = "mqtt.devlol.org",
host = "192.168.8.2",
port = 1883,
id = "supermariocount" .. node.chipid(),
endpoint = 'supermariocount/',
......
......@@ -17,7 +17,12 @@ function retrieve_last_super_mario_count()
end
function draw_display()
disp.draw(super_mario_count, timer_id)
if super_mario_count == 0 then
disp.flash_title(" ", 1)
disp.draw(" ", timer_id)
else
disp.draw(super_mario_count, timer_id)
end
end
function change_super_mario_count(what)
......