Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
main.cpp
00001 #include "mbed.h" 00002 00003 00004 Serial pc(USBTX,USBRX); // tx, rx 00005 Serial TFT(PA_13,PA_14); // tx, rx 00006 void send_command(char* str); 00007 int main() { 00008 char data=0; 00009 char buffer[22]={"$l,1,10,10,100,100,#"}; 00010 int process_it; 00011 int i; 00012 00013 pc.baud(115200); 00014 TFT.baud(115200); 00015 pc.printf("Hello World!\r\n"); 00016 for(i = 0; i<=sizeof(buffer) ;i++) 00017 { 00018 buffer[i] += data; 00019 printf("%x\r\n",buffer[i]); 00020 } 00021 TFT.printf(buffer); 00022 00023 }
Generated on Tue Jul 12 2022 14:15:16 by
1.7.2
JUTF43