|
PIC24 Support Libraries
|
#include "pic24_all.h"Go to the source code of this file.
Macros | |
| #define | CONFIG_LED1() CONFIG_RB14_AS_DIG_OUTPUT() |
| LED1. | |
Functions | |
| void | CONFIG_SW1 () |
| Switch1 configuration. | |
| void | CONFIG_SW2 () |
| Switch2 configuration, does not have to be debounced. | |
| int | main (void) |
Variables | |
| volatile uint8_t | u8_pnrSW1 = 0 |
| True when SW1 has been Pressed-N-Released. | |
Demonstrates the use of a period interrupt to sample a switch input, removes the need for debounce delays. Uses a semaphore for press & release.
Definition in file ledsw1_timer.c.
| int main | ( | void | ) |
1.8.4