Hopefully someone here can help me out a little. I have been trying to get a gameboy printer to work with pokitto but I have had only limited results.
From what I can tell, I am doing everything right, but I’m getting into a situation where the printer malfunctions and refuses to print any more than a 16x16 block (the printer is being sent a full ‘line’ of 64x16 data).
If anyone has done this with arduino perhaps, maybe they can have a look at my code to see where my mistake is?
The printer will initiate ok, it accepts 240 bytes of image data and replied that the buffer is full. I send the print command, the printer accepts it, starts printing. However it only prints the first 32 bytes then returns multiple error and stops.
I have it hooked up to an analyser, the data is sending ok. Sending in smaller chunks won’t help much as the print command won’t work until the buffer is full.
I think I’ll have to set up an Arduino version and test some of the existing projects to see if I’m missing anything. - I don’t have a real Gameboy to test with.
Well after getting the same issues with arduino, it looked at my power supply. Turns out I was getting a genuine low battery warning, I thought my 9v power supply would be fine, turns out it wasn’t.
The code seems ok.
[edit] For anyone wondering why I didn’t suspect the power supply at first, there is an easter-egg on the gameboy printer that when you hold the feed button when powering on, it prints ‘Hello’, this was working fine so I assumed the printer had enough power to work properly.
Is there still an issue with getPixel? I’m reading pixels and attempting to convert them to gameboy format, but each 8x1 line seems to be half back to front.
So I have to convert the pixels from
1,2,3,4,5,6,7,8
to
4,3,2,1,8,7,6,5