| Rev | Author | Line No. | Line |
|---|---|---|---|
| 229 | toman | 1 | #include "C:\RS\Prog\off\off.h" |
| 2 | |||
| 3 | void main() |
||
| 4 | { |
||
| 5 | |||
| 6 | port_b_pullups(TRUE); |
||
| 7 | setup_adc_ports(NO_ANALOGS); |
||
| 8 | setup_adc(ADC_OFF); |
||
| 9 | setup_spi(SPI_SS_DISABLED); |
||
| 10 | setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1); |
||
| 11 | setup_timer_1(T1_DISABLED); |
||
| 12 | setup_timer_2(T2_DISABLED,0,1); |
||
| 13 | setup_comparator(NC_NC_NC_NC); |
||
| 14 | setup_vref(FALSE); |
||
| 15 | |||
| 16 | while(TRUE) |
||
| 17 | { |
||
| 18 | if(input(PIN_B0)) |
||
| 19 | printf("A"); |
||
| 20 | } |
||
| 21 | |||
| 22 | } |