Rev 401 | Rev 403 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 401 | Rev 402 | ||
---|---|---|---|
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 | - | ||
356 | // clear all display-mem (DMM) |
- | |
357 | spi_send_byte(0x04, 0b00000100); |
- | |
358 | - | ||
359 | // clearing takes 12uS according to maxim so lets wait longer |
- | |
360 | _delay_us(120); |
- | |
361 | 355 | ||
362 | // 8bit mode |
356 | // 8bit mode |
Line 363... | Line 357... | ||
363 | spi_send_byte(0x04, 0b01000000); |
357 | spi_send_byte(0x04, 0b01000000); |
364 | 358 | ||
Line 365... | Line 359... | ||
365 | // write blank chars to whole screen |
359 | // clear display |
366 | clear(); |
360 | clear(); |
367 | 361 |