Skip to content

Commit b1f166f

Browse files
committed
Forgot a file.
1 parent f4a7555 commit b1f166f

File tree

1 file changed

+9
-42
lines changed

1 file changed

+9
-42
lines changed

Common/SerialPABotBase/SerialPABotBase_Messages_ESP32.h

Lines changed: 9 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -56,29 +56,23 @@ typedef struct{
5656
} PABB_PACK pabb_Message_ESP32_RequestStatus;
5757

5858

59-
#if 0
60-
#define PABB_MSG_ESP32_SET_MAC_ADDRESS 0x61
61-
typedef struct{
62-
seqnum_t seqnum;
63-
uint32_t controller_type;
64-
uint8_t mac_address[6];
65-
} PABB_PACK pabb_Message_ESP32_SetMacAddress;
66-
#endif
67-
68-
6959

70-
#define PABB_MSG_ESP32_REQUEST_GET_COLORS 0x64
60+
#define PABB_MSG_ESP32_REQUEST_READ_SPI 0x60
7161
typedef struct{
7262
seqnum_t seqnum;
7363
uint32_t controller_type;
74-
} PABB_PACK pabb_Message_ESP32_GetColors;
64+
uint32_t address;
65+
uint8_t bytes;
66+
} PABB_PACK pabb_Message_ESP32_ReadSpi;
7567

76-
#define PABB_MSG_ESP32_REQUEST_SET_COLORS 0x65
68+
#define PABB_MSG_ESP32_REQUEST_WRITE_SPI 0x61
7769
typedef struct{
7870
seqnum_t seqnum;
7971
uint32_t controller_type;
80-
NintendoSwitch_ControllerColors colors;
81-
} PABB_PACK pabb_Message_ESP32_SetColors;
72+
uint32_t address;
73+
uint8_t bytes;
74+
} PABB_PACK pabb_Message_ESP32_WriteSpi;
75+
8276

8377

8478
#define PABB_MSG_ESP32_CONTROLLER_STATE_BUTTONS 0xa0
@@ -100,33 +94,6 @@ typedef struct{
10094

10195

10296

103-
// Deprecated
104-
105-
typedef struct{
106-
uint8_t report_id;
107-
uint8_t timer;
108-
uint8_t byte2;
109-
uint8_t button3;
110-
uint8_t button4;
111-
uint8_t button5;
112-
uint8_t left_joystick[3];
113-
uint8_t right_joystick[3];
114-
uint8_t vibrator;
115-
uint8_t gyro[49 - 13];
116-
} NintendoSwitch_ESP32Report0x30;
117-
118-
119-
#define PABB_MSG_ESP32_REPORT 0x9e
120-
typedef struct{
121-
seqnum_t seqnum;
122-
uint8_t ticks;
123-
bool active;
124-
NintendoSwitch_ESP32Report0x30 report;
125-
} PABB_PACK pabb_esp32_report30;
126-
127-
128-
129-
13097
#ifdef __cplusplus
13198
}
13299
}

0 commit comments

Comments
 (0)