You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: boards/MDBT42Q.md
+1-2Lines changed: 1 addition & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -108,8 +108,7 @@ enables the bootloader.
108
108
* There is a LED (`LED`/`LED1`) between pin `D1` and GND. This is flashes at
109
109
boot and also indicates bootloader mode.
110
110
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).
0 commit comments