added docs readme.md file for the project connections
This commit is contained in:
1 parent
af147baa1e
commit
7e476e1e67
5 files changed
+30
No files matched your search
Binary file not shown.
|
After Width: | Height: | Size: 154 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 392 KiB |
@@ -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"
|
||||||
|
|||||||
Reference in new issue
Block a user