Skip to content

Commit 2f94779

Browse files
committed
Preliminary CC-side support for Pico W.
1 parent c3b703c commit 2f94779

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

SerialPrograms/Source/Controllers/SerialPABotBase/SerialPABotBase.cpp

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const ControllerFeatures OLD_NINTENDO_SWITCH_DEFAULT_REQUIREMENTS{
2525

2626
std::string program_name(uint8_t id){
2727
switch (id){
28-
case PABB_PID_UNSPECIFIED: return "Microcontroller Program";
28+
case PABB_PID_UNSPECIFIED: return "None";
2929

3030
// Old (fat) PABotBase with scheduler.
3131
case PABB_PID_PABOTBASE_12KB: return "PABotBase-AVR8-12KB";
@@ -43,6 +43,8 @@ std::string program_name(uint8_t id){
4343
case PABB_PID_PABOTBASE_ESP32: return "PABotBase-ESP32";
4444
case PABB_PID_PABOTBASE_ESP32S3: return "PABotBase-ESP32-S3";
4545

46+
case PABB_PID_PABOTBASE_PicoW: return "PABotBase-PicoW";
47+
4648
default: return "Unknown ID";
4749
}
4850
}
@@ -174,6 +176,20 @@ const std::map<
174176
ControllerFeature::NintendoSwitch_RightJoycon,
175177
}},
176178
}},
179+
{PABB_PID_PABOTBASE_PicoW, {
180+
{ControllerType::NintendoSwitch_WirelessProController, {
181+
ControllerFeature::TickPrecise,
182+
ControllerFeature::NintendoSwitch_ProController,
183+
}},
184+
{ControllerType::NintendoSwitch_LeftJoycon, {
185+
ControllerFeature::TickPrecise,
186+
ControllerFeature::NintendoSwitch_LeftJoycon,
187+
}},
188+
{ControllerType::NintendoSwitch_RightJoycon, {
189+
ControllerFeature::TickPrecise,
190+
ControllerFeature::NintendoSwitch_RightJoycon,
191+
}},
192+
}},
177193
}},
178194
{2025081711, {
179195
{PABB_PID_PABOTBASE_ESP32S3, {

SerialPrograms/Source/Controllers/SerialPABotBase/SerialPABotBase_PostConnectActions.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ void run_post_connect_actions(
215215
){
216216
switch (program_id){
217217
case PABB_PID_PABOTBASE_ESP32:
218+
case PABB_PID_PABOTBASE_PicoW:
218219
run_post_connect_actions_ESP32(status, device_name, botbase, change_controller, clear_settings);
219220
return;
220221
case PABB_PID_PABOTBASE_ESP32S3:

0 commit comments

Comments
 (0)