Skip to content

Commit c32d3bb

Browse files
committed
Mention light sensing
1 parent ffeb625 commit c32d3bb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

boards/MDBT42Q.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,7 @@ enables the bootloader.
108108
* There is a LED (`LED`/`LED1`) between pin `D1` and GND. This is flashes at
109109
boot and also indicates bootloader mode.
110110

111-
The breakout board also contains a green LED on pin `D2`. As of build 1v99 this
112-
isn't mapped to a built-in variable, but a simple `global.LED2=D2` command will add it.
111+
The breakout board also contains a green LED (LED2) on pin `D2` (Espruino 1v99 and earlier require `global.LED2=D2` to use this). Since `D2` is an analog input it is possible to detect ambient light using `analogRead(LED2)` - values range from around 0 (dark) to 0.25 (bright).
113112

114113

115114
Hard Reset

0 commit comments

Comments
 (0)