These are snippets of code that are there simply to demonstrate how to use a certain set of commands or ideas. If you would like more examples, send an e-mail to the TA staff and specify what it is you want an example of. If we have time, we'll write one up and post it here.
light.c light sensors
motors.c motors
lcd.c LCD panel
helloworld.c Hello World
battery.c Battery voltage reading
sound.c Sound
touch.c Touch sensor
wait.c wakeup calls, wait_event
threads.c Threads/Processes
lnp_printf.c LNP printf
lnp_reliable_printf.c LNP reliable printf
datalog.c The Data Log
brick1.c brick2.c RCX to RCX communication
math.c Math functions