Pages: [1]   Go Down
Author Topic: Android ADK Blinking example not blinking sometimes  (Read 610 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have arduino uno connected with itead usbshield. I am receiving the data from android phone and it blinks only when i open serial monitor otherwise it is not. How to blink it independently. Is there any way it relates with opening serial monitor...?

I use pin 13 for blinking it...
Please guide me in to this...

This is the code...

void loop()
  if(adk.isReady()) {
    uint8_t msg[1];
    uint16_t len = sizeof(msg);
    uint8_t rcode = adk.RcvData(&len, msg);
    if(rcode && rcode != hrNAK)
      USBTRACE2("Data rcv. :", rcode);
    if(len > 0) {
      Serial.print(F("\r\nData Packet: "));
      digitalWrite(LED,msg[0] ? HIGH : LOW);
    digitalWrite(LED, LOW);
« Last Edit: October 05, 2012, 05:14:47 am by vinobigbang » Logged

Global Moderator
Melbourne, Australia
Offline Offline
Brattain Member
Karma: 511
Posts: 19358
Lua rocks!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Read this before posting a programming question

Please post technical questions on the forum - not to me by personal message. Thanks a lot.

Pages: [1]   Go Up
Jump to: