minor mod for trackball

add read_adc to read temperature for thermal_printer
This commit is contained in:
cuu
2021-05-27 13:28:13 +08:00
parent c626e1f797
commit 46944be3ce
5 changed files with 30 additions and 7 deletions

View File

@@ -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