MCPcopy Create free account
hub / github.com/kiibohd/controller / LCD_initialize

Function LCD_initialize

Scan/Devices/STLcd/lcd_scan.c:320–352  ·  view source on GitHub ↗

Intialize display

Source from the content-addressed store, hash-verified

318
319// Intialize display
320void 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
355inline void LCD_setup()

Callers 2

LCD_setupFunction · 0.85
cliFunc_lcdInitFunction · 0.85

Calls 2

LCD_writeControlRegFunction · 0.85
LCD_clearFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…