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 SerialMultiByte
Revision 1:4975fece403d, committed 2020-10-14
- Comitter:
- LVRhase01
- Date:
- Wed Oct 14 11:32:49 2020 +0000
- Parent:
- 0:d4bfc5b1a113
- Child:
- 2:17b17437ad9e
- Child:
- 3:b2298d306097
- Commit message:
- can use dualchock3+arduinonano+bluetoothmodules
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Wed Oct 14 11:05:15 2020 +0000
+++ b/main.cpp Wed Oct 14 11:32:49 2020 +0000
@@ -7,12 +7,12 @@
int main()
{
arduino.setHeaders(127,127);
- arduino.startReceive(4);//
- uint8_t button[5];
+ arduino.startReceive(8);//
+ uint8_t deta[9];
while(true) {
- arduino.getData(button);
- for (uint8_t i = 0; i < 4; i++) {
- pc.printf("%d",button[i]);
+ arduino.getData(deta);
+ for (uint8_t i = 0; i < 8; i++) {
+ pc.printf("%d",deta[i]);
pc.printf("\t");
}
pc.printf("\n");