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
00001 #include "mbed.h" 00002 Serial rs232(USBTX,USBRX); 00003 PwmOut m(PTA5); 00004 AnalogIn AN0(PTB0); 00005 float valor_adc; 00006 void motor(){ 00007 00008 } 00009 int main() { 00010 00011 00012 while(true){ 00013 valor_adc=AN0; 00014 valor_adc=valor_adc*100; 00015 00016 00017 rs232.printf(" %f\n\r",valor_adc); 00018 wait(0.1); 00019 00020 m.period_us(100000); 00021 m.pulsewidth_us(2000); 00022 wait(0.1); 00023 00024 }}
Generated on Wed Jul 27 2022 07:28:13 by
1.7.2