-
Notifications
You must be signed in to change notification settings - Fork 47
Conversation
The test does not work for me. Stack trace:
Edit: To be more clear, the display actually prints out the stack trace (awesome job!), but doesn't show a slideshow. |
Does the directory that you're pointing to have some images to show? In my example, I pointed to the current working directory-> "." |
No pictures in the pointed directory. |
The test needs some images in that directory :(. It's the same on the device too (I tried to replicate the wording of the runtime error) Sorry, I forgot to point that out! I'll edit the top comment right away |
Thanks for addressing the comment and updating the testing instructions! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is pretty tricky, great job on documenting everything and adding tests 👍
LGTM.
|
||
self.__lock.release() | ||
|
||
def configure(self, no_verif=False): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This method name is a bit confusing. Judging from the name configure
, I wouldn't expect it to also draw things.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, I'll look into changing it c:
PM'd you some photos that I used 😁 |
This line does a case sensitive check. Since the bitmaps I tried ended with .BMP it didn't find them. How is the behavior in this case on the device?
|
Could you send over some .BMP images? All of the bmp I could find were .bmp :( |
I tried .BMP on the actual device and it seems like it doesn't work either :O. In their library, they also just check for ".bmp". |
Thanks for confirming! |
Description:
Hi everyone! :)
New features:
_ClueSimpleTextDisplay.show_terminal()
now works! Since its original purpose was to reference to a general terminal built in the firmware, I put the new files inbase_circuitpython
. I also added code inprocess_user_code.py
that shows the default opening & closing print statements. This file also takes care of capturing print statements and sending them to the clue terminal.Bug fixes:
board.DISPLAY.show(group)
call. I initially thought that it was called to show the group, but actually, this is a command to "context-switch" to show a specific group. Only one group can be shown at once, andboard.DISPLAY.show(curr_group)
will change the group on the screen to curr_group. Any further modifications to the active group will be actively changed on the screen. If modifications are made to the group before callingboard.DISPLAY.show()
, all changes should be present whenboard.DISPLAY.show()
is called.group.py
now always starts with an all-black image every time draw() is called.File notes:
base_circuitpython/terminal_handler.py
: the custom-made terminal class that:base_circuitpython/tests/terminal_handler_test.py
: tests for terminal_handler.pyboard.py
: not new, but has major changes. It now keeps track of the active group. Groups will check with this active_group value before sending anything to the frontend.Type of change
Please delete options that are not relevant.
Testing:
I made a mega-test that goes as follows:
NOTE: this test needs some slideshow bmp photos in the current working directory!
This tests the terminal, screen refreshing, and group context switching. Try it out :')
Checklist:
npm run format
and passes the checks innpm run check