added docs readme.md file for the project connections
This commit is contained in:
parent
af147baa1e
commit
7e476e1e67
BIN
docs/images/esp32c3_pinout.png
Normal file
BIN
docs/images/esp32c3_pinout.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 154 KiB |
BIN
docs/images/esp32s3_pinout.png
Normal file
BIN
docs/images/esp32s3_pinout.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 392 KiB |
26
docs/readme.md
Normal file
26
docs/readme.md
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
# Joystick Connections To Master
|
||||||
|
|
||||||
|
## ESP32C3 (Master) Connection
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
```
|
||||||
|
SDA_PIN = 6
|
||||||
|
SCL_PIN = 7
|
||||||
|
```
|
||||||
|
|
||||||
|
## ESP32S3 (Slaves) Connection
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
```
|
||||||
|
// Red Joystic
|
||||||
|
DIV_ADD = 0x10
|
||||||
|
SDA_PIN = 5
|
||||||
|
SCL_PIN = 4
|
||||||
|
|
||||||
|
// Blue Joystic
|
||||||
|
DIV_ADD = 0x20
|
||||||
|
SDA_PIN = 5
|
||||||
|
SCL_PIN = 4
|
||||||
|
```
|
@ -1,3 +1,5 @@
|
|||||||
|
// MAster
|
||||||
|
|
||||||
#include "dice.h" // Dice Function
|
#include "dice.h" // Dice Function
|
||||||
#include "header.h" // Player Data Types
|
#include "header.h" // Player Data Types
|
||||||
#include <Adafruit_NeoPixel.h>
|
#include <Adafruit_NeoPixel.h>
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// Slave
|
||||||
|
|
||||||
#include "pins.h"
|
#include "pins.h"
|
||||||
#include <Wire.h>
|
#include <Wire.h>
|
||||||
#include "healthbar.h"
|
#include "healthbar.h"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user