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

adafruit18fb: "green tab" version has extra random pixels on two edges #2

Closed
notro opened this issue Feb 19, 2013 · 5 comments
Closed

Comments

@notro
Copy link
Owner

notro commented Feb 19, 2013

According to the work of Kamal Mostafa, set_addr_win() has to be modified.
See: https://github.com/kamalmostafa/raspberrypi-linux/blob/rpi-3.2.27%2Bkamal-st7735fb/drivers/video/st7735fb/st7735fb.c

When I get the time, I will modify the driver by adding support for 2 devices so it can handle both versions.

@gitalicious
Copy link

Thanks. A quick test by hard-coding the offsets in fbtft_set_addr_win() appears to have worked for me.

write_cmd(par, FBTFT_CASET);
write_data(par, 0x00);
write_data(par, xs + 0x02);
write_data(par, 0x00);
write_data(par, xe + 0x02);
write_cmd(par, FBTFT_RASET);
write_data(par, 0x00);
write_data(par, ys + 0x01);
write_data(par, 0x00);
write_data(par, ye + 0x01);

@notro
Copy link
Owner Author

notro commented Feb 24, 2013

I have added support for the Green tab model: adafruit18greenfb.
Please report back if it works.

Diff: 6373b52

@gitalicious
Copy link

This is now working as far as I can tell... with no random pixels along the edge.

modprobe spidevices name=adafruit18greenfb

@notro
Copy link
Owner Author

notro commented Feb 25, 2013

Thanks for testing, I'll close this issue.

@sirdel
Copy link

sirdel commented Feb 5, 2017

Was working nicely up until I rotated by 90 deg :-
sudo modprobe fbtft_device name=adafruit18_green rotate=90
which causes the random pixels to appear.

Can be fixed by initialising without a rotation, removing the module and then inserting again with rotation :-
sudo modprobe fbtft_device name=adafruit18_green
sudo modprobe -r fbtft_device
sudo modprobe fbtft_device name=adafruit18_green rotate=90

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

No branches or pull requests

3 participants