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.
Test.cpp@0:41beaa66228b, 2020-02-04 (annotated)
- Committer:
- thomasvb02
- Date:
- Tue Feb 04 10:05:02 2020 +0000
- Revision:
- 0:41beaa66228b
- Child:
- 1:fe268cc6317a
HOI;
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| thomasvb02 | 0:41beaa66228b | 1 | #include "mbed.h" |
| thomasvb02 | 0:41beaa66228b | 2 | |
| thomasvb02 | 0:41beaa66228b | 3 | PwmOut Motor1 (A5); |
| thomasvb02 | 0:41beaa66228b | 4 | PwmOut Motor2 (A3); |
| thomasvb02 | 0:41beaa66228b | 5 | InteruptIn Sensor1 (A0,PullDown); |
| thomasvb02 | 0:41beaa66228b | 6 | InteruptIn Sensor2 (A1,PullDown); |
| thomasvb02 | 0:41beaa66228b | 7 | InteruptIn Sensor3 (A2,PullDown); |
| thomasvb02 | 0:41beaa66228b | 8 | InteruptIn Sensor4 (A6,PullDown); |
| thomasvb02 | 0:41beaa66228b | 9 | AnalogOut OVER (A4); |
| thomasvb02 | 0:41beaa66228b | 10 | DigitalOut LED (D8); |
| thomasvb02 | 0:41beaa66228b | 11 | DigitalOut Motor1Voor (D12); |
| thomasvb02 | 0:41beaa66228b | 12 | DigitalOut Motor1Achter (D11); |
| thomasvb02 | 0:41beaa66228b | 13 | DigitalOut Motor2Voor (D10); |
| thomasvb02 | 0:41beaa66228b | 14 | DigitalOut Motor2Achter (D9); |
| thomasvb02 | 0:41beaa66228b | 15 | void Kijk() |
| thomasvb02 | 0:41beaa66228b | 16 | { |
| thomasvb02 | 0:41beaa66228b | 17 | if (Sensor1 = 0.5) { |
| thomasvb02 | 0:41beaa66228b | 18 | Motor |
| thomasvb02 | 0:41beaa66228b | 19 | int main() |
| thomasvb02 | 0:41beaa66228b | 20 | |
| thomasvb02 | 0:41beaa66228b | 21 | while(1) { |