Tìm kiếm tương tự
Tay cầm Sony PS2 có dây code #include //Khai bao chan PS2 #define PS2_DAT 13 #define PS2_CMD 11 #define PS2_SEL 10 #define PS2_CLK 12 //Khai bao chan dieu khien relay #define relay 8 //#define pressures true #define pressures false //#define rumble true #define rumble false PS2X ps2x; // create PS2 Controller Class int error _ 0; byte type _ 0; byte vibrate _ 0; void setup() { // put your setup code here, to run once: pinMode(relay, OUTPUT); Serial.begin(57600); digitalWrite(relay, HIGH); delay(300); //setup pins and settings: GamePad(clock, command, attention, data, Pressures?, Rumble?) check for error error _ ps2x.config_gamepad(PS2_CLK, PS2_CMD, PS2_SEL, PS2_DAT, pressures, rumble); if(error __ 0){ Serial.print("Found Controller, configured successful "); Serial.print("pressures _ "); if (pressures) Serial.println("true "); else Serial.println("false"); Serial.print("rumble _ "); if (rumble) Serial.println("true)"); else Serial.println("false"); Serial.println("Try out all the buttons, X will vibrate the controller, faster as you press harder;"); Serial.println("holding L1 or R1 will print out the analog stick values."); Serial.println("Note: Go tofor updates and to report bugs."); } else if(error __ 1) Serial.println("No controller found, check wiring, see readme.txt to enable debug. visitfor troubleshooting tips"); else if(error __ 2) Serial.println("Controller found but not accepting commands. see readme.txt to enable debug. Visitfor troubleshooting tips"); else if(error __ 3) Serial.println("Controller refusing to enter Pressures mode, may not support it. "); type _ ps2x.readType(); switch(type) { case 0: Serial.print("Unknown Controller type found "); break; case 1: Serial.print("DualShock Controller found "); break; case 2: Serial.print("GuitarHero Controller found "); break; case 3: Serial.print("Wireless Sony DualShock Controller found "); break; } } void loop() { // put your main code here, to run repeatedly: if(error __ 1) //skip loop if no controller found return; if(type __ 2){ ps2x.read_gamepad(); } else { ps2x.read_gamepad(false, vibrate); vibrate _ ps2x.Analog(PSAB_CROSS); if (ps2x.NewButtonState()) { if(ps2x.Button(PSB_L1)) { digitalWrite(relay, LOW); } else { digitalWrite(relay, HIGH); } } } } ĐIỆN TỬ NGUYỄN HIỀN Chuyên cung cấp linh kiện điện tử, thiết bị công nghiệp, dịch vụ tự động hoá. Để biết thêm thông tin về sản phẩm vui long nhắn tin cho shop Xin cảm ơn
Micro Thu âm ISK SM58 không dây kèm đầu thu kết nối với Soundcard, Mixer, Vang, Amply, loa kéo
Tay cầm chơi game Nintendo Pro Controller Monster Hunter Rise Phiên bản giới hạn
Khiển samsumg lcd dài vào mạng
Tay Cầm Nintendo Switch Joy_con Phiên Bản The Legend of Zelda Skyward Sword
Găng tay chơi game bao tay 2 ngón chơi game chống ra mồ hôi chuyên dụng cho game mobi
Quạt làm mát có giá đỡ Bộ làm mát đế máy chơi Game cho sàn hơi nước / Switch / OLED
Tay cầm chơi game tay cầm đứng bộ điều khiển tay chân đế hỗ trợ giá đỡ rocker nắp cần điều khiển cho nintendo switch oled joy-con joycon ns
Tay game PUPG chính hãng Baseus nakha
Bộ bao 2 ngón tay chuyên dụng chơi game mobile chống ra mồ hôi tay mới
Rcm jig cho nintendo switch rcm clip đầu nối ngắn cho ns chế độ phục hồi được sử dụng để sửa đổi lưu trữ chơi gba / fba rcm trò chơi jig mới
Bộ tay chơi game Hoco GM2 - Chính hãng - Thegioiphukien.vn
Tay cầm chơi game xbox 360 đầu cắm usb, hỗ trợ tất cả các loại game tay cầm, hỗ trợ pc, laptop...
3 Màu Sắc Giữ Ẩm Kem che khuyết điểm dạng lỏng trang điểm nền kiểm soát dầu Không Thấm Nước bọc hoàn toàn quầng thâm Matte Kem Che Khuyết Điểm Mỹ Phẩm
Bộ yếm suông túi nắp + áo thun tay dài cổ cao sọc ngang 170522
Vòng tay phong thủy Aquamarine Hải Lam Ngọc size 5mm mang lại bình yên, hợp mệnh Mộc, Thủy Cara Gem CR34
Gi à y cao g car t tr em sansa thu đông giày khiêu vũ latin bé gái trưởng thành bé gái trẻ em giày khiêu vũ đế mềm giày latin bé gái giày nhảy múa
Hồng ngoan
Gối cao su non chống bẹp đầu cho trẻ sơ sinh
✅ ốp tay dắt carbon lead 2017 - 2021 ✅
Giày cổ cao nam kiểu dáng đơn giản dễ phối đồ trẻ trung,giầythể thao nam hàng quảng châu
Kẹp tóc dây ngọc Hàn quốc sang chảnh
Cốc điều hòa cho hoa lan – Phụ kiện thông minh – tiết kiệm thời gian chăm sóc
Hoa tai đính đá dáng vuông Hàn Quốc
Áo nỉ noel thêu hình lớn 🦋 áo thun sweater christmas họa tiết dáng rộng 4 màu 🦋 giá tốt
Phi tiêu đầu nam châm an toàn cho mọi lứa tuổi
Sục
Vay
Áo
Áo
Váy xuất
🎀🧧 nơ size nhỏ trang trí quả dưa tết 2025 - mâm cũ quả
Charm treo hoa bạc s925 thuần khiết hàng chính hãng




