Intialize display
| 318 | |
| 319 | // Intialize display |
| 320 | void LCD_initialize() |
| 321 | { |
| 322 | // ADC Select (Normal) |
| 323 | LCD_writeControlReg( 0xA0 ); |
| 324 | |
| 325 | // LCD Off |
| 326 | LCD_writeControlReg( 0xAE ); |
| 327 | |
| 328 | // COM Scan Output Direction |
| 329 | LCD_writeControlReg( 0xC0 ); |
| 330 | |
| 331 | // LCD Bias (1/6 bias) |
| 332 | LCD_writeControlReg( 0xA2 ); |
| 333 | |
| 334 | // Power Supply Operating Mode (Internal Only) |
| 335 | LCD_writeControlReg( 0x2F ); |
| 336 | |
| 337 | // Internal Rb/Ra Ratio |
| 338 | LCD_writeControlReg( 0x26 ); |
| 339 | |
| 340 | // Reset |
| 341 | LCD_writeControlReg( 0xE2 ); |
| 342 | |
| 343 | // Electric volume mode set, and value |
| 344 | LCD_writeControlReg( 0x81 ); |
| 345 | LCD_writeControlReg( 0x00 ); |
| 346 | |
| 347 | // LCD On |
| 348 | LCD_writeControlReg( 0xAF ); |
| 349 | |
| 350 | // Clear Display RAM |
| 351 | LCD_clear(); |
| 352 | } |
| 353 | |
| 354 | // Setup |
| 355 | inline void LCD_setup() |
no test coverage detected
searching dependent graphs…