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.
Dependencies: mbed lib_workshop_2019
console_output.cpp
00001 #include "mbed.h" 00002 #include "console_output.h" 00003 00004 void ft_print_test_menu(Serial &Pc) 00005 { 00006 Pc.printf ("\n\n\n\n\rTesting program \n\n\r Which test do you want to perform ?\n\n"); 00007 Pc.printf ("\r%d- Ultrasonic sensors (all of them)\n", ULTRASONIC); 00008 Pc.printf ("\r%d- Compass and I2C\n", COMPASS); 00009 Pc.printf ("\r%d- CNY70 (all of them) \n",CNY70); 00010 Pc.printf ("\r%d- VBAT \t! Wrong voltage !\n",VBAT); 00011 Pc.printf ("\r%d- Left motor\n", LEFT_MOTOR); 00012 Pc.printf ("\r%d- MRight motor \n", RIGHT_MOTOR); 00013 Pc.printf ("\r%d- PIXY (CMUCAM5)\n", PIXY); 00014 } 00015 00016 e_test ft_get_user_choice(Serial &pc) 00017 { 00018 e_test user_choice = (e_test) (pc.getc() -'0'); 00019 return user_choice; 00020 } 00021 00022 int ft_get_user_int(Serial &pc) 00023 { 00024 int user_int = (e_test) (pc.getc() -'0'); 00025 if (user_int > 9 || user_int < 0) 00026 return -1; 00027 else 00028 return user_int; 00029 } 00030 00031 void ft_print_to_be_imp(Serial &pc) 00032 { 00033 printf("\rTo be implemented"); 00034 }
Generated on Sat Jul 16 2022 06:19:30 by
