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.
main.cpp
- Committer:
- tim008
- Date:
- 2014-03-31
- Revision:
- 1:c4041164cc76
- Parent:
- 0:60727c2b0359
File content as of revision 1:c4041164cc76:
#include "mbed.h"
PwmOut pwm_out(dp18);
AnalogIn voltmeter(dp9);
int main() {
// initialize
pwm_out = 0.;
pwm_out.period_us(500);
while(true) {
pwm_out = voltmeter;
}
return 0; // unreachable
}