DualKmeter Module
Supported Products:
Micropython Example:
import os, sys, io
import M5
from M5 import *
from module import DualKmeterModule
M5.begin()
km_0 = DualKmeterModule(address=0x11)
while True:
if km_0.is_ready():
print(km_0.get_thermocouple_temperature(scale=km_0.CELSIUS))
UIFLOW2 Example:
class DualKmeterModule
Constructors
- class DualKmeterModule(address=0x11)
Create a DualKmeterModule object.
address
accepts values from 0x11 to 0x20.UIFLOW2:
Methods
- DualKmeterModule.get_thermocouple_temperature(scale=0) float
Get the temperature of the thermocouple in the DualKmeter Module. Returns a float value.
scale
accepts values ofDualKmeter.CELSIUS
orDualKmeter.FAHRENHEIT
.UIFLOW2:
- DualKmeterModule.get_kmeter_temperature(scale=0) float
Get the internal temperature of the DualKmeter Module. Returns a float value.
scale
accepts values ofDualKmeter.CELSIUS
orDualKmeter.FAHRENHEIT
.UIFLOW2:
- DualKmeterModule.get_kmeter_channel() int
Get the current thermocouple channel being used in the DualKmeter Module.
0
represents channel 1, and1
represents channel 2.UIFLOW2:
- DualKmeterModule.set_kmeter_channel(channel) None
Set the thermocouple channel to be used in the DualKmeter Module.
0
represents channel 1, and1
represents channel 2.UIFLOW2:
- DualKmeterModule.get_thermocouple_temperature_string(scale=0) str
Get the temperature of the thermocouple in the DualKmeter Module as a string with a sign.
scale
accepts values ofDualKmeter.CELSIUS
orDualKmeter.FAHRENHEIT
.UIFLOW2: