-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathLED.h
More file actions
30 lines (22 loc) · 717 Bytes
/
LED.h
File metadata and controls
30 lines (22 loc) · 717 Bytes
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
/************************************************************************/
// File: LED.h
// Author: Erlend Ese, NTNU Spring 2016
// Purpose: For debugging and status identification
//
// Port and pins defined in defines.h file
/************************************************************************/
/* AVR includes */
#include <avr/io.h>
#ifndef LED_H_
#define LED_H_
/* Pin defines */
#include "defines.h"
/* Initialize LEDport pins as output */
void vLED_init();
/* Set a specific, single LED high */
void vLED_singleHigh(int ledCOLOR);
/* Set a specific, single LED low */
void vLED_singleLow(int ledCOLOR);
/* Toggle a single LED */
void vLED_toggle(int ledCOLOR);
#endif /* LED_H_ */