Télécharger Imprimer la page

Velleman VMM501 Mode D'emploi page 8

Publicité

Les langues disponibles
  • FR

Les langues disponibles

  • FRANÇAIS, page 53
5.2
Button
1x micro:bit board
1x micro:bit breadboard adapter
1x breadboard
2x red LED (polarisation: anode (+) = long leg,
cathode (-) = short leg)
2x 100 Ω resistor (brown/black/brown/gold)
1x momentary push button
We use a button to control the LED flash. Press the button to
make the LED flash in turns. Release to switch off the LED.
Place the necessary components on the breadboard as shown.
Have a look at the code below.
1.
Drag and drop the code blocks to form the code as shown.
You can find the
in
pause (ms)
and
Drag the
The two blocks will snap together.
Drag the
equal function
V. 01 – 17/01/2019
digital read pin
Advanced
Pins
in the Code Drawer. You can find the
100 in
Basic
logic equal function
logic equal function
digital read pin
block as shown.
VMM501
P0 and
digital write pin
in the Code Drawer. You can find the
blocks in
Logic
in the Code Drawer.
block and drop it over the
P0 block and drop it over the 0 of the
8
P0
to
0 blocks
forever
and
if then
true
block.
logic
©Velleman nv

Publicité

loading