Path to “Magic button” S01E01

This is the code to blink a LED on a GPIO on an ESP8266-1 loaded with NodeMCU. What is of particular interest is the GPIO0 and GPIO2 values.

GPIO0=3
GPIO2=4

pin = GPIO0
gpio.mode(pin, gpio.OUTPUT)

lighton=0
tmr.alarm(0,1000,1,function()
    if lighton==0 then 
        lighton=1
        gpio.write(pin, gpio.HIGH)
        -- 512/1024, 50% duty cycle
    else 
        lighton=0 
        gpio.write(pin, gpio.LOW)
    end 
    print(lighton)
end)

Using Llamalab’s Automate as a Pebble Time companion app

In this post, I’ll explore how I did managed to make Llamalab’s Automate (Android) communicate with a Pebble watch application.

First, I will discuss some basic knowledge and expose my problem. Then I’ll talk more in depth about Pebble communication and finally expose the Automate part. So, go straight to the end for the technical part.

Continue reading “Using Llamalab’s Automate as a Pebble Time companion app”