I am trying to write code for the Sharp display using the SPI library and I don't understand why the lines are getting displayed all over the place
I tried adding delays in a couple of places and deleted them again, because I thought maybe the commands didn't register
It seems sending through line numbers 0, 1, 2 doesn't do anything. Then line number 3 is almost in the middle and the next line on the bottom and then things are all over the place. I also took a small video, the video should be available in about 15 min (http://youtu.be/UZvSrjDENm8)
It didn't want to work on the Teensy 3 when I started. I tested it on my Arduino and it worked perfectly then I just tried it now on the Teensy 3 again. I probably had the pins wrong. Thank you
I see after testdrawchar() there is a refresh and then nothing for 2 seconds while the delay is waiting. Shouldn't the screen be refreshed at least every 1 second. What will happen if you let it go for longer as in the example code?
The data sheet for the display says that the display should be refreshed at least every couple of hours.
) A still image should be displayed less than two hours, if it is necessary to display still image longer than two hour,
display image data must be refreshed in order to avoid sticking image on LCD panel.
adafruit_support_bill wrote:The data sheet for the display says that the display should be refreshed at least every couple of hours.
) A still image should be displayed less than two hours, if it is necessary to display still image longer than two hour,
display image data must be refreshed in order to avoid sticking image on LCD panel.
the data sheet is very poorly written by someone
who does not seem to be a native speaker of english.
This polarity-inversion flag enables a periodic polarity inversion
on the panel to keep a latent charge from building up within the
Liquid Crystal cells.
on page 12:
as long as the panel has power and VCOM is toggled periodically.
Sharp recommends keeping maximum time between VCOM toggles to no more
than one second, and refreshing data every two hours, to prevent stuck
pixels.
and on page 13:
In either implementation, the positive and negative inversion
intervals should be kept as equal as possible, and intervals should
not exceed one second.
my interpretation is that the data (1152 bytes) should be resent
at least every few hours, but that the display polarity needs to
be inverted at least one per second.
adafruit_support_bill wrote:The data sheet for the display says that the display should be refreshed at least every couple of hours.
) A still image should be displayed less than two hours, if it is necessary to display still image longer than two hour,
display image data must be refreshed in order to avoid sticking image on LCD panel.
the data sheet is very poorly written by someone
who does not seem to be a native speaker of english.
This polarity-inversion flag enables a periodic polarity inversion
on the panel to keep a latent charge from building up within the
Liquid Crystal cells.
on page 12:
as long as the panel has power and VCOM is toggled periodically.
Sharp recommends keeping maximum time between VCOM toggles to no more
than one second, and refreshing data every two hours, to prevent stuck
pixels.
and on page 13:
In either implementation, the positive and negative inversion
intervals should be kept as equal as possible, and intervals should
not exceed one second.
my interpretation is that the data (1152 bytes) should be resent
at least every few hours, but that the display polarity needs to
be inverted at least one per second.
Were you able to get the Sharp Memory LCD library working on the Teensy 3.1 board?