Yes!! The pic18f45k20 is a 1.8v to 3.8v device... If you need 5.5v then opt for the pic18f45k22..
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
obviously I cant put this on a breaboardso I guess I am going to look for a connection socket for this and solder it to a perfboard..
hi KR.
That is a standard 0.1inch connector, you can buy sockets and pins for that pitch.
Use a small piece of perf board to mount the socket, then insert pins in the perf board so that they match your bread board.
You can then insert the display in the socket and the perf board into your bread board.
For the back light it depends upon the internal circuitry of the display, it may not accept DC control, you try it.
If it must be PWM, a simple 555 timer IC can be wired to give PWM
E
I am reading very quickly about the LM555, can this be used with 3.3V (which is the voltage I am going to be using)??
I didn't think you would select a device that has only a 16bit interface I chose one that I could configure...
There are several screens that are SPI ( that would be quick enough )..
hi KR.
That is a standard 0.1inch connector, you can buy sockets and pins for that pitch.
Use a small piece of perf board to mount the socket, then insert pins in the perf board so that they match your bread board.
You can then insert the display in the socket and the perf board into your bread board.
E
so when I tried to solder the pins from the side that had no metal, it was impossible. I couldn't do it.
for(index = 0; index < MAX_X * MAX_Y; index++)
{
LCD_WriteData(Color);
}
for(x_index = 0; x_index < MAX_X; x_index++)
{
for(y_index = 0; y_index < MAX_Y; y_index++)
{
LCD_WriteData(Color);
}
}
Have you got Bresenham's line algorithm code??? Do a search... There are may ways to optimize line drawing..although clearing the screen is faster than drawing a full rectangle...
I agree with Ian, you should get faster full screen.Update. I solve the problem:
View attachment 95271
Theoretically it is very strange though
This code does not work:
Code:for(index = 0; index < MAX_X * MAX_Y; index++) { LCD_WriteData(Color); }
But this code does the trick
Code:for(x_index = 0; x_index < MAX_X; x_index++) { for(y_index = 0; y_index < MAX_Y; y_index++) { LCD_WriteData(Color); } }
Now, I dont know if I am tired, but they seem equivalent to me....
Well now, to write more libraries and speed up the micro (cause right now it is sloooow.. although clearing the screen is faster than drawing a full rectangle...
for(index = 0; index < MAX_X * MAX_Y; index++)
{
LCD_WriteData(Color);
}
unsigned long index;
for(index = 0; index <( unsigned long)MAX_X *( unsigned long) MAX_Y; index++)
unsigned long index;
for(index =( unsigned long)MAX_X *( unsigned long) MAX_Y; index >0; index--)
uint32_t product= (uint32_t)MAX_X*MAX_Y;
END = (long)XMAX*YMAX;
for(i = 0; i<END;i++) // <--- no calculation
LCD_WriteData(color);
The PENIRQ output is disabled ... during the measurement cycle...
in order to re-enable the pen interrupt output function under these circumstances a control byte needs to be written toi the XPT2046 with PD0=0. If the last control byte written to the XPT2046 contains PD0=0 the pen interrupt output function is enabled at the end of the conversion.