This commit is contained in:
celclow committed 2019-01-04 16:42:24 +09:00
1 parent 45968f6dd5
commit 3207be03a6
7 files changed
+496

No files matched your search

+28
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++;
}