پاسخ : موتور انکودر دار
از چه میکرویی استفاده میکنید؟
							
						
					از چه میکرویی استفاده میکنید؟

$regfile = "m32def.dat" $crystal = 1000000 Config Lcd = 20 * 4 Config Lcdpin = Pin , Rs = Porta.1 , E = Porta.0 , Db4 = Porta.4 , Db5 = _ Porta.5 , Db6 = Porta.6 , Db7 = Porta.7 Enable Interrupts Enable Int0 Enable Int1 Config Int0 = Rising Config Int1 = Rising Dim A as Integer On Int0 M M: A = Int0 A = A + 1 Locate 1 , 1 Lcd A Waitms 100 Return
دیدگاه