mirror of
https://github.com/clockworkpi/DevTerm.git
synced 2026-03-21 19:32:37 +01:00
minor mod for trackball
add read_adc to read temperature for thermal_printer
This commit is contained in:
@@ -112,14 +112,15 @@
|
||||
#define BCoefficent 3950
|
||||
#define RthNominal 30000
|
||||
#define TempNominal 25
|
||||
#define ADCResolution 4096
|
||||
#define ADCResolution 1024
|
||||
#define SeriesResistor 30000
|
||||
|
||||
#define NumSamples 10
|
||||
|
||||
#define KELVIN 1
|
||||
#define CELSIUS 0
|
||||
|
||||
#define ADC_FILE "/sys/class/i2c-dev/i2c-1/device/1-0054/iio:device1/in_voltage_raw"
|
||||
|
||||
#define HEAT_TIME 300 // heat time,better not greater than 1000,300-1000 0-f
|
||||
|
||||
#define int16 uint16_t
|
||||
|
||||
Reference in New Issue
Block a user