







Standard Tilt Switch Module For AVR PIC
Specification: Routines source code: int Led = 13 ;// define LED Interface int buttonpin = 3; // define the tilt switch sensor interfaces int val ;// define numeric variables val void setup()...

Magideal
@magidealĐánh giá
Theo Dõi
Nhận xét
Thương hiệu
OEM
Xuất xứ thương hiệu
China
Xuất xứ (Made in)
China
Sản phẩm có được bảo hành không?
Không
Specification: Routines source code: int Led = 13 ;// define LED Interface int buttonpin = 3; // define the tilt switch sensor interfaces int val ;// define numeric variables val void setup() { pinMode(Led, OUTPUT) ;// define LED as output interface pinMode(buttonpin, INPUT) ;// define the output interface tilt switch sensor } void loop () { val = digitalRead(buttonpin) ;// digital interface will be assigned a value of 3 to read val if(val == HIGH) // When the tilt sensor detects a signal when the switch, LED flashes { digitalWrite(Led, HIGH); } else { digitalWrite(Led, LOW); } } Package Includes: 1 Piece KY-020 Tilt Switch Module Note: Color maybe slightly different due to different monitor.The above size is measured by hand, please allow slightly difference. Thanks ! Giá sản phẩm trên Tiki đã bao gồm thuế theo luật hiện hành. Bên cạnh đó, tuỳ vào loại sản phẩm, hình thức và địa chỉ giao hàng mà có thể phát sinh thêm chi phí khác như phí vận chuyển, phụ phí hàng cồng kềnh, thuế nhập khẩu (đối với đơn hàng giao từ nước ngoài có giá trị trên 1 triệu đồng).....
Sản Phẩm Liên Quan
Giày sandal hoa kiểu Châu Âu giày Thêu Mờ Kích Thước 35-43 Giày Cao Gót 20735
187.000₫