Initial commit
This commit is contained in:
commit
126c6a93d8
8 changed files with 166 additions and 0 deletions
25
README.md
Normal file
25
README.md
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
# USB Toggle
|
||||
|
||||
ESP8266 (Wemos D1 Mini) firmware om een relais te schakelen via seriële USB.
|
||||
|
||||
## Gebruik
|
||||
|
||||
Sluit aan via USB en stuur commando's:
|
||||
|
||||
```bash
|
||||
./relay 1 # relais aan
|
||||
./relay 0 # relais uit
|
||||
```
|
||||
|
||||
## Pinnen
|
||||
|
||||
| Component | GPIO |
|
||||
|-----------|------|
|
||||
| Relais | 0 |
|
||||
| LED | LED_BUILTIN |
|
||||
|
||||
## Build & Flash
|
||||
|
||||
```bash
|
||||
pio run --target upload --upload-port /dev/cu.usbserial-2110
|
||||
```
|
||||
Loading…
Reference in a new issue