|
ButterflyMP3
|
#include <avr/io.h>#include <avr/pgmspace.h>#include "pgmspacehlp.h"#include "main.h"#include "ADC.h"#include "BCD.h"#include "LCD_functions.h"#include "types.h"#include "uart.h"
Go to the source code of this file.
Defines | |
| #define | Log2Flash 1 |
Functions | |
| void | ADC_init (char input) |
| int | ADC_read (void) |
| void | ADC2Temp (char log, int ADCresult) |
| void | ADC2Volt (char log, int ADCresult) |
| void | ADC2Light (char log, int ADCresult) |
Variables | |
| const int TEMP_Celcius_pos[] | PROGMEM |
| float | Vref = 2.900 |
| char | degree = 3 |
| void ADC2Light | ( | char | log, |
| int | ADCresult | ||
| ) |
Definition at line 538 of file ADC.c.
References LCD_putc().

| void ADC2Temp | ( | char | log, |
| int | ADCresult | ||
| ) |
Definition at line 256 of file ADC.c.
References CELCIUS, CHAR2BCD2(), degree, LCD_Colon(), LCD_putc(), and TRUE.

| void ADC2Volt | ( | char | log, |
| int | ADCresult | ||
| ) |
Definition at line 467 of file ADC.c.
References CHAR2BCD2(), LCD_putc(), and Vref.

| void ADC_init | ( | char | input | ) |
Definition at line 112 of file ADC.c.
References ADC_read(), and Vref.

| int ADC_read | ( | void | ) |
WARNING IS THIS A TYPO PORTD OR PORTF?????
Definition at line 146 of file ADC.c.
Referenced by ADC_init().
| char degree = 3 |
Definition at line 94 of file ADC.c.
Referenced by ADC2Temp().
| const int TEMP_Celcius_neg [] PROGMEM |
{
806,796,786,775,765,754,743,732,720,709,697,685,673,661,649,
636,624,611,599,586,574,562,549,537,524,512,500,488,476,464,
452,440,429,418,406,396,385,374,364,354,344,334,324,315,306,
297,288,279,271,263,255,247,240,233,225,219,212,205,199,193,
187,
}
| float Vref = 2.900 |
Definition at line 93 of file ADC.c.
Referenced by ADC2Volt(), and ADC_init().