Make the hours hand smaller

This commit is contained in:
2023-01-06 14:08:40 +01:00
parent 97b8b0be27
commit 3d3ec745f4

View File

@@ -77,8 +77,8 @@ void Clock_Draw_Hands(uint16_t xCenter, uint16_t yCenter, double radius,
angle = hours * 30 + ((minutes / 12) * 6); angle = hours * 30 + ((minutes / 12) * 6);
angle = angle * M_PI / 180; angle = angle * M_PI / 180;
x2 = xCenter + (sin(angle) * (radius / 2)); x2 = xCenter + (sin(angle) * (radius / 4));
y2 = yCenter - (cos(angle) * (radius / 2)); y2 = yCenter - (cos(angle) * (radius / 4));
BSP_LCD_DrawLine(xCenter, yCenter, x2, y2); BSP_LCD_DrawLine(xCenter, yCenter, x2, y2);
} }