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:
- ellieoin
- Date:
- 2020-08-15
- Revision:
- 0:f077ff1db7a0
File content as of revision 0:f077ff1db7a0:
#include "mbed.h"
AnalogIn pot1(p19);
AnalogIn pot2(p20);
PwmOut red_led(p23);
PwmOut red_blue(p25);
int main()
{
while (1) {
red_led.write(pot1.read());
printf("red: %f ",pot1.read());
red_blue.write(pot2.read());
printf("blue: %f\n",pot2.read());
wait(0.01);
}
}