Week 4 - Sep 25 - Oct 01
Finally, the kit made its way home. And there you have the stunning pictures of the NUCLEO-L476RG kit.
Below is the code for the "BLINK LED" program which is the "Hello World" program for electronics to test the Nucleo MCU board.
Digital Pins D8 & D13 have been chosen as output pins and have been declared differently. I love the way the LD1 changes from red to green when I feed in the program into the MCU board.
#include "mbed.h" PinName digitalPin = D8; int main() { // put your setup code here, to run once: DigitalOut myled(digitalPin); while(1) { // put your main code here, to run repeatedly: myled = 1; // LED is ON DigitalOut(D13, 0); wait(0.5); // 500 ms myled = 0; // LED is OFF DigitalOut(D13, 1); wait(0.5); // 500 ms } }
For "Blink Led program" to begin your coding with Nucleo L476RG please visit this link.
For "Hello IoT program" to begin your coding with Nucleo L476RG with steps to start a project in the Mbed online compiler please visit this link.
Please find below links to my previous blogs on my traffic predictor project for IoT on Wheels design Challenge,
Blog 1 - The Official Announcement
Top Comments