- code to talk to rdevice and turn on/off led