Skip to content

Switch not recognizing controller #26

@zaddykong

Description

@zaddykong

I am using Arduino version (1.8.19) and have downloaded
NintendoSwitchControlLibrary but my Arduino Leonardo will not be recognized by the Switch Lite, this is the test code I am trying to run:

#include <NintendoSwitchControlLibrary.h>

void setup() {
delay(3000); // give the Switch time to say "oh ok you're real"

// Open HOME menu
pushButton(Button::HOME, 1000);

// Move right twice
pushHat(Hat::RIGHT, 300, 2);

// Press A
pushButton(Button::A, 1000);
}

void loop() {
// Loop test so you can visually confirm it's still running
pushHat(Hat::LEFT, 300);
pushHat(Hat::RIGHT, 300);
}
Is there something wrong with my code or is the NintendoSwitchControlLibrary out of date?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions