diff --git a/docs/images/esp32c3_pinout.png b/docs/images/esp32c3_pinout.png new file mode 100644 index 0000000..253522a Binary files /dev/null and b/docs/images/esp32c3_pinout.png differ diff --git a/docs/images/esp32s3_pinout.png b/docs/images/esp32s3_pinout.png new file mode 100644 index 0000000..b2664b2 Binary files /dev/null and b/docs/images/esp32s3_pinout.png differ diff --git a/docs/readme.md b/docs/readme.md new file mode 100644 index 0000000..4b3770e --- /dev/null +++ b/docs/readme.md @@ -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 +``` \ No newline at end of file diff --git a/src/game/code/code.ino b/src/game/code/code.ino index 85e43d1..9ac3e84 100644 --- a/src/game/code/code.ino +++ b/src/game/code/code.ino @@ -1,3 +1,5 @@ +// MAster + #include "dice.h" // Dice Function #include "header.h" // Player Data Types #include diff --git a/src/joystic/code/code.ino b/src/joystic/code/code.ino index da77a4c..69d18ae 100644 --- a/src/joystic/code/code.ino +++ b/src/joystic/code/code.ino @@ -1,3 +1,5 @@ +// Slave + #include "pins.h" #include #include "healthbar.h"