А в чем проблема? там биндинги для питона есть.
import streams
from nxp.hexiwear import hexiwear
import threading
import zLogo
hexi.draw_image(zLogo.zz, 38, 10, 20, 20)
hexi.draw_text("Start!", 0, 60, 96, 20, align=3, color=0xFFFF, background=0x0000, encode=False)
while True:
try:
bl, chg = hexi.get_battery_level(chg_state=True)
print("Battery Level:", bl, "% - Charging:", chg)
al = hexi.get_ambient_light()
print("Ambient Light:", al)
acc = hexi.get_accelerometer_data()
print("Accelerometer Data [xyz]", acc, "m/s^2")
magn = hexi.get_magnetometer_data()
print("Magnetometer Data [xyz]", magn, "uT")
magn = hexi.get_gyroscope_data()
print("Gyroscope Data [xyz]", magn, "dps")
temp = hexi.get_temperature()
print("Temperature", temp, "*C")
humid = hexi.get_humidity()
print("Humidity", humid, "RH%")
press = hexi.get_pressure()
print("Pressure", press, "Pa")
hr = hexi.get_heart_rate()
print("Heart Rate", hr, "bpm")
print("------------------------------------------------------------------------------")
sleep(3000)
except Exception as e:
print(e)
sleep(300)
все просто и понятно...