Descargar Imprimir esta página

Velleman VMM501 Manual Del Usuario página 9

Ocultar thumbs Ver también para VMM501:

Publicidad

Idiomas disponibles
  • MX

Idiomas disponibles

  • MEXICANO, página 79
2.
Set P2 to be a pull-up.
3.
Set the
4.
Set the
Set the
5.
Set the
6.
Set the
Set the
7.
Set the
8.
When complete, we compile the programme and generate a hex. file. Click
on the download button and save the hex. file to the Downloads folder 
C:\downloads. This hex. file is ready to upload to the micro:bit.
Plug the micro:bit into a USB port. The, drag and drop the hex. file onto the
micro:bit removable device to upload the programme.
Press the button and you will see the LED flash alternatively. Now, how to light the red LED with the button
pressed and light the green LED with the button released?
5.3
Trimpot
1x micro:bit board
1x micro:bit breadboard adapter
1x breadboard
1x 10 kΩ trimmer
We are going to read the output voltage of the trimpot and
display it on the micro:bit screen with a bar graph.
Place the necessary components on the breadboard as shown.
V. 01 – 17/01/2019
VMM501
digital read pin
to P2.
digital write pin
P0
to
digital write pin
P1
to
pause
to 500 ms.
digital write pin
P0
to
digital write pin
P1
to
pause
to 500 ms.
0 (active low (0 V)).
1 (active high (5 V)).
1 (active high (5 V)).
0(active low (0 V)).
9
©Velleman nv

Publicidad

loading