Page 108 - ARM Based Microcontroller Projects Using MBED
P. 108
94 7. USING THE Mbed WITH SIMPLE PROJECTS
GPIO Pin ST Morpho Connector
PC_4 CN10, pin 34
PC_5 CN10, pin 6
PC_6 CN10, pin 4
PC_7 CN10, pin 19
7.7.5 The Construction
The project was built on a breadboard as shown in Fig. 7.27. Jumper wires are used to make
connections between the LEDs and the development board
7.7.6 The PDL
Fig. 7.28 shows the project PDL where the LEDs turn ON in sequence starting from the
LSB bit.
7.7.7 Program Listing
The program listing (program: LED8) is shown in Fig. 7.29. At the beginning of the pro-
gram mbed.h is included in the program. Then the DigitalOut statement is used to configure
FIG. 7.26 Circuit diagram of the project.