mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-09 21:17:18 +03:00
SSD1322 enhancement - release
at the expense of power but needed for 5.5' displays
This commit is contained in:
@@ -147,23 +147,28 @@ static bool Init( struct GDS_Device* Device ) {
|
|||||||
Private->ReMap = 0;
|
Private->ReMap = 0;
|
||||||
Device->SetLayout( Device, false, false, false);
|
Device->SetLayout( Device, false, false, false);
|
||||||
|
|
||||||
|
// set Display Enhancement
|
||||||
|
Device->WriteCommand( Device, 0xB4 );
|
||||||
|
WriteDataByte( Device, 0xA0 );
|
||||||
|
WriteDataByte( Device, 0xB5 );
|
||||||
|
|
||||||
// set Clocks
|
// set Clocks
|
||||||
Device->WriteCommand( Device, 0xB3 );
|
Device->WriteCommand( Device, 0xB3 );
|
||||||
WriteDataByte( Device, 0x91 );
|
WriteDataByte( Device, 0xB2 ); // 0x91 seems to be common but is too slow for 5.5'
|
||||||
|
|
||||||
// set MUX
|
// set MUX
|
||||||
Device->WriteCommand( Device, 0xCA );
|
Device->WriteCommand( Device, 0xCA );
|
||||||
WriteDataByte( Device, Device->Height - 1 );
|
WriteDataByte( Device, Device->Height - 1 );
|
||||||
|
|
||||||
// phase 1 & 2 period (needed?)
|
// phase 1 & 2 period
|
||||||
Device->WriteCommand( Device, 0xB1 );
|
Device->WriteCommand( Device, 0xB1 );
|
||||||
WriteDataByte( Device, 0xE2 );
|
WriteDataByte( Device, 0xE3 ); // 0xE2 was recommended
|
||||||
|
|
||||||
// set pre-charge V (needed?°)
|
// set pre-charge V
|
||||||
Device->WriteCommand( Device, 0xBB );
|
Device->WriteCommand( Device, 0xBB );
|
||||||
WriteDataByte( Device, 0x1F );
|
WriteDataByte( Device, 0x0F); // 0x1F causes column interferences
|
||||||
|
|
||||||
// set COM deselect voltage (needed?)
|
// set COM deselect voltage
|
||||||
Device->WriteCommand( Device, 0xBE );
|
Device->WriteCommand( Device, 0xBE );
|
||||||
WriteDataByte( Device, 0x07 );
|
WriteDataByte( Device, 0x07 );
|
||||||
|
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
#include "squeezelite.h"
|
#include "squeezelite.h"
|
||||||
|
|
||||||
#include <alac_wrapper.h>
|
#include "alac_wrapper.h"
|
||||||
|
|
||||||
#if BYTES_PER_FRAME == 4
|
#if BYTES_PER_FRAME == 4
|
||||||
#define ALIGN8(n) (n << 8)
|
#define ALIGN8(n) (n << 8)
|
||||||
|
|||||||
Reference in New Issue
Block a user