Pages: [1]   Go Down
Author Topic: FM-HELP ME-XD  (Read 401 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Full Member
***
Karma: 0
Posts: 133
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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


};



« Last Edit: March 04, 2013, 09:06:54 pm by Omnimusha » Logged

Offline Offline
Full Member
***
Karma: 0
Posts: 133
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Code:
#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:
#define  Linterna13  { \
 {0, 1, 1,1,1,1,1,1,\
 1,2,1,2,3}\
 }
Logged

Offline Offline
Full Member
***
Karma: 0
Posts: 133
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Pages: [1]   Go Up
Jump to: