Beispiel #1
0
from NSController import Controller

ctr = Controller()
## Or use your serial port if you have many
# ctr = Controller('/dev/tty.usbserial-AO0099VT');

# Hold two stick in the oppsite direction
ctr.ls_r(-1)
ctr.rs_l(-1)
ctr.pause(5)
ctr.release()
# Backwards
ctr.ls_l(-1)
ctr.rs_r(-1)
ctr.pause(5)
ctr.release()

ctr.close()
Beispiel #2
0
from NSController import Controller

ctr = Controller()
## Or use your serial port if you have many
# ctr = Controller('/dev/tty.usbserial-AO0099VT');

# Advance raid seed 3 times
for i in range(3):
    # enter the raid
    ctr.A()
    ctr.pause(2)

    # quit the game and go to settings
    ctr.h()
    ctr.pause(1)
    ctr.d()
    for i in range(4):
        ctr.r()
    ctr.A()
    ctr.d(2)
    ctr.r()
    for i in range(4):
        ctr.d()
    ctr.A()

    # change the date
    ctr.d(0.4)  # Scroll down to bottom
    ctr.A()
    ctr.r()
    ctr.r()
    ctr.u()
from NSController import Controller

# last pokemon box should be a empty box, the target/last map destination should be the Day Care in Wild Area
# last X menu item should be "Map", egg should be ready to pick
# Empty your party, and on your bike

ctr = Controller()
cycle = 20  # Egg cycle
hatchingtime = 18  # Hatching time in second (18 to prevent freezing)

## Prepare
# ctr.quit_app()
# ctr.pause(5)
# ctr.enter_app()
# ctr.pause(15)
# ctr.A()
# ctr.pause(10)
# ctr.X()
# ctr.pause(1)
# ctr.d()
# ctr.B()
# ctr.pause(2)

for i in range(6):
    for j in range(5):
        ctr.buttondelay = 0.1
        # Fly to Day Care in Wild Area
        ctr.X()
        ctr.pause(1)
        ctr.A()
        ctr.pause(2.5)
Beispiel #4
0
from NSController import Controller

ctr = Controller()
## Or use your serial port if you have many
# ctr = Controller('/dev/tty.usbserial-AO0099VT');
for i in range(10):
    ctr.A()
ctr.close()
from NSController import Controller
import datetime

ctr = Controller()

# Cursor on SystemSettings-->System-->Date and Time-->Date and Time
# 先触发vs断网跳帧的bug,然后进入设置-->主机-->日期与时间-->现在的日期与时间,光标停留在日期和时间上

#Input current date of your Switch 输入当前日期
currentDate = datetime.date(
    2020, 2, 21)  # input date(year,month,day) 输入switch机器当前日期(年,月,日)
frames_num = 99  # Number of frames to go forward  需前进帧数


# Reset Cursor 光标复位
def resetCursor():
    ctr.A()
    ctr.r()
    ctr.r()
    ctr.r()
    ctr.r()
    ctr.r()
    ctr.A()


resetCursor()
prev_year = currentDate.year
prev_mon = currentDate.month
prev_day = currentDate.day

for i in range(1, frames_num + 1):
Beispiel #6
0
from NSController 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.p()
ctr.m()
## long press to quit
ctr.B(5)
ctr.close()
from NSController import Controller

ctr = Controller()

for i in range(30):
    ctr.A()
    if i == 0:
        ctr.r()
        ctr.r()
    else:
        ctr.l()
        ctr.l()
        ctr.l()
    ctr.u()
    ctr.r(0.4)
    ctr.A()

ctr.close()