Skip to content

Commit 05cb774

Browse files
committed
set rotation within void EyeManager::load_eye_images(), closes sktometometo/eye-display#27 (comment)
1 parent 3f93cff commit 05cb774

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

eye_display/include/eye.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,8 @@ void EyeManager::load_eye_images()
186186
const char *path_jpg_reflex = current_eye_asset.path_reflex.c_str();
187187
const char *path_jpg_upperlid = current_eye_asset.path_upperlid.c_str();
188188

189+
lcd.setRotation(current_eye_asset.direction);
190+
189191
if (path_jpg_outline != NULL) {
190192
sprite_outline.fillScreen(TFT_WHITE);
191193
if (not draw_image_file(sprite_outline, path_jpg_outline)) {

0 commit comments

Comments
 (0)