UNIHIKER K10 readALS() bug?

userHead to.dae 2025-08-30 12:01:50 14 Views0 Replies

when using k10.readALS() and completely shutting off any light from the light sensor the board constantly reboots with a flashing screen. letting light on the sensor the board acts normal again. 

getting this error in arduino ide:

Guru Meditation Error: Core 1 panic'ed (IntegerDivideByZero). Exception was unhandled. Core 1 register dump: PC : 0x4200274f PS : 0x00060830 A0 : 0x82001e15 A1 : 0x3fcebbc0 A2 : 0x00000000 A3 : 0x80000001 A4 : 0x8037e469 A5 : 0x3fcf4cf0 A6 : 0x00000000 A7 : 0x00000000 A8 : 0x8200272d A9 : 0x3fcebba0 A10 : 0x00000000 A11 : 0x00000004 A12 : 0x00000004 A13 : 0x3fcebbcc A14 : 0x00000004 A15 : 0x3fcebbcf SAR : 0x0000001e EXCCAUSE: 0x00000006 EXCVADDR: 0x00000000 LBEG : 0x40056f5c LEND : 0x40056f72 LCOUNT : 0xffffffff Backtrace: 0x4200274c:0x3fcebbc0 0x42001e12:0x3fcebbf0 0x42009720:0x3fcebc50 ELF file SHA256: b35b955d783895f4 E (8005) esp_core_dump_flash: Not enough space to save core dump! E (8011) esp_core_dump_elf: Failed to prepare core dump storage (257)! E (8017) esp_core_dump_common: Core dump write binary failed with error=257 Rebooting... ESP-ROM:esp32s3-20210327 Build:Mar 27 2021 rst:0xc (RTC_SW_CPU_RST),boot:0x8 (SPI_FAST_FLASH_BOOT)