summaryrefslogtreecommitdiff
path: root/Origin/user-code/led/scilab/led-blue-delay.sce
blob: 4bea7826dcf49796f3f3747b398915abcfc2ac49 (plain)
1
2
3
4
5
6
ok = open_serial(1, 2, 115200);
if ok ~= 0, error('Check the serial port and try again'); end
cmd_digital_out(1, 9, 1) // turn blue LED on
sleep(2000)            // let the blue LED be on for two seconds
cmd_digital_out(1, 9, 0) // turn off blue LED
close_serial(1);         // close the connection safely