Show Posts
Pages: [1]
1  Using Arduino / Programming Questions / Re: Struct arduino on: May 18, 2014, 08:54:05 am
Code:
#include <string.h>
#include <avr/io.h>

typedef struct {
  char a;
  char b;
} Ntes;

typedef struct {
  char t;
  Ntes e;
  Ntes s;
} tte;

static tte Ste;

void setup(){
  memset( &Ste, 0x00, sizeof(tte) );
}

int main(void) {
  setup();
  if (Ste.e.a)
  {
    PORTB = 0xFF;
  }
}

some guy at avr freak answered this question.
2  Using Arduino / Programming Questions / Struct arduino on: May 17, 2014, 02:15:05 pm
Helo Im tryng to implemente struct, but I got a error, so I created a test file.
Code:

struct tes{
  char a;
  char b;
};
typedef struct tes TES;
struct te{
  char t;
  static  TES e;
  //static struct TES s;
};

typedef struct te tte;
void setup(){
//memset( &Ste, 0x00, sizeof(struct te) );

//static struct te Ste;
}

void loop()
{
tte SSte;
if (SSte.e.a)
{
delay(10);
}
}

and I get the  error:


test_struct.cpp.o: In function `loop':
C:\Users\*\Downloads\arduino-nightly/test_struct.ino:22: undefined reference to `te::e'
3  Using Arduino / Networking, Protocols, and Devices / [help!]Using Mamba shield on: April 02, 2014, 05:40:53 pm
Im trying to make the mamba shield to work.
I downloaded th code from http://www.linksprite.com/download/showdownload.php?id=202&lang=en
and compiling and upload into arduinos but I cant send or recive any data from serial.

I tried to use the X-ctu but I didn't got any result.
4  Using Arduino / Networking, Protocols, and Devices / Re: [Help] Mamba Shield on: April 02, 2014, 04:59:04 pm
You have to use the version arduino-0022, all other don't work
5  Community / Products and Services / Arduino in Miami on: August 15, 2011, 01:23:42 pm
Someone know arduino on miami?

Im from Brazil, and a friend is going to miami and I want a arduino.
6  Community / Workshops and Events / Re: Arduino Group in Miami Wynwood Art District on: August 15, 2011, 01:17:20 pm
Hey dude, do you know where can i buy a arduino on miami?

thanks
Pages: [1]