Update Watchy_Analog.ino

pull/8/head
SQFMI 2020-02-16 14:20:27 -05:00 committed by GitHub
parent d1e38bdffa
commit f8e5921afd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ void updateTime(bool reset)
void setHands(tmElements_t time){
//hour
float hour_radians = ((time.Hour % 12)/12.0)*2*M_PI; //radians
float hour_radians = (((time.Hour % 12)+(time.Minute/60.0))/12.0)*2*M_PI; //radians
int hour_x1 = sinf(hour_radians)*HOUR_HAND_LENGTH;
int hour_y1 = cosf(hour_radians)*HOUR_HAND_LENGTH;
fillRectAngle(ORIGIN_X, ORIGIN_Y, ORIGIN_X+hour_x1, ORIGIN_Y-hour_y1, HOUR_HAND_WIDTH, GxEPD_BLACK);