پاسخ : صفحه های Touch Screen موجود در بازار تهران
بفرمائید :rolleyes:
بفرمائید :rolleyes:
$regfile = "M16def.dat" $lib "glcdKS108.LBX" $lib "glcdKS108.LBX" $include "font8x8.font" $crystal = 8000000 Config Graphlcd = 128 * 64sed , Dataport = Portc , Controlport = Portd , Ce = 4 , Ce2 = 3 , Cd = 7 , Rd = 6 , Reset = 2 , Enable = 5 Setfont Font8x8 Cls Dim X As Word , Y As Word Loop1: ' Get X : Config Pina.0 = Output Config Pina.1 = Input Config Pina.2 = Output Config Pina.3 = Input Set Porta.0 Reset Porta.1 Reset Porta.2 Reset Porta.3 Ddra.1 = 0 Ddra.3 = 0 Waitms 10 X = Getadc(1) ' Get Y : Config Pina.0 = Input Config Pina.1 = Output Config Pina.2 = Input Config Pina.3 = Output Reset Porta.0 Set Porta.1 Reset Porta.2 Reset Porta.3 Ddra.0 = 0 Ddra.2 = 0 Waitms 10 Y = Getadc(2) Lcdat 1 , 0 , "X:" ; X Lcdat 1 , 50 , "Y:" ; Y Goto Loop1 End
دیدگاه