Update factory
This commit is contained in:
@@ -99,6 +99,9 @@ lv_indev_t *kb_indev = NULL;
|
|||||||
lv_indev_t *mouse_indev = NULL;
|
lv_indev_t *mouse_indev = NULL;
|
||||||
lv_indev_t *touch_indev = NULL;
|
lv_indev_t *touch_indev = NULL;
|
||||||
uint32_t gps_start_ms = 0;
|
uint32_t gps_start_ms = 0;
|
||||||
|
// Trackball sensitivity
|
||||||
|
// If the trackball is not sensitive enough or too sensitive, you can adjust this value.
|
||||||
|
const uint16_t trackball_sensitivity = 24;
|
||||||
|
|
||||||
LV_IMG_DECLARE(image_emoji);
|
LV_IMG_DECLARE(image_emoji);
|
||||||
|
|
||||||
@@ -1032,8 +1035,6 @@ void setup()
|
|||||||
lv_obj_set_scrollbar_mode(main_count, LV_SCROLLBAR_MODE_OFF);
|
lv_obj_set_scrollbar_mode(main_count, LV_SCROLLBAR_MODE_OFF);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
setupWiFi();
|
|
||||||
|
|
||||||
bool foundGPS = false;
|
bool foundGPS = false;
|
||||||
foundGPS = setupGPS();
|
foundGPS = setupGPS();
|
||||||
if (!foundGPS) {
|
if (!foundGPS) {
|
||||||
@@ -1065,6 +1066,8 @@ void setup()
|
|||||||
|
|
||||||
setupUI();
|
setupUI();
|
||||||
|
|
||||||
|
setupWiFi();
|
||||||
|
|
||||||
xTaskCreate(taskPlaySong, "play", 1024 * 4, NULL, 10, &playHandle);
|
xTaskCreate(taskPlaySong, "play", 1024 * 4, NULL, 10, &playHandle);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1137,7 +1140,7 @@ static void mouse_read(lv_indev_drv_t *indev, lv_indev_data_t *data)
|
|||||||
BOARD_BOOT_PIN
|
BOARD_BOOT_PIN
|
||||||
};
|
};
|
||||||
static bool last_dir[5];
|
static bool last_dir[5];
|
||||||
uint8_t pos = 10;
|
uint8_t pos = trackball_sensitivity;
|
||||||
for (int i = 0; i < 5; i++) {
|
for (int i = 0; i < 5; i++) {
|
||||||
bool dir = digitalRead(dir_pins[i]);
|
bool dir = digitalRead(dir_pins[i]);
|
||||||
if (dir != last_dir[i]) {
|
if (dir != last_dir[i]) {
|
||||||
|
|||||||
@@ -79,9 +79,14 @@
|
|||||||
#define RADIO_CR 6
|
#define RADIO_CR 6
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef JAPAN_MIC
|
||||||
|
#define RADIO_TX_POWER 7
|
||||||
|
#else
|
||||||
#ifndef RADIO_TX_POWER
|
#ifndef RADIO_TX_POWER
|
||||||
#define RADIO_TX_POWER 22
|
#define RADIO_TX_POWER 22
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#define DEFAULT_OPA 100
|
#define DEFAULT_OPA 100
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user