Rename project.

This commit is contained in:
Anna Rose 2020-05-20 18:09:32 +00:00
parent e74fe369e5
commit 42a3835b43
4 changed files with 9 additions and 7 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
config.h config.h
*.bin *.bin
*.elf *.elf
configs/

View File

@ -12,15 +12,15 @@
// //
// We would expect the webhook to return something like: // We would expect the webhook to return something like:
// //
// [1 0 1] // [1, 0, 1]
// //
// to activate the momentary switch, (pin 5) deactivate the first // to activate the momentary switch, (pin 5) deactivate the first
// latched switch, (pin 8) and activate the second latched switch. (pin 10) // latched switch, (pin 8) and activate the second latched switch. (pin 10)
const int NUM_PINS = 3; const int NUM_PINS = 3;
const int PIN_MAP[NUM_PINS][2] = { const int PIN_MAP[NUM_PINS][2] = {
{5, 1}, {5, 1},
{8, 1}, {8, 1},
{10, 1} {10, 1}
}; };
// The signing/root certificate for your webhook site. // The signing/root certificate for your webhook site.

View File

@ -1,13 +1,14 @@
# Control I/O pins with a webhook # Control I/O pins with a webhook
This is an Arduino IDE sketch for a "smart" controller that can activate pins This is an Arduino IDE sketch for a "smart" controller that can activate pins
based on the state of some webpage. The motivating use cases are: based on the state of some webpage. (designed to be driven by [gpio webhook server](https://git.annabunch.es/annabunches/gpio-webhook-server))
The motivating use cases are:
* Controlling a PC power switch remotely, using a transistor wired to the power switch pins * Controlling a PC power switch remotely, using a transistor wired to the power switch pins
* Lighting specific LEDs to create a remotely controlled 'traffic light'. * Lighting specific LEDs to create a remotely controlled 'traffic light'.
This sketch currently targets only the ESP8266, and will probably not work with other This sketch currently targets only the ESP8266, and will probably not work with other
microcontrollers. Support for other boards may come if I run out of ESP8266's. microcontrollers. Support for other boards may come if I run out of ESP8266s.
## Configuration ## Configuration
@ -54,4 +55,4 @@ state to '0' after the page is served / the webhook is consumed.
## Future Improvements ## Future Improvements
* make it actually work... * make it actually work...
* use WifiManager? * use WifiManager?