From 374428e14e4291856659b0043cd01b51e0aca141 Mon Sep 17 00:00:00 2001 From: iabdalkader Date: Wed, 20 Aug 2014 22:17:07 +0200 Subject: [PATCH] Add main.py example --- usr/examples/main.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 usr/examples/main.py diff --git a/usr/examples/main.py b/usr/examples/main.py new file mode 100644 index 000000000..9eb605711 --- /dev/null +++ b/usr/examples/main.py @@ -0,0 +1,10 @@ +import led, time +while (vcp_is_connected()==False): + led.on(led.BLUE) + time.sleep(150) + led.off(led.BLUE) + time.sleep(100) + led.on(led.BLUE) + time.sleep(150) + led.off(led.BLUE) + time.sleep(600)