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