IPST_SE

Page 57

คําสั่งอ่านข้อมูลจากบิตพอร์ต • in(x)

อ่านข้อมูลจากขาบิตพอร์ต x แล้วคืนค่า 0 หรือ 1 ออกมา พอร์ต x ของบอร์ตมีค่าตั้งแต่ 0 ถึง 30 ( ไม่ควรใช้ 19 และ 20)

18

IPST BOX

57 Wednesday, April 10, 13

22

void loop() { unsigned char k; k = in(18); if(k == 0) { ..... } }

www.themegallery.com


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.