mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-10-17 19:05:07 +00:00
- Implemented themes with LSS: material, material mono - Implemented grid-based navigation - Added new Launcher - Updated Appearance app to add theme configuration - Updated various apps to improve UX/UI - Added LVGL widgets: cards, badges, chips, icon buttons - Added support for round/rounded displays - Added the concept of insets to LVGL and implemented it in toolbar + statusbar - Terminal app now hides toolbar by default, but tapping the terminal toggles visibility - File browsing now opens the configured user-data location by default - Added missing licenses to subprojects - Updated README.md screenshots and intro text
41 lines
1001 B
C
41 lines
1001 B
C
// SPDX-License-Identifier: Apache-2.0
|
|
#pragma once
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
|
|
#include <tactility/device.h>
|
|
#include <tactility/drivers/display.h>
|
|
#include <tactility/drivers/gpio.h>
|
|
|
|
struct Jd9853Config {
|
|
// From display.yaml: a DisplayShapeType value and the corner radius for rounded displays
|
|
uint8_t shape;
|
|
uint16_t corner_radius;
|
|
uint16_t horizontal_resolution;
|
|
uint16_t vertical_resolution;
|
|
int32_t gap_x;
|
|
int32_t gap_y;
|
|
bool swap_xy;
|
|
bool mirror_x;
|
|
bool mirror_y;
|
|
bool invert_color;
|
|
bool bgr_order;
|
|
uint32_t pixel_clock_hz;
|
|
uint8_t transaction_queue_depth;
|
|
// Gamma curve preset index [0,3], sent via the MIPI DCS GAMSET (0x26) command at bring-up.
|
|
uint8_t gamma_curve;
|
|
struct GpioPinSpec pin_dc;
|
|
struct GpioPinSpec pin_reset;
|
|
// Optional reference to this display's backlight device, NULL if none.
|
|
struct Device* backlight;
|
|
};
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|