Go Down

Topic: FM-HELP ME-XD (Read 437 times) previous topic - next topic

Omnimusha

Mar 05, 2013, 03:05 am Last Edit: Mar 05, 2013, 03:06 am by Omnimusha Reason: 1
hola fm, quiero saber si se puede crear una libreria para que arduino
leea la data de ahi. por ejemplo

#include "data.h"


void setup() {
 // put your setup code here, to run once:

}

void loop() {
 // put your main code here, to run repeatedly:
 
uint8_t  a=buffer[0];

}



/////////////////////////

ahora el data.h

 uint8_t buffer[]={
12,34,45,67,8


};




Omnimusha

hola, encontre un forma, no si la mejor pero funciona.

Code: [Select]

#include "rojo.h"


uint8_t patterns[13][1][13] = {
Linterna13
};


 
void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:
 
}



////////////////////
// rojo.h//

Code: [Select]

#define  Linterna13  { \
{0, 1, 1,1,1,1,1,1,\
1,2,1,2,3}\
}

Omnimusha

otra pregunta, como se podria hacer un ejecutable que directamente cargue
el strech al arduino ??

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy