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 CANMsg Adafruit_LEDBackpack
Revision 1:6c993d149edc, committed 2019-07-24
- Comitter:
- fconboy
- Date:
- Wed Jul 24 19:24:25 2019 +0000
- Parent:
- 0:db7d127e9819
- Child:
- 2:36e6eccdfc1e
- Commit message:
- Changed pin numbers for the AnalogIn pins
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Wed Jul 24 16:36:53 2019 +0000 +++ b/main.cpp Wed Jul 24 19:24:25 2019 +0000 @@ -2,8 +2,8 @@ #include "CANMsg.h" Ticker ticker; -AnalogIn currentPot(A0); -AnalogIn speedPot(A1); +AnalogIn currentPot(p15); +AnalogIn speedPot(p16); DigitalIn enable(p5); DigitalOut led1(LED1); DigitalOut led2(LED2); @@ -89,7 +89,7 @@ //pc.printf("-------------------------------------\r\n"); driverControls.clear(); driverControls.id = SIGNAL_ID; - // Append message with speed and current potentiometres. + // Append message with speed and current potentiometer s. driverControls << currentPot.read(); driverControls << speedPot.read(); busCurrent.clear();