Skip to content

Commit

Permalink
Merge pull request #16 from sqfmi/1.2.0
Browse files Browse the repository at this point in the history
fixed hard coded time in Tetris
  • Loading branch information
sqfmi authored Jan 18, 2021
2 parents 2be1622 + 94f3c19 commit 80873c8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions examples/WatchFaces/Tetris/Watchy_Tetris.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ void WatchyTetris::drawWatchFace(){
display.drawBitmap(0, 0, tetrisbg, DISPLAY_WIDTH, DISPLAY_HEIGHT, GxEPD_BLACK);

//Hour
display.drawBitmap(25, 20, tetris_nums[23/10], 40, 60, GxEPD_BLACK); //first digit
display.drawBitmap(75, 20, tetris_nums[23%10], 40, 60, GxEPD_BLACK); //second digit
display.drawBitmap(25, 20, tetris_nums[currentTime.Hour/10], 40, 60, GxEPD_BLACK); //first digit
display.drawBitmap(75, 20, tetris_nums[currentTime.Hour%10], 40, 60, GxEPD_BLACK); //second digit

//Minute
display.drawBitmap(25, 110, tetris_nums[45/10], 40, 60, GxEPD_BLACK); //first digit
display.drawBitmap(75, 110, tetris_nums[45%10], 40, 60, GxEPD_BLACK); //second digit
display.drawBitmap(25, 110, tetris_nums[currentTime.Minute/10], 40, 60, GxEPD_BLACK); //first digit
display.drawBitmap(75, 110, tetris_nums[currentTime.Minute%10], 40, 60, GxEPD_BLACK); //second digit
}
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=Watchy
version=1.1.8
version=1.2.0
author=SQFMI
maintainer=SQFMI
sentence=Watchy - An Open Source E-Paper Watch by SQFMI
Expand Down

0 comments on commit 80873c8

Please sign in to comment.