serial interface and display images...

Arduino, Seeeduino Serials and mutants. Share your problems and experence on arduino compatible board such as seeeduino/stalker, etc.

Moderators: lily.li, violet, salmanfarisvp

Post Reply
michu
Kindergarten
Kindergarten
Posts: 55
Joined: Thu Jun 17, 2010 12:36 am
Location: Switzerland
Contact:

serial interface and display images...

Post by michu » Thu Jun 24, 2010 7:50 pm

hey all.. after my rainbowduino is arrived i played with several firmwares. now I need some help from you guys.

1) what I want is display a precomputed buffer (computed on my workstation) on the rainbowduino. so i send the image via serial directly to the rainbowduino. did I understand it right that there is no function yet which do that? i tested several firmwares (mtXcontrol, Raibow_conmandVertion_Bate, rainbowduino_v1_0_5, Rainbowduino_v3_0h, RainbowV1.1Serial) without success.

2) rainbowduino use 12bit/per pixel - so to draw a white screen i would send 64 times 0xfff (or 768 times a 0xf character, this would mean a full screen buffer size is 96bytes), is this right?

3) is it possible to communicate with my first rainbowduino serial (from my workstation) and the rainbowduinos would talk to each other via i2c? example
[Workstation]----<serial>----[rainbowduino#1]----<i2c>----[rainbowduino#2]
so i can send to my rainbowduino: drawBuffer(target2, bytebuffer[96]).

regards

Icing
Elementary-1
Elementary-1
Posts: 140
Joined: Wed Oct 21, 2009 10:39 pm

Re: serial interface and display images...

Post by Icing » Sat Jun 26, 2010 12:46 pm

Hi michu,
1) what I want is display a precomputed buffer (computed on my workstation) on the rainbowduino. so i send the image via serial directly to the rainbowduino. did I understand it right that there is no function yet which do that? i tested several firmwares (mtXcontrol, Raibow_conmandVertion_Bate, rainbowduino_v1_0_5, Rainbowduino_v3_0h, RainbowV1.1Serial) without success.
rainbowduino_v1_0_5 has the serial interface for receiving and displaying a matrix color data.
2) rainbowduino use 12bit/per pixel - so to draw a white screen i would send 64 times 0xfff (or 768 times a 0xf character, this would mean a full screen buffer size is 96bytes), is this right?
First change to data mode, then send 64x3(rgb) bytes color data with 0xaa 0x55 as ending flag.

for example:


unsigned char red = 0x0f;
unsigned char green = 0x0f;
unsigned char blue = 0x0f;

//send white color matrix
for(int i = 0; i < 64; i++){
Serial.print(red);
Serial.print(green);
Serial.print(blue);
}

unsigned char end1 = 0xaa;
unsigned char end2 = 0x55;
Serial.print(end1);
Serial.print(end2);
3) is it possible to communicate with my first rainbowduino serial (from my workstation) and the rainbowduinos would talk to each other via i2c? example
[Workstation]----<serial>----[rainbowduino#1]----<i2c>----[rainbowduino#2]
so i can send to my rainbowduino: drawBuffer(target2, bytebuffer[96]).
Yes you can add one command which means the following receiving data will be transmitted to a slave rainbowduino through I2C.

May it helpful to you,

Regards,

Icing

Post Reply