added docs readme.md file for the project connections

This commit is contained in:
Ghassan Yusuf 2025-06-10 23:00:33 +03:00
parent af147baa1e
commit 7e476e1e67
5 changed files with 30 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 154 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 392 KiB

26
docs/readme.md Normal file
View File

@ -0,0 +1,26 @@
# Joystick Connections To Master
## ESP32C3 (Master) Connection
![ESP32S3 Pinout](./images/esp32c3_pinout.png "Text to show on mouseover")
```
SDA_PIN = 6
SCL_PIN = 7
```
## ESP32S3 (Slaves) Connection
![ESP32S3 Pinout](./images/esp32s3_pinout.png "Text to show on mouseover")
```
// Red Joystic
DIV_ADD = 0x10
SDA_PIN = 5
SCL_PIN = 4
// Blue Joystic
DIV_ADD = 0x20
SDA_PIN = 5
SCL_PIN = 4
```

View File

@ -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>

View File

@ -1,3 +1,5 @@
// Slave
#include "pins.h" #include "pins.h"
#include <Wire.h> #include <Wire.h>
#include "healthbar.h" #include "healthbar.h"