This commit is contained in:
celclow
2019-01-04 16:42:24 +09:00
parent 45968f6dd5
commit 3207be03a6
7 changed files with 496 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
#include <SwitchControlLibrary.h>
void setup()
{
}
int loopCount = 0;
void loop()
{
if (100 < loopCount)
loopCount = 0;
if (loopCount == 50)
{
SwitchControlLibrary().PressButtonL();
SwitchControlLibrary().PressButtonR();
SwitchControlLibrary().ReleaseButtonL();
SwitchControlLibrary().ReleaseButtonR();
}
if (loopCount == 100)
{
SwitchControlLibrary().PressButtonA();
SwitchControlLibrary().ReleaseButtonA();
}
loopCount++;
}