【實用工具app】UsbAct beta|最夯免費app

【實用工具app】UsbAct beta|最夯免費app

分享好友

【免費工具App】UsbAct beta-APP點子

Arduino mega 用のテストアプリです。

以下のコードをArduino megaに書き込み、Phone(Android os)とArduino megaをUSBで繋いだ際に使用します。

機能

Arduinoの13番にLEDランプを繋げ、アプリのボタンを押すと、LEDランプが点灯します。

-------------------------------------------

#include <Max3421e.h>

#include <Usb.h>

#include <AndroidAccessory.h>

AndroidAccessory acc("saibakho",

"UsbAct",

"UsbAct Arduino Board",

"1.0",

"https://play.google.com/store/apps/details?id=usb.act",

"0000000012345678");

int led = 13;

void setup()

{

Serial.begin(115200);

acc.powerOn();

【免費工具App】UsbAct beta-APP點子

pinMode(led, OUTPUT);

}

void loop()

{

byte receiveM[1];

if (acc.isConnected()) {

int len = acc.read(receiveM, sizeof(receiveM), 1);

if(len > 0&&receiveM[0]=='a'){

digitalWrite(led, HIGH);

delay(1000);

digitalWrite(led, LOW);

delay(1000);

}

}

delay(10);

}

-------------------------------------------

免費玩UsbAct beta APP玩免費

免費玩UsbAct beta App

UsbAct beta APP LOGO

UsbAct beta LOGO-APP點子

UsbAct beta APP QRCode

UsbAct beta QRCode-APP點子
熱門國家系統支援版本費用APP評分上架日期更新日期
未知Android
Google Play
1.1
App下載
免費
1970-01-012015-04-18
分享app
上一個APP
下一個APP

高評價工具App推薦

WorldClock

WorldClock provides current time and time zone information for more than 190 nations' capitals.The app lists locations alphabetically by country n …
Global Clock

Display multiple clocks and configure each to show a different time zone. Let the Global Clock widget take the guess work out of time differences. The …
Backup Bunch

We all need to keep an account of huge amount of our things related to our life. It could be calls that we had in a day as if there is any important c …