diff --git a/README.md b/README.md index e614009..e3619a1 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ # Civic-Segments -PT2 watchface clone of the beautiful 8th gen Honda Civic digital speedometer segmented display. \ No newline at end of file +PT2/PR2 watchface clone of the beautiful 8th gen Honda Civic digital speedometer segmented display. diff --git a/package.json b/package.json index 73c6cbd..7a645a4 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,9 @@ "sdkVersion": "3", "enableMultiJS": true, "targetPlatforms": [ - "emery" + "chalk", + "emery", + "gabbro" ], "watchapp": { "watchface": true diff --git a/src/c/main.c b/src/c/main.c index fa18f3b..1e7c589 100644 --- a/src/c/main.c +++ b/src/c/main.c @@ -7,7 +7,13 @@ static BitmapLayer *s_time_mg_layers[4]; static BitmapLayer *s_time_fg_layers[4]; 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; +#if PBL_DISPLAY_HEIGHT == 260 +static const GRect s_time_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)}; +#elif PBL_DISPLAY_HEIGHT == 180 +static const GRect s_time_grects[4] = {GRect(s_x_l, -22, 69, 110), GRect(s_x_r, -22, 69, 110), GRect(s_x_l, 92, 69, 110), GRect(s_x_r, 92, 69, 110)}; +#else static const GRect s_time_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)}; +#endif // persist statics&defines static GColor8 s_led_color;