375 void SSD1322::copy_to_lcd(unsigned char from_col, unsigned char to_col, |
375 void SSD1322::copy_to_lcd(unsigned char from_col, unsigned char to_col, |
376 unsigned char from_row, unsigned char to_row) |
376 unsigned char from_row, unsigned char to_row) |
377 { |
377 { |
378 unsigned char x, y; |
378 unsigned char x, y; |
379 |
379 |
|
380 if (to_col>0x3F) |
|
381 to_col = 0x3F; |
|
382 if (to_row>0x3F) |
|
383 to_row = 0x3F; |
380 set_row_address(from_row, to_row); |
384 set_row_address(from_row, to_row); |
381 set_column_address(from_col, to_col); |
385 set_column_address(from_col, to_col); |
382 |
386 |
383 wr_cmd8(SSD1322_CMD_WRITE_RAM); |
387 wr_cmd8(SSD1322_CMD_WRITE_RAM); |
384 for(y=from_row; y<=to_row; y++) { |
388 for(y=from_row; y<=to_row; y++) { |