User Jim Kizos has written the basic blinky for EzSBC2 in the mbed environment.
main.cpp is like thus:
main.cpp is like thus:
#include "mbed.h"
// EzSBC2 has 2 LEDs P1_15 and P1_16
DigitalOut Led1(P1_15);
DigitalOut Led2(P1_16);
int main()
{
while(1)
{
Led2 = !Led2;
wait_ms(250);
Led1 = !Led1;
wait_ms(250);
}
}
No comments:
Post a Comment