Dave: I found the color problem. There were some incorrect indices on pixel[]. I've alse changed the code a bit so Boris will render much faster. Rather than sending one RGB pixel at a time I'm seen 768/3. I got the idea from fillScreenBards(). Here's my displayimage().
void displayimage(){ char pixel[5], *data = header_data; int i = width * height; Transfer tbuffer[128*128*3+1]; void *buff_ptr = tbuffer; LCDSendCommand(1, 0x2C); int j = 0; while(i-- > 0) { HEADER_PIXEL(data,pixel); tbuffer[j+0].data=(*pixel[2]* & 0xff); tbuffer[j+0].type=1; tbuffer[j+1].data=(*pixel[1]* & 0xff); tbuffer[j+1].type=1; tbuffer[j+2].data=(*pixel[0]* & 0xff); tbuffer[j+2].type=1; j +=3; } // SPIWriteChunk(buff_ptr, 128*128*3); for(i=0;i<128;i++){ SPIWriteChunk(buff_ptr, 768); buff_ptr += 768; } } *Why do you only write 768 bytes at a time to the SPI?* With only small changes the code here[1] drives the miniDisplay and sends a bmp file to it. --Mark [1] https://github.com/jeidon/cfa_bmp_loader.git On Wednesday, July 16, 2014 12:00:03 PM UTC-4, David Anders wrote: > > Mark, > > > On Wednesday, July 16, 2014 8:42:31 AM UTC-5, Mark A. Yoder wrote: >> >> It works! Thanks. Though the background on Boris is greenish. >> >> > that is odd! we've not had any reports of that issue during our testing. > it is possible that the SPI timing could be off giving you a slightly > shifted color spectrum, or possible the display is damaged. please email > sup...@boardzoo.com <javascript:> and we'll get another minidisplay cape > out to you to test... > > > >> There is a typo on the wiki. The tar command produces a directory called >> Minidisplay-example with a capital M. >> >> > sorry about that, the elinux.org wiki automatically makes the first > letter of file uploads a capital. the original file was not capital.... > > > >> I also had to run echo -10 > /sys/devices/bone_capemgr.*/slots >> before echo BB-SPIDEV0 > /sys/devices/bone_capemgr.*/slots to disable a pwm >> that was in conflict. >> >> > had you previously loaded another device tree entry with PWM? > > > >> Thanks again... >> >> > i did not get a chance yesterday to document it, but the header file for > the boris image was generated using GIMP's export feature. it would be easy > enough to add a parser to decode bmp or png files... > > Dave > > -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.