PIC24 Support Libraries
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
ledtoggle.c File Reference
#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.
 
int main (void)
 

Detailed Description

A program that uses a finite state machine approach for toggling an LED whenever a pushbutton switch is pressed and released. Demonstrates the use of debounce delays when polling a switch input.

Definition in file ledtoggle.c.

Function Documentation

int main ( void  )

GPIO config

Definition at line 79 of file ledtoggle.c.