隔壁老王的1.5元nas屏幕亮度调节测试:
使用st7565_lx12864;
修改u8x8_d_st7565.c:static const uint8_t u8x8_d_st7565_lx12864_init_seq
/* LX12864 issue 576 */
static const uint8_t u8x8_d_st7565_lx12864_init_seq[] = {
U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */
U8X8_C(0x0e2), /* soft reset */
U8X8_C(0x0ae), /* display off */
U8X8_C(0x060), /* set display start line to ... */
U8X8_C(0x0a0), /* ADC set to reverse */
U8X8_C(0x0c8), /* common output mode */
//U8X8_C(0x0a1), /* ADC set to reverse */
//U8X8_C(0x0c0), /* common output mode */
// Flipmode
// U8X8_C(0x0a0), /* ADC set to reverse */
// U8X8_C(0x0c8), /* common output mode */
U8X8_C(0x0a6), /* display normal, bit val 0: LCD pixel off. */
U8X8_C(0x0a2