Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adding the kitty printer progress here along with notes:
added a
refresh()
function to pycamera that only callsesp_camera_fb_return(frame)
so that the gameboy filter can refresh on the display.the gameboy filter is pulled from the CircuitPython module: https://github.com/adafruit/circuitpython/blob/main/shared-module/bitmaptools/__init__.c#L774C1-L862C2
i tried two different methods for printing to the cat printer:
drawBitmap
anddrawPixel
.drawBitmap
is commented out, but wanted to leave for prosperitythe behavior i was experiencing was that 9/10 times the printer would connect properly, it would receive the buffer to print, would start printing but would stop before completing the task. the memento would think it was still printing and essentially be frozen, requiring a reset. the percentage that printed was different every time. 1/10 times the print would finish properly and the memento would go back to previewing with the filter. if a 2nd print was attempted though, the partial print behavior would occur.
my theory is that the pictures are overwhelming the printer buffer or that a command is missing to clear memory on the printer. i say this because if you don't call
cat.fillScreen(1)
to fill the buffer with white, you will get a ghost image of what you previously sent to the buffer. also if i send an empty white buffer it "prints" without the partial print issues.i tried experimenting with the initial buffer size for the printer but that did not change things. based on what i've read about the printer it expects the
[48 * 400]
sized buffer so i've left that here.i did try the Thermal Printer library but it has errors with IDF5. compiled with release BSP and it sees the printer but does not connect.