Rev 11 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 11 | Rev 13 | ||
|---|---|---|---|
| Line 324... | Line 324... | ||
| 324 | { |
324 | { |
| 325 | oledSetCD(0); |
325 | oledSetCD(0); |
| 326 | oledWrite(SSD1306_DEACTIVATE_SCROLL); |
326 | oledWrite(SSD1306_DEACTIVATE_SCROLL); |
| 327 | } |
327 | } |
| 328 | 328 | ||
| 329 | // Dim the display |
- | |
| 330 | // dim = true: display is dimmed |
- | |
| 331 | // dim = false: display is normal |
- | |
| - | 329 | ||
| 332 | void display_t::dim(uint8_t contrast) |
330 | void display_t::dim(uint8_t contrast) |
| 333 | { |
331 | { |
| 334 | 332 | ||
| 335 | // the range of contrast to too small to be really useful |
333 | // the range of contrast to too small to be really useful |
| 336 | // it is useful to dim the display |
334 | // it is useful to dim the display |