xbox360 手把控制 arduino 發送訊息
xbox360 手把控制 arduino 發送訊息 在修嵌入式的時候有想過專題要做四軸飛機後來想想,太大了,分享一下xbox360手把去控制 arduino serial 參數發送 移植!! xboxcontroler-ardunino
LABEL / Arduino
3 posts
xbox360 手把控制 arduino 發送訊息 在修嵌入式的時候有想過專題要做四軸飛機後來想想,太大了,分享一下xbox360手把去控制 arduino serial 參數發送 移植!! xboxcontroler-ardunino
程式碼 --- arduino_i2c.ino cpp Copy #include <Wire.h> const byte SLAVE_ADDRESS = 0x15 ; void setup () { Wire . begin ( 0x15 ); // join i2c bus with address #8 Wire . onReceive ( receiveEvent );…
電路圖 --- 影片 --- 程式碼 --- cpp Copy const int trig = 5 ; const int echo = 4 ; int buzzerPin = 3 ; //蜂鳴器 const int inter_time = 100 ; int time = 0 ; void setup () { Serial . begin ( 9600 ); pinMo…