Fixed indentation
This commit is contained in:
parent
9f20dee3ab
commit
e847304d23
@ -25,10 +25,10 @@ void pin_init() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** @brief Initializes ADC with required settings
|
/** @brief Initializes ADC with required settings
|
||||||
*/
|
*/
|
||||||
void adc_init() {
|
void adc_init() {
|
||||||
/* ADC Settings
|
/* ADC Settings
|
||||||
* Use AVcc as Vref
|
* Use 1v1 reference as Vref
|
||||||
* Initially set input as GND
|
* Initially set input as GND
|
||||||
* Data right-adjusted
|
* Data right-adjusted
|
||||||
* No Interrupts
|
* No Interrupts
|
||||||
|
@ -7,14 +7,11 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "lcd.h"
|
#include "lcd.h"
|
||||||
|
|
||||||
// Comment out to run in "normal" mode
|
|
||||||
#define CALIBRATION
|
|
||||||
|
|
||||||
#define ADC_VREF 1.1
|
#define ADC_VREF 1.1
|
||||||
#define ADC_RESOLUTION 1023 // (2^ 10 - 1, 10 bits resolution)
|
#define ADC_RESOLUTION 1023 // (2^ 10 - 1, 10 bits resolution)
|
||||||
|
|
||||||
#define DIODE_VALUE_25C 436 // ADC value for diode at 0C
|
#define DIODE_VALUE_25C 440 // ADC value for diode at 0C
|
||||||
#define DIODE_SENSITIVITY -1.85 // ADC value / degree C, tuneable
|
#define DIODE_SENSITIVITY -1.66 // ADC value / degree C, tuneable
|
||||||
|
|
||||||
#define LM35_SENSITIVITY 0.01 // V / degree C, see LM35 datasheet
|
#define LM35_SENSITIVITY 0.01 // V / degree C, see LM35 datasheet
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user