Changing main controller README
This commit is contained in:
parent
48cb74c09f
commit
78c651e3a9
|
@ -12,7 +12,7 @@ The robot’s I2C communication works as follows:
|
||||||
* Send the target register address (to read from or write to).
|
* Send the target register address (to read from or write to).
|
||||||
* Read or write the register data. Multiple registers can be read/written sequentially, with the address auto-incrementing after each operation.
|
* Read or write the register data. Multiple registers can be read/written sequentially, with the address auto-incrementing after each operation.
|
||||||
|
|
||||||
This code is designed to be the master in the i2c communication;
|
This code is designed to be the master in the i2c communication.
|
||||||
|
|
||||||
|Adress |R/W|Description |Encoding |
|
|Adress |R/W|Description |Encoding |
|
||||||
|-------|:-:|-------------------------------|:-----------------:|
|
|-------|:-:|-------------------------------|:-----------------:|
|
||||||
|
@ -51,4 +51,13 @@ To control a servo motor you need to write data to its adress of the form :
|
||||||
>uint8_t close;
|
>uint8_t close;
|
||||||
>```
|
>```
|
||||||
|
|
||||||
Value is 0 or 1 for the open or the close pos.
|
Value is 0 or 1 for the open or the close pos.
|
||||||
|
|
||||||
|
|
||||||
|
Pinout description
|
||||||
|
-----------------------------------------------
|
||||||
|
|
||||||
|
|Pin |Description |GPIO Type |
|
||||||
|
|----|----------------------------------|-----------|
|
||||||
|
| 4 | I2C Bus SDA | I2C |
|
||||||
|
| 5 | I2C Bus SCL | I2C |
|
||||||
|
|
Loading…
Reference in New Issue