comparison target-utils/pirexplore/lcd.c @ 202:b26b7459bd44

pirexplore: lcdramp command renamed to lcdtest: the bars aren't a ramp
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Thu, 19 Dec 2013 08:32:33 +0000
parents f65df1d640aa
children
comparison
equal deleted inserted replaced
201:84611183c8c3 202:b26b7459bd44
187 while (npix--) 187 while (npix--)
188 nCS4_ADDR2 = pixval; 188 nCS4_ADDR2 = pixval;
189 } 189 }
190 190
191 void 191 void
192 cmd_lcdramp() 192 cmd_lcdtest()
193 { 193 {
194 int i, j, k, p; 194 int i, j, k, p;
195 195
196 /*
197 * The result of this command should be 8 vertical bars
198 * in the natural RGB order.
199 */
196 set_lcd_addr_region(10, 89, 10, 89); 200 set_lcd_addr_region(10, 89, 10, 89);
197 for (i = 0; i < 80; i++) { 201 for (i = 0; i < 80; i++) {
198 for (j = 0; j < 8; j++) { 202 for (j = 0; j < 8; j++) {
199 p = 0; 203 p = 0;
200 if (j & 4) 204 if (j & 4)