EDF - OnePIC MCU  v1.1.0
source/base/OnePIC_switch.c File Reference
#include "TimeDelay.h"
#include "OnePIC_switch.h"
#include "OnePIC_int.h"
Include dependency graph for OnePIC_switch.c:

Go to the source code of this file.

Functions

uint8_t switchPressed (void)
 polls and debounces the switch for a press
void switchTasks (void)
 when switch is pressed, toggle all of the LEDs once

Variables

uint8_t _pbState
 _pbState what state push button is in
uint8_t ON_ENTRY
 1 if held down already
swState _swState
 holds SW1 info

Detailed Description

Definition in file OnePIC_switch.c.