summaryrefslogtreecommitdiffstats
path: root/test/ccsc/standalone_blinker.c
diff options
context:
space:
mode:
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