import display_tlc1549_value import time while True: display_tlc1549_value.readValue() time.sleep(0.2)
def getValue(): response.content_type = "application/json" valueJson = { "value": tlc1549.readValue() } return dumps(valueJson)