Skip to content

Conversation

RetiredWizard
Copy link
Contributor

@RetiredWizard RetiredWizard commented Aug 10, 2025

This PR updates the PyPaint Learn Guide program files (https://learn.adafruit.com/pypaint/overview) to allow the program to run on the Fruit Jam.

I have to thank @jedgarpark for the Larsio_Paint_Music program, as I lifted most of the usb mouse code from that program to be used here.

I don't think any of the code changes I made will impact the PyPortal, PyBadge or PyGamer (the boards the learn guide indicates it supports) however the changes probably have a memory impact and I don't have any of the devices in question to test. That being said, given the memory increase in CircuitPython since those boards were released, I wonder if the non-modified learn code still fits in RAM.

In addition to adding the display and mouse support for the Fruit Jam, I also added an area fill function, using the right mouse button. If you try out the fill, you can make it run much faster by clicking to the upper left of the area you want to fill.

@RetiredWizard RetiredWizard changed the title Update learn guide files for use with Fruit Jam OS Update PyPaint learn guide files for use with Fruit Jam OS Aug 10, 2025
Copy link
Collaborator

@FoamyGuy FoamyGuy left a comment

Choose a reason for hiding this comment

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

I think it would be good to make a new version of this script instead of updating the existing one. Can you move the new one into a new folder inside of https://github.com/adafruit/Adafruit_Learning_System_Guides/tree/main/Fruit_Jam and then revert the original one back please?

That way those other devices don't end up with code involving mice that could be confusing for people working through the guides on the original hardware that it supported.

@RetiredWizard
Copy link
Contributor Author

Can you move the new one into a new folder

Sure 😁. Let me know if this is what you were thinking or if there are any other suggestions....

@RetiredWizard RetiredWizard requested a review from FoamyGuy August 15, 2025 22:19
Copy link
Collaborator

@FoamyGuy FoamyGuy left a comment

Choose a reason for hiding this comment

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

Thanks for moving this. One request to remove the touchscreen handling from this version, and question / suggestion for mouse handling.

Copy link
Collaborator

@FoamyGuy FoamyGuy left a comment

Choose a reason for hiding this comment

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

Looks good to me, tested successfully in fruit jam os with same mouse as before and all is good now.

Thanks for adapting this project and working through everything!

@FoamyGuy FoamyGuy merged commit a48db8f into adafruit:main Aug 20, 2025
4 checks passed
@RetiredWizard RetiredWizard deleted the fruitjampypaint branch August 20, 2025 20:43
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