blob: e4a5c5ae6996349d67b52b61927a8e20e9953542 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// This file is used to test the CCS compiler from within Piklab
// The resulting HEX file has not been verified in hardware
#include </home/azhyd/prog/ccs/devices/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);
}
}
|