sei ka / Mbed 2 deprecated test6

Dependencies:   TextLCD mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 #include "TextLCD.h"
00003 
00004 /*DigitalIn p(PTB2);
00005 BusOut led1(PTE5,PTE4,PTE3,PTE2,PTB11,PTB10,PTB9,PTB8);
00006 BusOut mo(PTA1,PTA2);
00007 
00008 int main() {
00009     int a = 0;
00010     while(1) {
00011         if(p == 0){
00012         a += 1;
00013         else if(a%2=0){
00014         led1 = 0x01;
00015         mo = 0x01;}
00016         else if(p == 1){
00017         led1 = 0x80;
00018         mo = 0x02;}
00019     }
00020 }*/
00021 TextLCD lcd(PTC12,PTC13,PTC16,PTC17,PTA16,PTA17);
00022 
00023 int main() {
00024     lcd.printf("kasei\n");
00025 }