Skip to content

Commit cdc0d4d

Browse files
committed
Added plugins/samples/RepeatA.py
1 parent 146db0f commit cdc0d4d

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

plugins/samples/RepeatA.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import logging
2+
from JoycontrolPlugin import JoycontrolPlugin
3+
4+
logger = logging.getLogger(__name__)
5+
6+
class RepeatA(JoycontrolPlugin):
7+
async def run(self):
8+
logger.info('Repeat A Plugin')
9+
10+
while True:
11+
await self.button_push('a')
12+
await self.wait(0.1)

0 commit comments

Comments
 (0)