Rev 403 | Rev 407 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 403 | Rev 404 | ||
---|---|---|---|
Line 351... | Line 351... | ||
351 | } else { |
351 | } else { |
352 | // PAL + enable display immediately (VM0) |
352 | // PAL + enable display immediately (VM0) |
353 | spi_send_byte(0x00, 0b01001000); |
353 | spi_send_byte(0x00, 0b01001000); |
354 | } |
354 | } |
Line 355... | Line 355... | ||
355 | 355 | ||
356 | // clear all display-mem (DMM) |
356 | /*// clear all display-mem (DMM) |
Line 357... | Line 357... | ||
357 | spi_send_byte(0x04, 0b00000100); |
357 | spi_send_byte(0x04, 0b00000100); |
358 | 358 | ||
Line 359... | Line 359... | ||
359 | // clearing takes 12uS according to maxim so lets wait longer |
359 | // clearing takes 12uS according to maxim so lets wait longer |
360 | _delay_us(120); |
360 | _delay_us(120); |
Line 361... | Line 361... | ||
361 | 361 | ||
362 | // 8bit mode |
362 | // 8bit mode |
Line 363... | Line 363... | ||
363 | spi_send_byte(0x04, 0b01000000); |
363 | spi_send_byte(0x04, 0b01000000);*/ |
364 | 364 | ||
365 | // write blank chars to whole screen |
365 | // clear display memory and set to 8bit mode |