Javier Nuñez
/
Contador
Decimal, ascii, hexadecimal
main.cpp
- Committer:
- javierdavid2006
- Date:
- 2020-02-01
- Revision:
- 0:7e938a43da08
File content as of revision 0:7e938a43da08:
#include "mbed.h" Serial device(PA_2,PA_3); int i = 1; int main() { device.baud(115200); i= 1; device.printf("Envio en Decimal del 1 al 256 %d \r\n", i);//Envio en Digito while(i <= 250) { device.printf("%d\r", i);//Envio en Digito //wait(0.2); i++; } i = 1; device.printf("Envio en ascii del 1 al 256 %c \r\n", i); while(i <=250) { device.printf(" %c\r", i);//Envio en Digito //wait(0.2); i++; } i = 1; device.printf("Envio en hexadecimal del 1 al 256 %x \r\n", i); while(i <=250) { device.printf("%x\r", i);//Envio en Digito //wait(0.2); i++; } }