feat(printer): add direct thermal backend and debug controls
This commit is contained in:
@@ -71,6 +71,116 @@ config TQ_PRINTER_STOP_TIMEOUT_MS
|
||||
range 1000 30000
|
||||
default 8000
|
||||
|
||||
config TQ_PRINTER_DEFAULT_BACKEND
|
||||
int "Printer default backend (0=BLE, 1=Direct)"
|
||||
range 0 1
|
||||
default 0
|
||||
|
||||
config TQ_DIRECT_PRINTER_ENABLE
|
||||
bool "Enable direct thermal printer backend"
|
||||
default y
|
||||
|
||||
config TQ_DIRECT_PRINTER_OPERATION_TIMEOUT_MS
|
||||
int "Direct printer max operation timeout (ms)"
|
||||
range 1000 300000
|
||||
default 90000
|
||||
depends on TQ_DIRECT_PRINTER_ENABLE
|
||||
|
||||
config TQ_DIRECT_PRINTER_STROBE_ON_US
|
||||
int "Direct printer strobe on-time (us)"
|
||||
range 100 10000
|
||||
default 1000
|
||||
depends on TQ_DIRECT_PRINTER_ENABLE
|
||||
|
||||
config TQ_DIRECT_PRINTER_STROBE_INTERVAL_US
|
||||
int "Direct printer strobe interval (us)"
|
||||
range 0 10000
|
||||
default 200
|
||||
depends on TQ_DIRECT_PRINTER_ENABLE
|
||||
|
||||
config TQ_DIRECT_PRINTER_MOTOR_STEP_US
|
||||
int "Direct printer motor step delay (us)"
|
||||
range 100 20000
|
||||
default 2000
|
||||
depends on TQ_DIRECT_PRINTER_ENABLE
|
||||
|
||||
config TQ_DIRECT_PRINTER_MOTOR_REVERSE
|
||||
bool "Direct printer motor direction reversed"
|
||||
default n
|
||||
depends on TQ_DIRECT_PRINTER_ENABLE
|
||||
|
||||
config TQ_DIRECT_PRINTER_STEPS_PER_LINE
|
||||
int "Direct printer motor steps per printed line"
|
||||
range 1 8
|
||||
default 2
|
||||
depends on TQ_DIRECT_PRINTER_ENABLE
|
||||
|
||||
config TQ_DIRECT_PRINTER_GAP_STEPS
|
||||
int "Direct printer gap move steps"
|
||||
range 1 2000
|
||||
default 96
|
||||
depends on TQ_DIRECT_PRINTER_ENABLE
|
||||
|
||||
config TQ_DIRECT_PRINTER_TEMP_MIN_C
|
||||
int "Direct printer allowed minimum temperature (C)"
|
||||
range 0 120
|
||||
default 15
|
||||
depends on TQ_DIRECT_PRINTER_ENABLE
|
||||
|
||||
config TQ_DIRECT_PRINTER_TEMP_MAX_C
|
||||
int "Direct printer allowed maximum temperature (C)"
|
||||
range 1 150
|
||||
default 55
|
||||
depends on TQ_DIRECT_PRINTER_ENABLE
|
||||
|
||||
config TQ_DIRECT_PRINTER_BATTERY_MIN_PERCENT
|
||||
int "Direct printer minimum battery percent"
|
||||
range 0 100
|
||||
default 5
|
||||
depends on TQ_DIRECT_PRINTER_ENABLE
|
||||
|
||||
config TQ_DIRECT_PRINTER_PAPER_PRESENT_LEVEL
|
||||
int "Direct printer paper-present GPIO level (0/1)"
|
||||
range 0 1
|
||||
default 0
|
||||
depends on TQ_DIRECT_PRINTER_ENABLE
|
||||
|
||||
config TQ_DIRECT_PRINTER_BATTERY_EMPTY_MV
|
||||
int "Direct printer battery empty voltage (mV)"
|
||||
range 2500 5000
|
||||
default 3300
|
||||
depends on TQ_DIRECT_PRINTER_ENABLE
|
||||
|
||||
config TQ_DIRECT_PRINTER_BATTERY_FULL_MV
|
||||
int "Direct printer battery full voltage (mV)"
|
||||
range 2600 6000
|
||||
default 4200
|
||||
depends on TQ_DIRECT_PRINTER_ENABLE
|
||||
|
||||
config TQ_DIRECT_PRINTER_BATTERY_DIVIDER_RATIO_X1000
|
||||
int "Direct printer battery divider ratio x1000"
|
||||
range 1000 10000
|
||||
default 2000
|
||||
depends on TQ_DIRECT_PRINTER_ENABLE
|
||||
|
||||
config TQ_DIRECT_PRINTER_NTC_PULLUP_OHMS
|
||||
int "Direct printer NTC pull-up resistor (ohms)"
|
||||
range 1000 200000
|
||||
default 10000
|
||||
depends on TQ_DIRECT_PRINTER_ENABLE
|
||||
|
||||
config TQ_DIRECT_PRINTER_NTC_R25_OHMS
|
||||
int "Direct printer NTC R25 resistance (ohms)"
|
||||
range 1000 200000
|
||||
default 10000
|
||||
depends on TQ_DIRECT_PRINTER_ENABLE
|
||||
|
||||
config TQ_DIRECT_PRINTER_NTC_BETA
|
||||
int "Direct printer NTC beta constant"
|
||||
range 1000 10000
|
||||
default 3950
|
||||
depends on TQ_DIRECT_PRINTER_ENABLE
|
||||
|
||||
config TQ_API_KEY
|
||||
string "REST API Key (optional, empty means disabled)"
|
||||
default ""
|
||||
|
||||
Reference in New Issue
Block a user