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.
Dependencies: mbed
Revision 0:04ab8946d33a, committed 2015-11-22
- Comitter:
- NorNick
- Date:
- Sun Nov 22 17:29:57 2015 +0000
- Commit message:
- EiEi
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
diff -r 000000000000 -r 04ab8946d33a main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Sun Nov 22 17:29:57 2015 +0000 @@ -0,0 +1,31 @@ +#include "mbed.h" + +//------------------------------------ +// Hyperterminal configuration +// 9600 bauds, 8-bit data, no parity +//------------------------------------ + +Serial pc(SERIAL_TX, SERIAL_RX); + +//Serial device(D8, D2); + +AnalogIn analog_value(A1); + +DigitalIn Sw(D3); + +BusOut ledSet1(D11, D10, D9, D4); //อย่าลืมกลับเลขด้วยเพราะมันต้องใช้ 7-Segment +BusOut ledSet2(D15, D14, D13, D12); //อย่าลืมกลับเลขด้วยเพราะมันต้องใช้ 7-Se + +int main(){ + pc.baud(9600); + uint8_t value[15]={'a','9','8','0','0','0','5','0','4','3','7','5','z'};//57340500089 ใสรหัส นศ ช่องนี้ + uint8_t ch[12];//ใส่ code 11 bits here + int i=0; + pc.printf("Hello Nucleo !\n"); + + for(i=0;i<=13;i++) + { + pc.printf(" %c",value[i]); + } + pc.printf("\n"); +} \ No newline at end of file
diff -r 000000000000 -r 04ab8946d33a mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Sun Nov 22 17:29:57 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/9296ab0bfc11 \ No newline at end of file