blob: 89c17cd038f1a50be89ba27dc56bbc7167e4f1f7 (
plain)
1
2
3
4
5
6
7
8
|
# bark-button
the code for the bark button - a button that barks.
it uses a DOIT ESP32 DEVKIT v1, with platform.io and the arduino framework.
when a button gets pressed, it connects to mqtt and publishes a message to `sound/g1/play`, where the message is `barks/[random number from 0 to n_barks]`.
to flash, install platformio and run `pio run -t upload`. you may need to hold boot as you plug the board in to get it ready to flash.
|