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: SDFileSystem mbed
Fork of PES4_Programme by
Diff: source/functions.cpp
- Revision:
- 45:4359c9efc134
- Parent:
- 38:5bbf548e6872
- Child:
- 46:cdc24a24e4e3
--- a/source/functions.cpp Thu Mar 29 11:50:25 2018 +0000 +++ b/source/functions.cpp Thu Mar 29 12:29:50 2018 +0000 @@ -35,6 +35,17 @@ void setSpeed(char container, char direction) { + switch(direction) { + case 0: // Stillstand + setPWM(container, 50); + break; + case 1: // Rückwärts + setPWM(container, 0); + break; + case 1: // Vorwärts + setPWM(container, 100); + break; + } }