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.
Diff: main.cpp
- Revision:
- 12:3abb17739c2e
- Parent:
- 11:475b412bbc3c
- Child:
- 13:29a994566dc5
--- a/main.cpp Tue Nov 19 15:15:50 2019 +0000 +++ b/main.cpp Tue Nov 19 15:21:36 2019 +0000 @@ -1,28 +1,5 @@ /* - -** ELEC143 Coursework Sample Code ** - -Author: Dr Nicholas Outram -Date: 09-10-2015 -Version: 1.0 - -This sample code demonstrates the following: - -- How to control the motor speed and direction -- How to measure motor speed using software polling (assuming a forward direction) - -Notes: - -1. This code is very monolithic. I have made no attempt to factor this into meaningful and -reuseable functions. I will be looking to see you factor your code into different functions, -and maybe even into seperate C (or CPP) files. - -2. This code is only lightly commented. The commenting is sufficient to -explain the purpose of each step in the code. Do not assume this is always sufficient. - -You may adapt this code for your own purposes. However, you may be questioned about any of the -code you use. Your answers will affect your grade to some extent. - +Our version */ #include "mbed.h"