看着mbed程序和arduino程序好像,不知道arduino如下程序函数可以用不,如果可以,程序就更简单了
digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(led, LOW); // turn the LED off by making the voltage LOW
delay(1000);
编译输出hex文件,将程序拖进jlink磁盘里面,开始LD1灭,3S后闪烁开始,红光太明显,时间显示有蓝光