mindstorms Playing with Lego Mindstorms. Ports The A, B, C and D ports are the output ports; the numbered ones are for input. Compiling Connect the brick via USB and do $ nbc -d <file>