เครื่องเปิด-ปิดไฟอัตโนมัติ 13ข 14ข

Page 1

Automatic light on and off

เครือง เปด-ปดไฟ อัตโนมัติ


01

กดทีเมนุ sensor เลือก Light Level Sensor แล้วกดทีเมนูBasicเลือกLED 16x8 2-charsมาต่อท้าย แล้วใส่Foreverครอบ


02

กดทีเมนูLogicเลือกIf-Else blocks แล้วนําLight Level Sensorใส่ในInequalityนํามาต่อท้าย


03

กดค่าให้Light Level Sensorมีค่าน้อยกว่าหรือเท่ากับ 30 แล้วกดเข้าเมนูI/O เลือก Write USB Status On ใส่ขางหลั ้ ง do


04

กดเข้าเมนูI/O เลือก Write USB Status Off ใส่ขา้ งหลัง else


05

แล้วนําทังหมดมาใส่ต่อท้ายLight Level Sensor และLED 16x8 2-chars แล้วใส่ Delay 0.1 ต่อท้าย


members

01 Sireethorn Krungpituk No.13B 02 Wannapa Malison No.14B M.4/4


THANK YOU!


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