Don't ad-block us - support your favorite websites. We have safe, unobstrusive, robotics related ads that you actually want to see - see here for more.
0 Members and 1 Guest are viewing this topic.
My question is: Can I send strings or integers from the computer and program the microcontroller to recieve them and use them to control PWM outputs???
#include <iostream.h>#include <conio.h>int main(){char inn;inn=getch();while (inn!='p'){ switch (inn){ case 'w': while (inn=='w'){ cout << "FWD\n"; inn=getch();} break; case 's': while (inn=='s'){ cout << "BCK\n"; inn=getch();} break; case 'a': while (inn=='a'){ cout << "LFT\n"; inn=getch();} break; case 'd': while (inn=='d'){ cout << "RGT\n"; inn=getch();} break;} }return 0;}
Started by hazzer123 Software
Started by henry Software
Started by karmax Electronics
Started by jkerns Software