mirror of
https://github.com/NathanReeves/BlueCubeMod
synced 2024-12-21 23:18:53 -05:00
compile error fix
This commit is contained in:
parent
4ed68f630b
commit
57e01f91ed
42
Firmware/BlueCubeModv2/README.md
Normal file
42
Firmware/BlueCubeModv2/README.md
Normal file
@ -0,0 +1,42 @@
|
||||
# BlueCubeMod
|
||||
|
||||
ESP32 based GameCube Controller Bluetooth conversion for Nintendo Switch
|
||||
|
||||
v1:
|
||||
Mac/PC/PS4 supported (tested using Dolphin Emulator on Mac)
|
||||
|
||||
For Switch/RaspberryPi, use an 8Bitdo USB adapter
|
||||
|
||||
v2:
|
||||
Switch support only - no adapter required
|
||||
|
||||
## Wiring:
|
||||
|
||||
- Connect pins 23 and 18 to GameCube controller's data pin (Red)
|
||||
|
||||
- Connect GND to controller's ground pin (Black)
|
||||
|
||||
## Build instructions(v2):
|
||||
|
||||
- Use this esp-idf fork here: https://github.com/NathanReeves/esp-idf
|
||||
|
||||
- Set up the esp-idf environment: https://docs.espressif.com/projects/esp-idf/en/latest/get-started/
|
||||
|
||||
- Get the BlueCubeModv2 firmware
|
||||
|
||||
- If you haven’t flashed an ESP32 project before, you need the port name of ESP32 for the config file. If using unix system, to get the port name of a USB device run:
|
||||
|
||||
`ls /dev`
|
||||
|
||||
- Find your device on the list and copy it. It should look something like: /dev/cu.usbserial-DO01EXOV or /dev/cu.SLAB_USBtoUART
|
||||
|
||||
- cd into project folder and run:
|
||||
|
||||
`make menuconfig`
|
||||
|
||||
- Paste your port name into Serial Flasher Config -> Default Serial Port
|
||||
|
||||
- Compile and flash the program, run:
|
||||
|
||||
`make flash monitor`
|
||||
|
@ -63,6 +63,13 @@ static uint8_t rt_send = 0;
|
||||
//RMT Transmitter Init - for reading GameCube controller
|
||||
rmt_item32_t items[25];
|
||||
rmt_config_t rmt_tx;
|
||||
|
||||
SemaphoreHandle_t xSemaphore;
|
||||
bool connected = false;
|
||||
int paired = 0;
|
||||
TaskHandle_t SendingHandle = NULL;
|
||||
TaskHandle_t BlinkHandle = NULL;
|
||||
uint8_t timer = 0;
|
||||
static void rmt_tx_init()
|
||||
{
|
||||
|
||||
@ -378,14 +385,9 @@ static void get_buttons()
|
||||
|
||||
}
|
||||
}
|
||||
SemaphoreHandle_t xSemaphore;
|
||||
bool connected = false;
|
||||
int paired = 0;
|
||||
TaskHandle_t SendingHandle = NULL;
|
||||
TaskHandle_t BlinkHandle = NULL;
|
||||
|
||||
//Switch button report example // batlvl Buttons Lstick Rstick
|
||||
//static uint8_t report30[] = {0x30, 0x00, 0x90, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
|
||||
uint8_t timer = 0;
|
||||
static uint8_t report30[] = {
|
||||
0x30,
|
||||
0x0,
|
||||
|
Loading…
Reference in New Issue
Block a user