In SX Microcontrollers, SX/B Compiler and SX-Key Tool, aemileski wrote: [quote]Is step 12 the refresh???[/quote]Well 1 to 11 is the refresh, 12 repeats it with the same data. I don't understand why you would have that, except for maybe the second red pixel in RRGB. In that case 1-12 is the refresh. I'd recommend storing pixel data differently if possible. I'm betting that you are currently using pixel packing with 8 pixels per byte, which makes sense with 1 bit of luminance but is awkward with more. Byte offset 0: pixel 0, red Byte offset 1: pixel 0, green Byte offset 2: pixel 0, blue Byte offset 3: pixel 1, red Byte offset 4: pixel 1, green Byte offset 5: pixel 1, blue ... This makes it so that you can use: Next pixel offset = current pixel offset + 3 Red = current pixel offset + 0 Green = current pixel offset + 1 Blue = current pixel offset + 2 Then all you need to do is to keep track which field you are on, convert the the 3 byte RGB value to a 3 bit PWM bit for that field, shift the bits out. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=301606#m305905 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2008 (http://www.dotNetBB.com)