Ciaran Doyle
/
analogo
Illustration
main.cpp
- Committer:
- qaz
- Date:
- 2021-04-09
- Revision:
- 0:c8b99e4996d4
File content as of revision 0:c8b99e4996d4:
#include "mbed.h" // This doesn't seem to be doing a whole lot. Do note that the range // is 0 - 1, just like AnalogIn objects. AnalogOut ao(PTE30); int main() { while(1) { ao = 1; wait(1); ao = 0.5; wait(1); ao = 0; wait(1); } }