Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update display_interface.py #108

Closed
wants to merge 1 commit into from

Conversation

lbaitemple
Copy link
Contributor

self.disp.clear() need to be removed since clear function does not work

add import PIL.Image for bug fix

self.disp.clear() need to be removed since clear function does not work

add import PIL.Image for bug fix
@@ -18,6 +18,7 @@
# @Author : Yunlong Feng

import PIL
import PIL.Image
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

from syntax, I don't understand why we need to import this.

since we import PIL already in line 20, it shall be ok as we do in line 42

image = PIL.Image.fromarray(cv2.cvtColor(cv_img, cv2.COLOR_BGR2RGB))

@@ -35,7 +36,6 @@ def __init__(self):
self.get_logger().info("Creating LCD hardware interface")
self.disp = ST7789()
self.disp.begin()
self.disp.clear()
Copy link
Contributor

@CullenSUN CullenSUN Oct 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you have a reference url saying it's not working

@lbaitemple lbaitemple closed this Oct 29, 2024
@lbaitemple lbaitemple deleted the patch-2 branch October 29, 2024 22:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants