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.
sense.cpp@0:454412fa8fee, 2018-04-24 (annotated)
- Committer:
- justedwa
- Date:
- Tue Apr 24 21:17:05 2018 +0000
- Revision:
- 0:454412fa8fee
SP2018 ECE595 Justin Edwards Vincent Crabtree Jacob Shebesh;
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| justedwa | 0:454412fa8fee | 1 | #include "sense.h" |
| justedwa | 0:454412fa8fee | 2 | |
| justedwa | 0:454412fa8fee | 3 | void SetGear(info* currInfo,DigitalIn Nswitch){ |
| justedwa | 0:454412fa8fee | 4 | if(Nswitch == 1) |
| justedwa | 0:454412fa8fee | 5 | currInfo->gear = 0; |
| justedwa | 0:454412fa8fee | 6 | else if(Nswitch == 0) |
| justedwa | 0:454412fa8fee | 7 | currInfo->gear = 1; |
| justedwa | 0:454412fa8fee | 8 | } |