Liam G / Mbed 2 deprecated MKL05CLK

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 #include "head.h"
00003 
00004 Serial pc(USBTX, USBRX); // tx, rx for debug terminal
00005 
00006 DigitalOut myled(LED1);
00007 
00008 int main() {
00009 
00010         myled = 1;
00011         wait(0.2);
00012         myled = 0;
00013         wait(0.2);
00014 
00015     unsigned int ID=0;
00016     
00017     ID=SIM_SDID;
00018     pc.printf("Kinetis ID = %x \n",ID);
00019     
00020     
00021     
00022 }