Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/asottile/nintendo-microcontrollers
/ functions
Functions
408 in github.com/asottile/nintendo-microcontrollers
⨍
Functions
408
◇
Types & classes
24
↓ 490 callers
Function
do
(*actions: Action)
scripts/engine.py:235
↓ 118 callers
Function
match_px
(point: Point, *colors: Color)
scripts/engine.py:142
↓ 113 callers
Function
match_text
( text: str, top_left: Point, bottom_right: Point, *, invert: bool, )
scripts/engine.py:219
↓ 64 callers
Function
all_match
(*matchers: Matcher)
scripts/engine.py:130
↓ 47 callers
Function
region_colorish
( top_left: Point, bottom_right: Point, hsv_low: tuple[int, int, int], hsv_hig
scripts/thrids.py:22
↓ 43 callers
Function
_press
(ser: serial.Serial, s: str, duration: float = .05)
scripts/swsh/auto_raid_reset.py:42
↓ 39 callers
Function
make_vid
()
scripts/engine.py:21
↓ 39 callers
Function
run
( *, vid: cv2.VideoCapture, ser: serial.Serial, initial: str, states:
scripts/engine.py:305
↓ 38 callers
Method
norm
(self, dims: tuple[int, int, int])
scripts/engine.py:91
↓ 31 callers
Function
_press
(ser: serial.Serial, s: str, *, duration: float = .05)
scripts/home/home_release.py:11
↓ 31 callers
Function
get_text
( frame: numpy.ndarray, top_left: Point, bottom_right: Point, *, inver
scripts/engine.py:197
↓ 29 callers
Function
getframe
(vid: cv2.VideoCapture)
scripts/engine.py:29
↓ 26 callers
Function
_press
(ser: serial.Serial, s: str, duration: float = .05)
scripts/swsh/date_cycle.py:13
↓ 20 callers
Method
after
(self, t: float)
scripts/engine.py:268
↓ 19 callers
Function
_wait_and_render
(vid: cv2.VideoCapture, t: float)
scripts/swsh/auto_raid_reset.py:80
↓ 18 callers
Function
look
(*, x: int, y: int)
scripts/arceus/std_cm.py:216
↓ 18 callers
Function
rot
(deg: float)
scripts/arceus/std_cm.py:208
↓ 15 callers
Function
_wait_and_render
(vid: cv2.VideoCapture, t: float)
scripts/swsh/sinistea.py:31
↓ 15 callers
Method
determine
(self, name: str)
scripts/arceus/std_cm.py:146
↓ 12 callers
Function
alarm
(name: str, *, quiet: bool)
scripts/switch.py:81
↓ 10 callers
Function
_wait_and_render
(vid: cv2.VideoCapture, t: float)
scripts/swsh/regi_reset.py:31
↓ 9 callers
Function
_getframe
(vid: cv2.VideoCapture)
scripts/bdsp/arceus_reset.py:23
↓ 9 callers
Function
_press
(ser: serial.Serial, s: str, duration: float = .1)
scripts/swsh/regi_reset.py:15
↓ 9 callers
Function
_wait_and_render
(vid: cv2.VideoCapture, t: float)
scripts/bdsp/arceus_reset.py:31
↓ 9 callers
Function
alarm
(name: str)
scripts/thrids.py:64
↓ 8 callers
Function
_press
(ser: serial.Serial, s: str, duration: float = .1)
scripts/bdsp/arceus_reset.py:15
↓ 8 callers
Method
skip
(self, start: str, end: str)
scripts/swsh/_mrb_date_skip.py:66
↓ 8 callers
Function
voltage
hw/3ds-touch/main.cpp:36
↓ 7 callers
Function
_getframe
(vid: cv2.VideoCapture)
scripts/swsh/sinistea.py:23
↓ 7 callers
Function
_press
(ser: serial.Serial, s: str, duration: float = .05)
scripts/swsh/revive_fossils.py:11
↓ 7 callers
Function
any_match
(*matchers: Matcher)
scripts/engine.py:136
↓ 7 callers
Function
dialog_shiny_check
( begin: str, end: str, alarm: str, *, cutoff: float = 1., )
scripts/swsh/_dialog_shiny_check.py:26
↓ 6 callers
Function
_rects
( hsv: numpy.ndarray, low: tuple[int, int, int], high: tuple[int, int, int], )
scripts/arceus/std_cm.py:113
↓ 6 callers
Function
_save
(name: str, frame: numpy.ndarray, *, success: bool)
scripts/arceus/std_cm.py:75
↓ 6 callers
Function
bootup
(begin: str, end: str)
scripts/swsh/_bootup.py:23
↓ 6 callers
Function
stars
(n: int)
scripts/swsh/mrb_reset.py:52
↓ 6 callers
Function
tessapi_int
()
scripts/engine.py:170
↓ 5 callers
Function
_best
( crop: numpy.ndarray, candidates: list[tuple[str, numpy.ndarray]], )
scripts/sv/_raid.py:172
↓ 5 callers
Function
_getframe
(vid: cv2.VideoCapture)
scripts/swsh/regi_reset.py:23
↓ 5 callers
Function
_state
(tl: Point, br: Point, n: int, s: str, e: str)
scripts/switch.py:110
↓ 5 callers
Function
bootup
(start: str, success: str, fail: str)
scripts/sv/_bootup.py:17
↓ 5 callers
Function
clock
(dt: datetime.datetime, name: str, end: str)
scripts/switch.py:109
↓ 5 callers
Function
orient
(direction: str)
scripts/arceus/wormadam_sand.py:36
↓ 4 callers
Function
_await_pixel
( ser: serial.Serial, vid: cv2.VideoCapture, *, x: int, y: int,
scripts/swsh/regi_reset.py:45
↓ 4 callers
Function
_imgs
(d: str)
scripts/sv/_raid.py:118
↓ 4 callers
Function
attack_position
(frame: numpy.ndarray)
scripts/sv/_raid.py:238
↓ 4 callers
Function
avg
(p1: tuple[int, int], p2: tuple[int, int])
scripts/arceus/std.py:111
↓ 4 callers
Method
denorm
(self, dims: tuple[int, int, int])
scripts/engine.py:97
↓ 4 callers
Function
get_int
( frame: numpy.ndarray, tl: Point, br: Point, *, invert: bool,
scripts/swsh/da.py:50
↓ 4 callers
Function
move_box
(start: str, end: str, direction: str)
scripts/sv/_move_box.py:15
↓ 4 callers
Function
orient
(direction: str)
scripts/arceus/wormadam_trash.py:38
↓ 4 callers
Function
press
(s: str, t: float)
scripts/b2w2/shaky_touch.py:32
↓ 4 callers
Function
to_boxes
(start: str, end: str)
scripts/sv/_to_boxes.py:15
↓ 4 callers
Function
voltage
hw/joycon/main.cpp:28
↓ 3 callers
Function
_alarm
(ser: serial.Serial, vid: cv2.VideoCapture)
scripts/swsh/sinistea.py:37
↓ 3 callers
Function
_alarm
(ser: serial.Serial, vid: cv2.VideoCapture)
scripts/swsh/regi_reset.py:37
↓ 3 callers
Function
_alarm
(ser: serial.Serial, vid: cv2.VideoCapture)
scripts/bdsp/arceus_reset.py:37
↓ 3 callers
Function
_await_not_pixel
( ser: serial.Serial, vid: cv2.VideoCapture, *, x: int, y: int,
scripts/swsh/regi_reset.py:62
↓ 3 callers
Function
_await_pixel
( ser: serial.Serial, vid: cv2.VideoCapture, *, x: int, y: int,
scripts/bdsp/arceus_reset.py:45
↓ 3 callers
Function
_color_near
(pixel: numpy.ndarray, expected: tuple[int, int, int])
scripts/bdsp/arceus_reset.py:79
↓ 3 callers
Function
_getframe
(vid: cv2.VideoCapture)
scripts/swsh/auto_raid_reset.py:26
↓ 3 callers
Function
_info
()
scripts/swsh/da.py:164
↓ 3 callers
Function
_poke_like
(tops: list[Rect], bottoms: list[Rect])
scripts/arceus/std_cm.py:133
↓ 3 callers
Function
battle
(start: str, end: str)
scripts/arceus/wormadam_sand.py:42
↓ 3 callers
Function
battle
(start: str, after_battle: str, end: str)
scripts/arceus/wormadam_trash.py:44
↓ 3 callers
Method
equals
(self, n: int)
scripts/engine.py:292
↓ 3 callers
Function
get_text_rotated
( frame: numpy.ndarray, tl: Point, br: Point, *, invert: bool, )
scripts/thrids.py:45
↓ 3 callers
Function
raid_type
(frame: numpy.ndarray)
scripts/sv/_raid.py:150
↓ 3 callers
Function
requested
(n: int)
scripts/swsh/mrb_reset.py:57
↓ 3 callers
Function
save
(name: str, frame: numpy.ndarray)
scripts/sv/dolliv_sandwich.py:67
↓ 3 callers
Function
stick
( s: Literal['<', '>'], *, x: int, y: int, duration: float = .1, )
scripts/switch.py:66
↓ 3 callers
Function
tap
(s: str)
scripts/hgss/re.py:43
↓ 2 callers
Function
_await_pixel
( ser: serial.Serial, vid: cv2.VideoCapture, *, x: int, y: int,
scripts/swsh/sinistea.py:61
↓ 2 callers
Function
_bootup
(start: str, end: str)
scripts/rs/jirachi.py:27
↓ 2 callers
Function
_extract_type
( im: numpy.ndarray, dims: tuple[int, int, int], )
scripts/sv/_raid.py:128
↓ 2 callers
Function
_is_clean
()
scripts/sv/reset_outbreaks.py:37
↓ 2 callers
Function
_open_date_panel
(ser: serial.Serial)
scripts/swsh/auto_raid_reset.py:50
↓ 2 callers
Function
_poke_mask
(crop: numpy.ndarray)
scripts/sv/_raid.py:193
↓ 2 callers
Function
_press
(ser: serial.Serial, s: str, duration: float = .05)
scripts/swsh/sinistea.py:15
↓ 2 callers
Function
_release
()
scripts/sv/release.py:32
↓ 2 callers
Function
_return_to_game_from_date_panel
(ser: serial.Serial)
scripts/swsh/auto_raid_reset.py:73
↓ 2 callers
Function
_sprites
(size: tuple[int, int])
scripts/sv/_raid.py:155
↓ 2 callers
Function
a_for
(n: float)
scripts/b2w2/shaky_touch.py:57
↓ 2 callers
Function
arceus_flying
(turn: int)
scripts/sv/raid_specific.py:47
↓ 2 callers
Function
bootup
(start: str, end: str)
scripts/colosseum/_bootup.py:12
↓ 2 callers
Function
capture
(name: str)
scripts/arceus/std_cm.py:84
↓ 2 callers
Function
crop
(frame: numpy.ndarray)
scripts/b2w2/shaky.py:48
↓ 2 callers
Function
crop
(frame: numpy.ndarray)
scripts/b2w2/shaky_touch.py:74
↓ 2 callers
Function
get_type
(tl: Point, br: Point)
scripts/swsh/da.py:332
↓ 2 callers
Function
getframe
()
scripts/debug_screen.py:20
↓ 2 callers
Function
is_shiny
(frame: object)
scripts/xy/fish.py:60
↓ 2 callers
Function
is_shiny
(frame: object)
scripts/xy/re.py:88
↓ 2 callers
Function
match_px_exact
(px: Point, c: Color)
scripts/engine.py:153
↓ 2 callers
Function
near_color
(pixel: numpy.ndarray, expected: tuple[int, int, int])
scripts/swsh/auto_raid_reset.py:34
↓ 2 callers
Function
press
(s: str, t: float)
scripts/b2w2/shaky.py:31
↓ 2 callers
Function
press
(s: str)
scripts/za/zone20.py:33
↓ 2 callers
Function
req
(url: str)
scripts/sv/_download_sprites.py:67
↓ 2 callers
Function
serial_read_blocking
hw/switch/main.cpp:286
↓ 2 callers
Function
t
()
serial_debug.py:14
↓ 2 callers
Function
tess_text_u8
( img: numpy.ndarray, *, tessapi: tesserocr.PyTessBaseAPI | None = None, )
scripts/engine.py:180
next →
1–100 of 408, ranked by callers