flash force Wiki
Interactive browser →
Wiki / Other software
#tool#vll#rcx

rcxvll.nqh (pbrick)

Barnaby Walters wrote this NQC library in 2010, alongside an article called "Teaching the RCX VLL". It makes an RCX drive a Micro Scout by blinking a 9V light brick on an output port. pbrick.info hosts it, rather than wrote it.

Significance

This is where the full code table came from, and it was tested on real hardware. Decoding its macros gave every command its 7-bit value, and all 27 check out against the checksum — see How the links work.

Timing (NQC Wait = 10 ms units)

Command set (MsXxx macros)

Direct: Fwd 0, Rev 1, StopMotors 10, Beep1–5 = 4–8, RunScript 33, DeleteScript 34. Script: Fwd/Rev 0.5/1/2/5 s = 16–23, Beep1–5 = 24–28, WaitLight 29, SeekLight 30, Code 31, KeepAlive 32.

Documents the real stop code as 10 (not the old "15"), though on the physical brick neither worked; see VLL opcode table.

See also

See pbrick.info for the surrounding RCX↔MicroScout article.