Our website uses necessary cookies to enable basic functions and optional cookies to help us to enhance your user experience. Learn more about our cookie policy by clicking "Learn More".
Accept All Only Necessary Cookies
UsbAct beta icon

1.1 by saibakho


May 2, 2016

About UsbAct beta

UsbAct beta

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();

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);

}

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

What's New in the Latest Version 1.1

Last updated on May 2, 2016

2014/04/18:beta

Translation Loading...

Additional APP Information

Latest Version

Request UsbAct beta Update 1.1

Uploaded by

Ahmad Fateh Gdeaa

Requires Android

Android 2.2+

Available on

Get UsbAct beta on Google Play

Show More

UsbAct beta Screenshots

Comment Loading...
Subscribe to APKPure
Be the first to get access to the early release, news, and guides of the best Android games and apps.
No thanks
Sign Up
Subscribed Successfully!
You're now subscribed to APKPure.
Subscribe to APKPure
Be the first to get access to the early release, news, and guides of the best Android games and apps.
No thanks
Sign Up
Success!
You're now subscribed to our newsletter.