
#idString HKJ,ThermoAndMore,
#name HKJ ThermoAndMore
#handle TAM
#port comnobaud

; Strings to configure device in different modes
; First parameter must match a #value (4 parameter) and second parameter must match what #askMode returns
; First parameter is also used in shortcut menu
;#cmdMode 

;#askMode enable?

#cmdMode Temperature 1
include T

#cmdMode Temperature+Ambient 2
include TAW

#cmdMode Temperature+Color 3
include TRGBCH

#cmdMode Temperature+LDR 4
include TLX

#cmdMode Temperature+Color+LDR 5
include TLCRGBCH


; Setup menu functions
; The parameters on the first line is: type name page 
; Settings on the following lines are:
; read: SCPI to read value from device, is used to synchronize when opening setup page or setting equal named fields. Not always used
; readformat: Parse read value.
; write: Send the value to device, this field is used in combination with data fields in the details to send updates to device.
; tip: Add this tip to all components for this input field.



#cmdSetup number Temperature_offset
:read: tempoffset?
:write: tempoffset
:tip: This can be used to remove small offset errors
C -100 100

#cmdSetup comboboxhot Temperature_sensor
:write: tempsensor
:read: tempsensor?
:tip: Select the used sensor. LM34/LM35 can be used either with GND or floating reference
LM34_sensor_(-17C_-_148C) LM34
LM34_sensor_(-45C_-_148C) LM34M
LM35_sensor_(1C_-_150C) LM35
LM35_sensor_(-55C_-_150C) LM35M
TMP35_sensor_(10C_-_125C) TMP35
TMP36_sensor_(-40C_-_125C) TMP36
TMP37_sensor_(5C_-_100C) TMP37
DS18xx_sensor DS18
Direct_voltage_(0V_-_5V) V
Direct_voltage_(-0.5V_-_3V) VM


#cmdSetup number Ambient_temperature_offset
:read: AMBIENTTEMPOFFSET?
:write: AMBIENTTEMPOFFSET
:tip: This can be used to remove small offset errors
C -100 100

#cmdSetup slider Display_brightness
:read: BRIGHTNESS?
:write: BRIGHTNESS
:tip: 0=off, 1=Minimal brightness, 16=Maximal brightness
_ 0 16


#cmdSetup buttons Set_color_reference
:tip: Sensor must see white light when this button is pressed.
SET colorref


#cmdSetup buttons Save_config
Save saveConfig



