EDF - OnePIC MCU  v1.1.0
Base Code
Collaboration diagram for Base Code:

Modules

 I2C
 LCD
 LED
 mTouch
 RTCC

Files

file  OnePIC_i2c.h
file  OnePIC_int.h
file  OnePIC_isr.h
file  OnePIC_lcd.h
file  OnePIC_led.h
file  OnePIC_mtouch.h
file  OnePIC_pot.h
file  OnePIC_rtcc.h
file  OnePIC_switch.h
file  OnePIC_timer.h

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

Function Documentation

uint8_t switchPressed ( void  )

polls and debounces the switch for a press

Returns:
bool 1 if button pressed, else 0
Note:
the switch is duplexed with gpLED1 which is why port is being set as input briefly and then back to output

Definition at line 24 of file OnePIC_switch.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void switchTasks ( void  )

when switch is pressed, toggle all of the LEDs once

Note:
if held down, the state of the LEDs will remain constant

Definition at line 48 of file OnePIC_switch.c.

Here is the call graph for this function:

Here is the caller graph for this function: