microsoft / devicescript

TypeScript for Tiny IoT Devices (ESP32, RP2040, ...)
https://microsoft.github.io/devicescript/
MIT License
3.25k stars 116 forks source link

SHTC3 regression #466

Closed pelikhan closed 1 year ago

pelikhan commented 1 year ago

Probably related to the i2c rewrite for the oled screens.

When flashing mainqtpyshtc3.ts to a Adafruit QtPy + SHTC3 attached.

DEV> Unhandled exception
DEV> Exception: DriverError
DEV>  message: SHT CRC error
DEV>  at readU16 [as F52_pc61] (node_modules/@devicescript/drivers/src/sht.ts:17:41)
DEV>  at initDriver [as F84_pc14] (node_modules/@devicescript/drivers/src/shtc3.ts:31:9)
DEV>  at init [as F42_pc19] (node_modules/@devicescript/drivers/src/driver.ts:38:13)
DEV>  at startSHTC3 [as F3_pc49] (node_modules/@devicescript/drivers/src/shtc3.ts:70:5)
DEV>  at main [as F0_pc16] (src/mainqtpyshtc3.ts:8:1)
DEV> Unhandled exception
DEV> stop program
webclient: connected (ws9, 2 clients)