summaryrefslogtreecommitdiffstats
path: root/test/ccsc/standalone_blinker.c
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-24 18:42:24 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-24 18:42:24 +0000
commitf508189682b6fba62e08feeb1596f682bad5fff9 (patch)
tree28aeb0e6c19386c385c1ce5edf8a92c1bca15281 /test/ccsc/standalone_blinker.c
downloadpiklab-f508189682b6fba62e08feeb1596f682bad5fff9.tar.gz
piklab-f508189682b6fba62e08feeb1596f682bad5fff9.zip
Added KDE3 version of PikLab
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/piklab@1095639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'test/ccsc/standalone_blinker.c')
-rw-r--r--test/ccsc/standalone_blinker.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/ccsc/standalone_blinker.c b/test/ccsc/standalone_blinker.c
new file mode 100644
index 0000000..e1d3384
--- /dev/null
+++ b/test/ccsc/standalone_blinker.c
@@ -0,0 +1,18 @@
+// This file is used to test the CCS compiler from within Piklab
+// The resulting HEX file has not been verified in hardware
+
+#include <16F877.h>
+#fuses HS,NOWDT,PUT,NOPROTECT
+#use delay(clock=4000000)
+
+#define LED_PIN PIN_B0
+
+void main(void)
+{
+ while(1){
+ output_low(LED_PIN);
+ delay_ms(500);
+ output_high(LED_PIN);
+ delay_ms(500);
+ }
+} \ No newline at end of file