fb5bb396e1
* more migration to common docs * refactoring js * removed duplicate docs * migrating more docs * more refactoring * migrated browsers page * updated summary
328 B
328 B
@extends
#examples
Example: adjusting screen brightness
If the light level is < 100
, this code sets the brightness to 255
when the button A is pressed:
input.onButtonPressed(Button.A, () => {
if(input.lightLevel()<100){
led.setBrightness(255);
}
})