
Using low cost STM32F407VET6 boards with mbed.
Embed:
(wiki syntax)
Show/hide line numbers
main.cpp
00001 // Blinky demo for the STM32F407VET6 boards. 00002 // 00003 // Use "Select Arch Max" as target platform for the online compiler. 00004 00005 #include "mbed.h" 00006 00007 DigitalOut led1(PA_6); 00008 00009 int main() 00010 { 00011 printf("Starting ...\r\n"); 00012 00013 while(true) { 00014 led1 = 0; // on 00015 ThisThread::sleep_for(50ms); 00016 led1 = 1; // off 00017 ThisThread::sleep_for(1000ms); 00018 printf("Blink\r\n"); 00019 } 00020 }
Generated on Tue Jul 12 2022 19:39:07 by
