Код: Выделить всё
void foto(void)
{
unsigned long i;
PORTB &= ~_BV(LCD_CS); // select display
lcd_cmd(SD_CSET);
lcd_dat0(0x08); // start is 8, not 0
lcd_dat0(0x01);
lcd_dat0(0x8B); // is 00x8B = 0x83+8
lcd_dat0(0x01);
lcd_cmd(SD_PSET);
lcd_dat0(0x00);
lcd_dat0(0xAF);
lcd_cmd(RAMWR);
// start data transmission
//for (i=0; i<DISP_W*DISP_H; i++)
for (i=0; i<176*132; i++)
lcd_dat16(image[i]);
PORTB |= _BV(LCD_CS); // deselect display
}




