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:
- 0:60727c2b0359
- Child:
- 1:c4041164cc76
File content as of revision 0:60727c2b0359:
#include "mbed.h"
PwmOut pwm(dp18);
AnalogIn ain(dp9);
int main() {
pwm.period_us(50);
float potenciometar=ain;
int i=0;
while(1) {
if(i%120==0)
{
potenciometar=ain;
i=1;
}
pwm=ain;
i++;
}
}