add readme
This commit is contained in:
parent
9b93105bf3
commit
dd1e3cbde3
1 changed files with 17 additions and 0 deletions
17
Readme.md
Normal file
17
Readme.md
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
# WebResetter Client
|
||||
|
||||
This repository is part of my WebResetter project. It contains the code and the schematics for the Client which gets connected to the Computer. It communicates via I2C to the WebResetter Server. The Server provides a HTTP API to control the Client. As the client dosn't need very much resources a attiny25 is enough. You can also use a attin45 or attiny85, but the additional space is not needed.
|
||||
|
||||
## I2C Communication
|
||||
The I2C Messages are always 2 Bytes long. The fist contains the command and the second the value. All clients have as default I2C address 0x02. You can change the address by a command.
|
||||
|
||||
### Commands
|
||||
| Command | Value | Description |
|
||||
|---------|-------|-------------|
|
||||
| 0x01 | 0x01 | Press the power button short |
|
||||
| 0x01 | 0x02 | Press the reset button short |
|
||||
| 0x02 | 0x01 | Press the power button long |
|
||||
| 0x02 | 0x02 | Press the reset button long |
|
||||
| 0x03 | 0x00 | Set the I2C Address ( The value is the address ) |
|
||||
| 0x04 | 0x00 | Set the short delay in seconds ( The value is the delay ) |
|
||||
| 0x05 | 0x00 | Set the long delay in seconds ( The value is the delay ) |
|
||||
Loading…
Add table
Add a link
Reference in a new issue