Пример #1
0
from NXController import Controller

ctr = Controller()
## Or use your serial port if you have many
# ctr = Controller('/dev/tty.usbserial-AO0099VT'); 
ctr.A()
ctr.B()
ctr.X()
ctr.Y()
ctr.L()
ctr.R()
ctr.ZL()
ctr.ZR()
ctr.LS()
ctr.RS()
ctr.PLUS()
ctr.MINUS()
## long press to quit
ctr.B(5)
ctr.close()
Пример #2
0
from NXController import Controller

ctr = Controller()
N = 30  # Number of Pokemon in the box
ctr.buttondelay = 0.2
for i in range(N):
    print(f'{i+1}/{N}')
    ctr.A()
    ctr.DOWN(0.7)
    ctr.RIGHT(0.7)
    ctr.A()
    ctr.R()
    ctr.R()
    ctr.A()
    ctr.L()
    ctr.L()
    ctr.L()
#ctr.p()
ctr.close()