[Update]: Reedme
This commit is contained in:
37
README.md
37
README.md
@@ -35,37 +35,34 @@ Image how to wire the project will follow.
|
|||||||
| -------- | -------- | -------- |
|
| -------- | -------- | -------- |
|
||||||
| VCC | Vin/5V+ | Power |
|
| VCC | Vin/5V+ | Power |
|
||||||
| GND | GND | GND |
|
| GND | GND | GND |
|
||||||
| In1 | GPIO16 | Power |
|
| In1 | GPIO8 | Power |
|
||||||
| In2 | GPIO12 | Input |
|
| In2 | GPIO7 | Input |
|
||||||
| In3 | GPIO12 | Input |
|
| In3 | GPIO7 | Input |
|
||||||
| In4 | GPIO12 | Input |
|
| In4 | GPIO7 | Input |
|
||||||
|
|
||||||
|
|
||||||
###### Switch:
|
###### Switch:
|
||||||
|
|
||||||
The switch should connect the GPIO to ground if it is pressed down:
|
The switch should connect the GPIO to ground if it is pressed down:
|
||||||
|
|
||||||
* power_sw: GPIO3
|
* power_sw: GPIO2
|
||||||
* input_sw: GPIO1
|
* input_sw: GPIO5
|
||||||
* alarm_sw: GPIO2
|
* alarm_sw: GPIO4
|
||||||
* sleep_sw: GPIO0
|
* sleep_sw: GPIO3
|
||||||
|
|
||||||
|
|
||||||
You can also change this at the beginning of the code:
|
You can also change this at the beginning of the code:
|
||||||
```
|
```
|
||||||
//Pin Taster
|
//Pin Taster
|
||||||
const int pinTime = 3; //Pin fuer Toggle_Power und Einstellen der Uhrzeit (Lang)
|
const int pinTime = 2; //Pin fuer Toggle_Power und Einstellen der Uhrzeit (Lang)
|
||||||
const int pinSet = 0; //Pin fuer Sleep und Zeit_Einstellung im Alarm/Time Set Mode
|
const int pinSet = 3; //Pin fuer Sleep und Zeit_Einstellung im Alarm/Time Set Mode
|
||||||
const int pinAlarm = 2; //Pin fuer Alarm An/Aus und setzen der Alarmzeiten (Lang)
|
const int pinAlarm = 4; //Pin fuer Alarm An/Aus und setzen der Alarmzeiten (Lang)
|
||||||
const int pinInput = 1; //Pin für die Eingangswahl
|
const int pinInput = 5; //Pin für die Eingangswahl
|
||||||
|
const int pinSleep = 6; //Pin Unbenutzt
|
||||||
const int pinSleep = 9; //Pin Unbenutzt
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//Pin Relay
|
//Pin Relay
|
||||||
const int outInput = 12;
|
const int outInput = 7;
|
||||||
const int outPower = 16;
|
const int outPower = 8;
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## How does it work
|
## How does it work
|
||||||
@@ -87,8 +84,6 @@ The Clock is controlled with 4 Buttons
|
|||||||
|
|
||||||
## Issues
|
## Issues
|
||||||
|
|
||||||
* Alarm 2 is not working like expected. It will be triggered every hour. (Alarm 1 is ok, once a day)
|
|
||||||
* Networkconnection is not used to update time over NTP. (not implemented yet)
|
|
||||||
* Long-Press blocks display until release.
|
* Long-Press blocks display until release.
|
||||||
|
|
||||||
## Dependencies
|
## Dependencies
|
||||||
|
|||||||
Reference in New Issue
Block a user