30 lines
507 B
C++
30 lines
507 B
C++
#include <SwitchControlLibrary.h>
|
|
|
|
void setup()
|
|
{
|
|
SwitchControlLibrary();
|
|
}
|
|
|
|
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++;
|
|
}
|