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.
arm.h@0:ed8d2fd5fb9d, 2022-11-27 (annotated)
- Committer:
- aale9924
- Date:
- Sun Nov 27 04:35:20 2022 +0000
- Revision:
- 0:ed8d2fd5fb9d
Initial commit;
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| aale9924 | 0:ed8d2fd5fb9d | 1 | #include "mbed.h" |
| aale9924 | 0:ed8d2fd5fb9d | 2 | |
| aale9924 | 0:ed8d2fd5fb9d | 3 | class Arm { |
| aale9924 | 0:ed8d2fd5fb9d | 4 | public: |
| aale9924 | 0:ed8d2fd5fb9d | 5 | //initialize serial ports |
| aale9924 | 0:ed8d2fd5fb9d | 6 | Arm(PinName tx, PinName rx); |
| aale9924 | 0:ed8d2fd5fb9d | 7 | //move 1-6 servos at a time funtions |
| aale9924 | 0:ed8d2fd5fb9d | 8 | void moveServo(int16_t motor, int16_t position, int16_t time); |
| aale9924 | 0:ed8d2fd5fb9d | 9 | private: |
| aale9924 | 0:ed8d2fd5fb9d | 10 | Serial async_port; |
| aale9924 | 0:ed8d2fd5fb9d | 11 | char getID(int16_t motor); |
| aale9924 | 0:ed8d2fd5fb9d | 12 | // char GET_LOW_BYTE(uint8_t b); |
| aale9924 | 0:ed8d2fd5fb9d | 13 | // char GET_HIGH_BYTE(uint8_t b); |
| aale9924 | 0:ed8d2fd5fb9d | 14 | |
| aale9924 | 0:ed8d2fd5fb9d | 15 | }; |