Page 152 - C Programming
P. 152
ตัวอย่างที่ 11-5 โปรแกรมควบคุมความเร็วของสเต็ปเปอร์มอเตอร์โดยการกดแป้ นพิมพ์บวกและลบ
#include<stdio.h>
#include<dos.h>
#include<conio.h>
main()
{ char data[8]={0x01,0x03,0x02,0x06,0x04,0x0c,0x08,0x09};
char control,i=0;
int del=300;
clrscr();
gotoxy(25,10); printf("*******************");
gotoxy(25,11); printf(" Control Speed Motor ");
gotoxy(25,12); printf("*******************");
getch();