Thanks for the clear example.
Is there a reason I can't access pins 15-17 (extension board RGB led)?
I can update the values using (b)ash fast-gpio commands
root@Omega1:~# ls /sys/class/gpio/
export gpio1 gpio13 gpio18 gpio23 gpio6 gpio8 unexport gpio0 gpio12 gpio14 gpio19 gpio26 gpio7 gpiochip0