From b138b3c73340abc4eb6f60d73d07eb4950370682 Mon Sep 17 00:00:00 2001 From: ollo Date: Thu, 18 Apr 2019 21:37:55 +0200 Subject: [PATCH] setup LEDs before flashing --- tools/remoteFlash.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/remoteFlash.sh b/tools/remoteFlash.sh index fa8e440..c8d3446 100755 --- a/tools/remoteFlash.sh +++ b/tools/remoteFlash.sh @@ -27,6 +27,10 @@ fi echo "Upgrading $IP" echo "stopWordclock()" > /tmp/wordClockCMD.txt +echo "uart.write(0, tostring(node.heap())" >> /tmp/wordClockCMD.txt +echo "c = string.char(0,0,128)" >> /tmp/wordClockCMD.txt +echo "w = string.char(0,0,0)" >> /tmp/wordClockCMD.txt +echo "ws2812.write(w:rep(4) .. c .. w:rep(15) .. c .. w:rep(9) .. c .. w:rep(30) .. c .. w:rep(41) .. c )" >> /tmp/wordClockCMD.txt $FLASHTOOL -f /tmp/wordClockCMD.txt -t $IP -v FILES="displayword.lua main.lua timecore.lua webpage.html webserver.lua wordclock.lua init.lua"