-
Notifications
You must be signed in to change notification settings - Fork 2
/
led.c
58 lines (54 loc) · 1.77 KB
/
led.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/*******************************************************************************
* File: led.c
* Author: Will Flores [email protected]
* Usage: This file makes the LEDS flash on the QSK Board.
* Description: This is the main file for the project and contains most of the
* project specific code.
* Environment: Windows 7, x64 build
* Built in HEW with MC16 Series Compiler V.5.44 Release 00
* Notes: NONE
* Revisions: 0.0, Initial Release
* 1.0, Better documented file and function headers
* Created on March 12, 2012
*******************************************************************************/
#include "QSKDefines.h"
#include "proto.h"
#include "extern.h"
int disp_count; // LED control variable
uint A2DValue;
uint A2DValuePot;
uint A2DValueTherm;
uchar A2DProcessed;
/*******************************************************************************
* Purpose: Makes the LEDs scan back and forth.
* Passed: No arguments passed.
* Locals: No locals variables used.
* Returned: No values returned.
* Author: Will Flores [email protected]
*******************************************************************************/
void LEDDisplay(void) {
/*
switch (disp_count){
case 1:
LED0 = LED_OFF;
LED1 = LED_OFF;
LED2 = LED_ON;
break;
case 2:
case 4:
LED0 = LED_OFF;
LED1 = LED_ON;
LED2 = LED_OFF;
break;
case 3:
LED0 = LED_ON;
LED1 = LED_OFF;
LED2 = LED_OFF;
break;
default:
LED0 = LED_OFF;
LED1 = LED_OFF;
LED2 = LED_OFF;
}
*/
}