Universal Translator
Dependencies: EthernetNetIf TextLCD mbed PS2 HTTPClient
UnivTrans.h@1:5ae213418d04, 2011-02-28 (annotated)
- Committer:
- benglish6
- Date:
- Mon Feb 28 17:37:46 2011 +0000
- Revision:
- 1:5ae213418d04
- Parent:
- 0:c69af1faeb95
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
benglish6 | 0:c69af1faeb95 | 1 | #include "TextLCD.h" |
benglish6 | 0:c69af1faeb95 | 2 | #include "EthernetNetIf.h" |
benglish6 | 0:c69af1faeb95 | 3 | #include "HTTPClient.h" |
benglish6 | 0:c69af1faeb95 | 4 | #include "PS2Keyboard.h" |
benglish6 | 0:c69af1faeb95 | 5 | #include "SDFileSystem.h" |
benglish6 | 0:c69af1faeb95 | 6 | #include "VS1002.h" |
benglish6 | 0:c69af1faeb95 | 7 | #include <string> |
benglish6 | 0:c69af1faeb95 | 8 | |
benglish6 | 0:c69af1faeb95 | 9 | enum codeenum { |
benglish6 | 0:c69af1faeb95 | 10 | af,it,sq,ja,ar,ko,be,lv,bg,lt,ca,mk,zh,ms,zhCN,mt,zhTW,no,hr,fa,cs,pl,da,pt,nl,ptPT,en,ro,et,ru,tl,sr,fi,sk, |
benglish6 | 0:c69af1faeb95 | 11 | fr,sl,gl,es,de,sw,el,sv,ht,tgl,iw,th,hi,tr,hu,uk,is,vi,id,cy,ga,yi,nolang |
benglish6 | 0:c69af1faeb95 | 12 | }; |
benglish6 | 0:c69af1faeb95 | 13 | |
benglish6 | 0:c69af1faeb95 | 14 | struct tcode { |
benglish6 | 0:c69af1faeb95 | 15 | int src; |
benglish6 | 0:c69af1faeb95 | 16 | int dest; |
benglish6 | 0:c69af1faeb95 | 17 | }; |
benglish6 | 0:c69af1faeb95 | 18 | |
benglish6 | 0:c69af1faeb95 | 19 | extern TextLCD lcd; |
benglish6 | 0:c69af1faeb95 | 20 | extern DigitalOut led1; |
benglish6 | 0:c69af1faeb95 | 21 | extern DigitalOut led2; |
benglish6 | 0:c69af1faeb95 | 22 | extern DigitalOut led3; |
benglish6 | 0:c69af1faeb95 | 23 | extern DigitalOut led4; |
benglish6 | 0:c69af1faeb95 | 24 | |
benglish6 | 0:c69af1faeb95 | 25 | extern EthernetNetIf eth; // Ethernet Control |
benglish6 | 0:c69af1faeb95 | 26 | extern HTTPClient http; // HTTP Client Stack Library |
benglish6 | 0:c69af1faeb95 | 27 | |
benglish6 | 0:c69af1faeb95 | 28 | extern VS1002 mp3; |
benglish6 | 0:c69af1faeb95 | 29 | |
benglish6 | 0:c69af1faeb95 | 30 | string getLang(int); |
benglish6 | 0:c69af1faeb95 | 31 | string getLangCode(int); |
benglish6 | 0:c69af1faeb95 | 32 | void encodeURL(string&, const char*); |
benglish6 | 0:c69af1faeb95 | 33 | void blink(void); |
benglish6 | 0:c69af1faeb95 | 34 | void checkKeys(PS2Keyboard&,char*); |