Just got a new Beaglebone Black and still having troubles to get use to the bonescript library? This small tutorial shows how to biuld a small traffic light using leds and controlling then with the bonescript library.
http://diegotc.github.io/bone101/Support/GSOC/views/tutorial.html?gistid=21655375e418fb70afbc