kakeru hasebe / Mbed 2 deprecated all_led_dot

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 
00003 
00004 BusOut A_led(PA_7,PA_1,PA_11,PA_4,PB_1,PA_8,PB_1,PF_1);
00005 BusOut K_led(PB_3,PA_0,PA_5,PA_9,PA_6,PA_10,PA_12,PA_3);
00006 
00007 int main(){
00008     while(1){
00009         for(int i = 0;i < 8;i++){
00010             K_led = 0b10000000;
00011             A_led = 0b11111111;
00012             K_led = K_led >> 1;
00013                 }
00014         }
00015 }
00016