2.2 Potentiometers experiment Original code
Dependencies:
mbed
main.cpp
- Committer:
- vmg
- Date:
- 2020-07-26
- Revision:
- 0:79b918af3cd2
File content as of revision 0:79b918af3cd2:
#include "mbed.h"
PwmOut led1(LED1); AnalogIn pot1(p19); int main() {
while(1) {
led1 = pot1;
wait(0.01);
}
}