Wiki / Sources
adriansieber
A Swift project to control a LEGO Code Pilot, Scout, or MicroScout on iPadOS. The basis for Flash Force's engine.
Key points
- One VLL codebase drives Code Pilot, Scout and Micro Scout — same codes, the older devices just have fewer options.
- Frame: init 400 ms ON → start 20 ms OFF → bit0 = 40 on/20 off, bit1 = 20 on/40 off → stop (ON 20 / OFF 60 / ON 120). 10 bits = 3 checksum + 7 data.
- Sample codes: motor
0b0000000/0b0000001, timed spins0b0010000–0b0010111, wait-light0b0011101, seek-light0b0011110, run0b0100001, delete0b0100010→ matches VLL opcode table. - Emits via the iPad torch (
AVCaptureDevice) → Phone torch (Flash Force).