Kmeter ISO Unit
Supported Products:
Micropython Example:
import os, sys, io
import M5
from M5 import *
from hardware import *
from unit import KMeterISOUnit
import time
M5.begin()
i2c0 = I2C(0, scl=Pin(1), sda=Pin(2), freq=100000)
kmeter_iso_0 = KMeterISOUnit(i2c0, 0x66)
while True:
if kmeteriso_0.is_ready():
print(kmeteriso_0.get_thermocouple_temperature(0))
print(kmeteriso_0.get_internal_temperature(0))
time.sleep_ms(250)
UIFLOW2 Example:
class KmeterISOUnit
Constructors
Methods
- KmeterISOUnit.get_thermocouple_temperature(scale=0) float
Get the temperature of the thermocouple in the KmeterISO Unit. Returns a float value.
scale
accepts values ofKmeterISO.CELSIUS
orKmeterISO.FAHRENHEIT
.UIFLOW2:
- KmeterISOUnit.get_internal_temperature(scale=0) float
Get the internal temperature of the KmeterISO Unit. Returns a float value.
scale
accepts values ofKmeterISO.CELSIUS
orKmeterISO.FAHRENHEIT
.UIFLOW2:
- KmeterISOUnit.get_thermocouple_temperature_string(scale=0) str
Get the temperature of the thermocouple in the KmeterISO Unit as a string with a sign.
scale
accepts values ofKmeterISO.CELSIUS
orKmeterISO.FAHRENHEIT
.UIFLOW2:
- KmeterISOUnit.get_internal_temperature_string(scale=0) str
Get the internal temperature of the KmeterISO Unit as a string with a sign.
scale
accepts values ofKmeterISO.CELSIUS
orKmeterISO.FAHRENHEIT
.UIFLOW2: