The onboard LED is tied to the GPIO 25. Here how to control it.
+
Lets read some voltage from the ADC1 (attached to GPIO 27).
+
+
The value is read on the ADC via the common {{fname|read_u16()}} method.
+
+
That method returns a 16 bits value, so a number between 0 and 65535.
+
+
{{ambox|text=Even if the {{fname|read_u16()}} returns a 16 bits values, the effective ADC resolution is still 12 bits. The MicroPython internal will just upscale the ADC value from 0..4095 to returned value 0..65535 by applying a multiplier.}}