fixes for my green-tab adafruit ST7735R
This commit is contained in:
parent
1ea25ab9d3
commit
c423817334
3 changed files with 9 additions and 2 deletions
4
.env.ps1
Normal file
4
.env.ps1
Normal file
|
@ -0,0 +1,4 @@
|
|||
$repo_dir="$(pwd)".replace("`\", "/")
|
||||
$env:PROJ_PATH="$repo_dir"
|
||||
$env:IDF_PATH="$repo_dir/lib/esp-idf"
|
||||
. "$($env:IDF_PATH)/export.ps1"
|
|
@ -40,8 +40,8 @@
|
|||
[[maybe_unused]] static const char* kTag = "DISPLAY";
|
||||
|
||||
// TODO(jacqueline): Encode width and height variations in the init data.
|
||||
static const uint8_t kDisplayHeight = 128 + 2;
|
||||
static const uint8_t kDisplayWidth = 160 + 1;
|
||||
static const uint8_t kDisplayHeight = 128;
|
||||
static const uint8_t kDisplayWidth = 160;
|
||||
static const uint8_t kTransactionQueueSize = 2;
|
||||
|
||||
static const gpio_num_t kDisplayDr = GPIO_NUM_33;
|
||||
|
|
|
@ -35,6 +35,9 @@ Screen::Screen()
|
|||
lv_obj_set_style_bg_opa(modal_content_, LV_OPA_TRANSP, 0);
|
||||
lv_obj_set_style_bg_color(modal_content_, lv_color_black(), 0);
|
||||
|
||||
lv_obj_set_scrollbar_mode(root_, LV_SCROLLBAR_MODE_OFF);
|
||||
lv_obj_set_scrollbar_mode(content_, LV_SCROLLBAR_MODE_OFF);
|
||||
|
||||
// Disable wrapping by default, since it's confusing and generally makes it
|
||||
// harder to navigate quickly.
|
||||
lv_group_set_wrap(group_, false);
|
||||
|
|
Loading…
Add table
Reference in a new issue