mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-10-10 08:03:04 -04:00
On large touchscreens the software keyboard can now run in "point mode". Keys are laid out finger-sized and tapped directly instead of being navigated with a cursor. Targets opt in with HAVE_KBD_POINT_MODE. Key size is derived from LCD_DPI so a key is about 5mm across whatever the panel density, falling back to a fixed size where DPI is unknown. A phone-style default layout in the UI font, across three flip pages of eight lines. Page two is page one shifted (i.e caps). Page three completes Latin-1 and adds additional accented letters common to the other European locales. Space is drawn as an icon, since the UI font has no glyph for it. Change-Id: Ibe2e305b3c22b1f9152358cf3864b9445b67b463 Co-Author: Claude Opus 4.8
95 lines
2.2 KiB
C
95 lines
2.2 KiB
C
/*
|
|
* This config file is for the HiBy R1
|
|
*/
|
|
|
|
/* For Rolo and boot loader */
|
|
#define MODEL_NUMBER 124
|
|
#define MODEL_NAME "HIBY R1"
|
|
|
|
#define PIVOT_ROOT "/data/mnt/sd_0"
|
|
#define MULTIDRIVE_DIR "/data/mnt/usb"
|
|
|
|
/* LCD dimensions */
|
|
/* sqrt(width^2 + height^2) / 4 = 233 */
|
|
#define LCD_WIDTH 480
|
|
#define LCD_HEIGHT 800
|
|
#define LCD_DPI 233
|
|
|
|
#define HAVE_LCD_SLEEP
|
|
#define LCD_SLEEP_TIMEOUT (2*HZ)
|
|
|
|
#define LCD_DEPTH 16 /* 65536 colours */
|
|
#define LCD_PIXELFORMAT RGB565 /* rgb565 */
|
|
|
|
#define CPU_FREQ 1008000000
|
|
|
|
#ifndef SIMULATOR
|
|
#define HAVE_GENERAL_PURPOSE_LED
|
|
#endif
|
|
|
|
/* define this if you have access to the quickscreen */
|
|
#define HAVE_QUICKSCREEN
|
|
#define HAVE_HOTKEY
|
|
|
|
#define HAVE_HEADPHONE_DETECTION
|
|
#define NO_BUTTON_LR
|
|
|
|
#ifndef BOOTLOADER
|
|
#define HAVE_BUTTON_DATA
|
|
#define HAVE_TOUCHSCREEN
|
|
/* Finger-sized keys, tapped directly, instead of a navigated cursor */
|
|
#define HAVE_KBD_POINT_MODE
|
|
#endif
|
|
|
|
#ifndef CONFIG_BACKLIGHT_FADING
|
|
#undef CONFIG_BACKLIGHT_FADING
|
|
#endif
|
|
|
|
/* KeyPad configuration for plugins */
|
|
#define CONFIG_KEYPAD HIBY_R3PROII_PAD
|
|
|
|
/* define this if the target has volume keys which can be used in the lists */
|
|
#define HAVE_VOLUME_IN_LIST
|
|
|
|
/* Battery */
|
|
#define BATTERY_TYPES_COUNT 1
|
|
|
|
/* Audio codec */
|
|
#define HAVE_HIBY_LINUX_CODEC
|
|
|
|
/* We don't have hardware controls */
|
|
#define HAVE_SW_TONE_CONTROLS
|
|
|
|
/* HW codec is flexible */
|
|
#define HW_SAMPR_CAPS SAMPR_CAP_ALL_192
|
|
|
|
/* Battery */
|
|
#define CONFIG_BATTERY_MEASURE (VOLTAGE_MEASURE|PERCENTAGE_MEASURE|TIME_MEASURE)
|
|
|
|
#define BATTERY_CAPACITY_DEFAULT 100 /* default battery capacity */
|
|
#define BATTERY_CAPACITY_MIN 100 /* min. capacity selectable */
|
|
#define BATTERY_CAPACITY_MAX 100 /* max. capacity selectable */
|
|
#define BATTERY_CAPACITY_INC 0 /* capacity increment */
|
|
|
|
/* Special backlight paths */
|
|
#define BACKLIGHT_HIBY
|
|
|
|
#define MIN_BRIGHTNESS_SETTING 1
|
|
#define MAX_BRIGHTNESS_SETTING 100
|
|
#define BRIGHTNESS_STEP 5
|
|
#define DEFAULT_BRIGHTNESS_SETTING 100
|
|
|
|
/* ROLO */
|
|
#define BOOTFILE_EXT "r1"
|
|
#define BOOTFILE "rockbox." BOOTFILE_EXT
|
|
#define BOOTDIR "/.rockbox"
|
|
|
|
/* USB */
|
|
#define HAVE_USB_ADB
|
|
#define HAVE_HOST_USB_AUDIO
|
|
#define HAVE_USB_POWER
|
|
#define USB_VID_STR "32BB"
|
|
#define USB_PID_STR "0101"
|
|
|
|
/* Generic HiBy stuff */
|
|
#include "hibylinux.h"
|