Skip to content

Commit 221720d

Browse files
authored
Merge pull request #2 from k-okada/eye_display
set rotation within void EyeManager::load_eye_images()
2 parents 3f93cff + ecc63e7 commit 221720d

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-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)) {

eye_display/include/ros_lib.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ void setup_asset(EyeManager& eye)
5757
nh.spinOnce();
5858
delay(1000);
5959
}
60+
delay(500); // wait 0.5 sec before reading asset
61+
nh.loginfo("Setup eye asset");
6062

6163
bool mode_right;
6264
int direction = 1;

0 commit comments

Comments
 (0)