mitglieder, vorstand
1.688
Bearbeitungen
Dg3hda (Diskussion | Beiträge) (→Code) |
Dg3hda (Diskussion | Beiträge) (→Code) |
||
Zeile 38: | Zeile 38: | ||
if Status == "v" then tdown = tzu else tdown=toffen | if Status == "v" then tdown = tzu else tdown=toffen | ||
print pcount | print pcount | ||
timer tdown,[service] | |||
wait | |||
</pre> | |||
Und der für ESP8266 mit Unterstützung durch WS2812l, ohne Stromsparmodus. Achtung: Bitte mit 3.3V betreiben den Pixel, der GPIO zuliebe! | |||
<pre> | |||
let pcount = 0 | |||
let toffen = 30000 | |||
let tzu = 30000 | |||
timer 100,[service] | |||
wait | |||
[service] | |||
neo(0,25,25,25) | |||
pcount=pcount+1 | |||
cls | |||
Status = left(wget("status.schaffenburg.org/"),1) | |||
if Status == "v" then neo(0,25,0,0) else neo(0,0,25,0) | |||
if Status == "v" then wprint "Geschlossen" else wprint "Offen" | |||
if Status == "v" then tdown = tzu else tdown=toffen | |||
print pcount | |||
timer tdown,[service] | timer tdown,[service] | ||
wait | wait |