I wanted a status indicator, to "see" without the serial connection to check the status of a bitcoinSwitch project. See the demo.
- Maybe: rename the project directory to
bitcoinSwitch
for the Arduino IDE - Add a Status LED like in this project here
- I am using a LED which has one anode and three cathodes for the color, this means
LOW
isON
andHIGH
isOFF
. - RED to pin#32, GREEN to pin#33 and BLUE to pin#25 with an
- Follow the awesome install instructions: "Complicated install instructions not using browser flashing" further down this page
State | LED |
---|---|
Startup | Solid Red |
Waiting, if config mode gets triggered | Blinking Red (2sec) |
Config Mode | 3x Blink Green/Red --> Solid Blue |
Connecting 2 Wifi | Blinking Blue |
Connected 2 Wifi | Solid Blue |
WebSocket Connect & Ready for Payment | Solid Green |
WebSocket Disconnect | Solid Red |
WebSocket Data for Payment received | Solid Blue |
Flash and configure from browser! https://lnbits.github.io/bitcoinswitch/installer/
Once flashed, press GPIO4 in few seconds of ESP32 booting up to be able to config
👉 An absolutely incredible ,bitcoinSwitch guide by Axel 👈
For use with LNURLDevice in LNbits.
Join us! t.me/makerbits
-
Install Arduino IDE 1.8.19
-
Install ESP32 boards, using boards manager
-
Download this repo
-
Copy these libraries into your Arduino install "libraries" folder
-
Open this bitcoinSwitch.ino file in the Arduino IDE
-
Select the correct ESP32 board from tools>board
-
Upload to device