Rotation https://makecode.calliope.cc/reference/input/rotation
Find how much the Calliope mini is tilted in different directions.
`); } else { basic.showLeds(` # . . . # . # . # . . . # . . . # . # .
Meintest du essen?
Find how much the Calliope mini is tilted in different directions.
`); } else { basic.showLeds(` # . . . # . # . # . . . # . . . # . # .
For programs to be useful, we need to be able to work with some of the simplest units of data: numbers, strings, structures, boolean values, and the like.
if (encoder.active) { position = encoder.readPosition(); } else { position = null
Unsere Mission ist es, jeder Schülerin und jedem Schüler in Deutschland ab der 3. Klasse einen spielerischen Zugang zur digitalen Welt mit Hilfe des Calliope mini zu ermöglichen.
pir_sensor = pin_A1_RX.read_digital() if pir_sensor == 1: display.show(Image.YES) else
Unsere Mission ist es, jeder Schülerin und jedem Schüler in Deutschland ab der 3. Klasse einen spielerischen Zugang zur digitalen Welt mit Hilfe des Calliope mini zu ermöglichen.
300: display.show(Image.SAD) elif sensorwert < 600: display.show(Image.MEH) else
Unsere Mission ist es, jeder Schülerin und jedem Schüler in Deutschland ab der 3. Klasse einen spielerischen Zugang zur digitalen Welt mit Hilfe des Calliope mini zu ermöglichen.
display.scroll("trocken") elif feuchtigkeit < 600: display.scroll("feucht") else
MakeCode package for Grove Seeed Studio modules
basic.forever(() => { if (grove.wifiOK()) { basic.showIcon(IconNames.Yes) } else
Unsere Mission ist es, jeder Schülerin und jedem Schüler in Deutschland ab der 3. Klasse einen spielerischen Zugang zur digitalen Welt mit Hilfe des Calliope mini zu ermöglichen.
vertical_align_bottom Editor starten Hinweise Achte hier auf die Möglichkeit "elif" für "else
A Boolean has one of two possible values: true or false. Boolean (logical) operators (and, or, not) take Boolean inputs and make another Boolean value. Comparison operators on other types (numbers, strings) create Boolean values.
ButtonEvent.Down), () => { let x = randint(0, 5) if(x < 5) { basic.showString("low"); } else
There are a few different methods to share your MakeCode projects and for places to share your projects to.
This link is not published anywhere else and it is not tied to a specific user (itâ
Functions are the fundamental building block of programs. Here is the simplest way to make a function that adds two numbers:
(firstName, lastName = None): if lastName: return firstName + " " + lastName else