UsbAct beta

UsbAct beta Free App

Rated 0.00/5 (0) —  Free Android application by saibakho

Advertisements

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


------------------------------------------- This is a test app for Arduino mega.

It is used when writing to Arduino mega the following code, it was connected via USB to the Arduino mega Phone (Android os).

Function
And connect the LED lamp on 13th of Arduino, you press the button on the app, LED lamp is lit.

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


# Include
# Include
# Include

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


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

How to Download / Install

Download and install UsbAct beta version 1.1 on your Android device!
Downloaded 50+ times, content rating: Everyone
Android package: usb.act, download UsbAct beta.apk

All Application Badges

Free
downl.
Android
2.2+
ALPHA BETA
For everyone
Android app

App History & Updates

What's Changed
2014/04/18:beta
More downloads  UsbAct beta reached 50 - 100 downloads
More downloads  UsbAct beta reached 10 - 50 downloads
More downloads  UsbAct beta reached 5 - 10 downloads
More downloads  UsbAct beta reached 1 - 5 downloads

Oh snap! No comments are available for UsbAct beta at the moment. Be the first to leave one!

Share The Word!


Rating Distribution

RATING
0.05
0 users

5

4

3

2

1