forked from zmkfirmware/zmk
-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Display & battery tweaks for Corneish Zen
* Useful for EPD that ghost after several partial updates. Only a temporary fix, tracking number of partial updates and triggering full refreshes based on that would be better.
- Loading branch information
1 parent
6a667a0
commit d295422
Showing
19 changed files
with
422 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
/* | ||
* | ||
* Copyright (c) 2021 Darryl deHaan | ||
* SPDX-License-Identifier: MIT | ||
* | ||
*/ | ||
|
||
#include <lvgl.h> | ||
|
||
#ifndef LV_ATTRIBUTE_MEM_ALIGN | ||
#define LV_ATTRIBUTE_MEM_ALIGN | ||
#endif | ||
|
||
#ifndef LV_ATTRIBUTE_IMG_LPKBLOGO | ||
#define LV_ATTRIBUTE_IMG_LPKBLOGO | ||
#endif | ||
|
||
const LV_ATTRIBUTE_MEM_ALIGN LV_ATTRIBUTE_LARGE_CONST LV_ATTRIBUTE_IMG_LPKBLOGO uint8_t lpkblogo_map[] = { | ||
0xff, 0xff, 0xff, 0xff, /*Color of index 0*/ | ||
0x00, 0x00, 0x00, 0xff, /*Color of index 1*/ | ||
|
||
0x7f, 0xff, 0xff, 0xff, 0xc0, | ||
0xff, 0xff, 0xff, 0xff, 0xe0, | ||
0xe0, 0x00, 0x00, 0x00, 0xe0, | ||
0xc0, 0x00, 0x00, 0x00, 0x60, | ||
0xc7, 0x83, 0xff, 0xfc, 0x60, | ||
0xcf, 0xc7, 0xff, 0xfc, 0x60, | ||
0xcf, 0xc7, 0xff, 0xfc, 0x60, | ||
0xcf, 0xc7, 0xff, 0xfc, 0x60, | ||
0xcf, 0xc7, 0xff, 0xfc, 0x60, | ||
0xcf, 0xc3, 0xff, 0xfc, 0x60, | ||
0xcf, 0xc0, 0x00, 0xfc, 0x60, | ||
0xcf, 0xc0, 0x00, 0xfc, 0x60, | ||
0xcf, 0xc0, 0x00, 0xfc, 0x60, | ||
0xcf, 0xc0, 0x00, 0xfc, 0x60, | ||
0xcf, 0xc3, 0xff, 0xfc, 0x60, | ||
0xcf, 0xc7, 0xff, 0xfc, 0x60, | ||
0xcf, 0xc7, 0xff, 0xfc, 0x60, | ||
0xcf, 0xc7, 0xff, 0xfc, 0x60, | ||
0xcf, 0xc7, 0xff, 0xfc, 0x60, | ||
0xcf, 0xc3, 0xff, 0xfc, 0x60, | ||
0xcf, 0xc0, 0x00, 0x00, 0x60, | ||
0xcf, 0xc0, 0x00, 0x00, 0x60, | ||
0xcf, 0xc0, 0x00, 0x00, 0x60, | ||
0xcf, 0xc0, 0x00, 0x00, 0x60, | ||
0xcf, 0xc0, 0x00, 0x00, 0x60, | ||
0xcf, 0xc3, 0xff, 0xf8, 0x60, | ||
0xcf, 0xc7, 0xff, 0xfc, 0x60, | ||
0xcf, 0xc7, 0xff, 0xfc, 0x60, | ||
0xcf, 0xc7, 0xff, 0xfc, 0x60, | ||
0xcf, 0xc7, 0xff, 0xfc, 0x60, | ||
0xc7, 0x83, 0xff, 0xf8, 0x60, | ||
0xc0, 0x00, 0x00, 0x00, 0x60, | ||
0xe0, 0x00, 0x00, 0x00, 0xe0, | ||
0xff, 0xff, 0xff, 0xff, 0xe0, | ||
0x7f, 0xff, 0xff, 0xff, 0xc0, | ||
}; | ||
|
||
const lv_img_dsc_t lpkblogo = { | ||
.header.cf = LV_IMG_CF_INDEXED_1BIT, | ||
.header.always_zero = 0, | ||
.header.reserved = 0, | ||
.header.w = 35, | ||
.header.h = 35, | ||
.data_size = 183, | ||
.data = lpkblogo_map, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
// Copyright 2022 Manna Harbour | ||
// https://github.com/manna-harbour/miryoku | ||
|
||
#include "lvgl.h" | ||
|
||
#ifndef LV_ATTRIBUTE_MEM_ALIGN | ||
#define LV_ATTRIBUTE_MEM_ALIGN | ||
#endif | ||
|
||
#ifndef LV_ATTRIBUTE_IMG_MIRYOKULOGO | ||
#define LV_ATTRIBUTE_IMG_MIRYOKULOGO | ||
#endif | ||
|
||
const LV_ATTRIBUTE_MEM_ALIGN LV_ATTRIBUTE_LARGE_CONST LV_ATTRIBUTE_IMG_MIRYOKULOGO uint8_t miryokulogo_map[] = { | ||
0x04, 0x02, 0x04, 0xff, /*Color of index 0*/ | ||
0xfc, 0xfe, 0xfc, 0xff, /*Color of index 1*/ | ||
|
||
0xff, 0xff, 0xff, 0xff, | ||
0x80, 0x00, 0x00, 0x01, | ||
0x80, 0x00, 0x00, 0x01, | ||
0x9f, 0xff, 0xff, 0xf9, | ||
0x9f, 0xff, 0xff, 0xf9, | ||
0x98, 0x01, 0x99, 0x99, | ||
0x98, 0x01, 0x99, 0x99, | ||
0x99, 0x99, 0x80, 0x19, | ||
0x99, 0x99, 0x80, 0x19, | ||
0x98, 0x01, 0xf9, 0xf9, | ||
0x98, 0x01, 0xf9, 0xf9, | ||
0x99, 0x99, 0x99, 0x99, | ||
0x99, 0x99, 0x99, 0x99, | ||
0x98, 0x01, 0x80, 0x19, | ||
0x98, 0x01, 0x80, 0x19, | ||
0x9f, 0x9f, 0xf9, 0xf9, | ||
0x9f, 0x9f, 0xf9, 0xf9, | ||
0x98, 0x01, 0x80, 0x19, | ||
0x98, 0x01, 0x80, 0x19, | ||
0x99, 0x99, 0x99, 0x99, | ||
0x99, 0x99, 0x99, 0x99, | ||
0x99, 0x81, 0x99, 0x99, | ||
0x99, 0x81, 0x99, 0x99, | ||
0x99, 0x9f, 0x99, 0x99, | ||
0x99, 0x9f, 0x99, 0x99, | ||
0x99, 0x80, 0x19, 0x99, | ||
0x99, 0x80, 0x19, 0x99, | ||
0x9f, 0xff, 0xff, 0xf9, | ||
0x9f, 0xff, 0xff, 0xf9, | ||
0x80, 0x00, 0x00, 0x01, | ||
0x80, 0x00, 0x00, 0x01, | ||
0xff, 0xff, 0xff, 0xff, | ||
}; | ||
|
||
const lv_img_dsc_t miryokulogo = { | ||
.header.always_zero = 0, | ||
.header.w = 32, | ||
.header.h = 32, | ||
.data_size = 136, | ||
.header.cf = LV_IMG_CF_INDEXED_1BIT, | ||
.data = miryokulogo_map, | ||
}; |
Oops, something went wrong.