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 3:89bed7a6d852, committed 2016-02-25
- Comitter:
- mfajaradityo
- Date:
- Thu Feb 25 04:28:14 2016 +0000
- Parent:
- 2:0ec2dce7c5f8
- Commit message:
- Now works in 1000000 BaudRate :)
Changed in this revision
--- a/XL320_MFA/XL320_MFA.cpp Thu Feb 25 04:19:15 2016 +0000 +++ b/XL320_MFA/XL320_MFA.cpp Thu Feb 25 04:28:14 2016 +0000 @@ -1276,7 +1276,7 @@ case 0x02: pc.printf("BaudRate : 115200\n\r"); break; - case 0x04: + case 0x03: pc.printf("BaudRate : 1000000\n\r"); break; default:
--- a/XL320_MFA/XL320_MFA.h Thu Feb 25 04:19:15 2016 +0000 +++ b/XL320_MFA/XL320_MFA.h Thu Feb 25 04:28:14 2016 +0000 @@ -8,7 +8,7 @@ static Serial pc(USBTX,USBRX); ////////// DEBUG /////////// -#define DATA_DEBUG //Command this line to disable some of pc.printf in XL320_MFA.cpp +//#define DATA_DEBUG //Command this line to disable some of pc.printf in XL320_MFA.cpp ////////// SHIFT BYTES /////////// #define SHIFT_TO_LSB(w) (uint8_t((uint16_t(w)) & 0x00ff))
--- a/main.cpp Thu Feb 25 04:19:15 2016 +0000 +++ b/main.cpp Thu Feb 25 04:28:14 2016 +0000 @@ -1,7 +1,7 @@ //#include "mbed.h" #include "XL320_MFA.h" -XL320 servoTest(115200, p9, p10, p8); +XL320 servoTest(1000000, p9, p10, p8); uint8_t value = 100;