Need help for the Micro:Bit Advent Calendar Day 12 (Create a Light-sensitive Alarm with micro:bit)? Just post on this thread and our highly trained team of Micro:Bit ninjas will be able to help you in no time!
Note for others: I was getting readings for lightVal of 590 when the light sensor was covered by my finger, to 150 in normal room lighting. So I had to reduce the lightVal threshold from 600 to something smaller for my particular sensor.
This worked well thanks guys
It’s worth noting that P5 is Button A, so if you’re in room light enough to trigger the digital output of the LDR board, you won’t be able to increase the tempo in the sketch which uses Button A to increase the tempo