Begin Gabbro port
This commit is contained in:
+2
-1
@@ -25,7 +25,8 @@
|
|||||||
"sdkVersion": "3",
|
"sdkVersion": "3",
|
||||||
"enableMultiJS": true,
|
"enableMultiJS": true,
|
||||||
"targetPlatforms": [
|
"targetPlatforms": [
|
||||||
"emery"
|
"emery",
|
||||||
|
"gabbro"
|
||||||
],
|
],
|
||||||
"watchapp": {
|
"watchapp": {
|
||||||
"watchface": true
|
"watchface": true
|
||||||
|
|||||||
+9
-1
@@ -17,7 +17,11 @@ static Layer *s_fuel_mg_layer;
|
|||||||
static Layer *s_fuel_layer;
|
static Layer *s_fuel_layer;
|
||||||
static const uint8_t s_x_r = (PBL_DISPLAY_WIDTH / 2) + 2;
|
static const uint8_t s_x_r = (PBL_DISPLAY_WIDTH / 2) + 2;
|
||||||
static const uint8_t s_x_l = (s_x_r - 2 * (69 / 2)) - 5;
|
static const uint8_t s_x_l = (s_x_r - 2 * (69 / 2)) - 5;
|
||||||
static const GRect s_digit_grects[4] = {GRect(s_x_l, 2, 69, 110), GRect(s_x_r, 2, 69, 110), GRect(s_x_l, 116, 69, 110), GRect(s_x_r, 116, 69, 110)}; // emery
|
#if PBL_DISPLAY_WIDTH == 200
|
||||||
|
static const GRect s_digit_grects[4] = {GRect(s_x_l, 2, 69, 110), GRect(s_x_r, 2, 69, 110), GRect(s_x_l, 116, 69, 110), GRect(s_x_r, 116, 69, 110)};
|
||||||
|
#else
|
||||||
|
static const GRect s_digit_grects[4] = {GRect(s_x_l, 18, 69, 110), GRect(s_x_r, 18, 69, 110), GRect(s_x_l, 132, 69, 110), GRect(s_x_r, 132, 69, 110)};
|
||||||
|
#endif
|
||||||
static const uint8_t s_temp_guage_x_pos = 6;
|
static const uint8_t s_temp_guage_x_pos = 6;
|
||||||
static const uint16_t s_fuel_guage_x_pos = PBL_DISPLAY_WIDTH - 23;
|
static const uint16_t s_fuel_guage_x_pos = PBL_DISPLAY_WIDTH - 23;
|
||||||
|
|
||||||
@@ -625,7 +629,11 @@ static void init() {
|
|||||||
if (persist_exists(STORAGE_KEY_SETTINGS)) {
|
if (persist_exists(STORAGE_KEY_SETTINGS)) {
|
||||||
persist_read_data(STORAGE_KEY_SETTINGS, &settings, sizeof(settings));
|
persist_read_data(STORAGE_KEY_SETTINGS, &settings, sizeof(settings));
|
||||||
} else {
|
} else {
|
||||||
|
#if PBL_RECT
|
||||||
settings.EnablePeek = true;
|
settings.EnablePeek = true;
|
||||||
|
#else
|
||||||
|
settings.EnablePeek = false;
|
||||||
|
#endif
|
||||||
settings.TrackBTStatus = false;
|
settings.TrackBTStatus = false;
|
||||||
settings.ShowDigitsMG = false;
|
settings.ShowDigitsMG = false;
|
||||||
settings.UseCustomLED = false;
|
settings.UseCustomLED = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user