pdf-icon

UIFlow Guide

UIFlow 1.0 Blockly

Event

Unit

UIFlow 1.0 Project

NCIR

Example

Prints sensor values to the serial monitor.

from m5stack import *
from m5ui import *
from uiflow import *
import hat

setScreenColor(0x111111)

hat_ncir_0 = hat.get(hat.NCIR)

while True:
  print(hat_ncir_0.temperature)
  wait_ms(2)

API

hat_ncir_0.temperature
  • Reads data from the specified infrared temperature sensor module.
On This Page