basic.showNumber() - shows a number to LED display
basic.showString() - shows a string to LED display
basic.showIcon() - show a Icon to LED display
Custom LED Display
basic.showLeds(`
. . . . .
. # # # .
. # # # .
. # # # .
. . . . .
`)
input.onButtonpressed(Button.A, function(){
})
input.onGesture(Gesture.Shake, function (){
})
var variable_name
variable_name = "Ted"
var list =[];
var list =[2,3,5,6,7]
var list =['ted','fred']
function showLights(){
basic.showLeds(`
. . . . .
. # # # .
. # # # .
. # # # .
. . . . .
`)
}
if (condition true) {
//code
}
if (condition true) {
//code
}
else if(condition true){
//code
}else{
//code
}
while (condition true) {
}
for (let i = 0; i < 5; i++) {
}