|
发表于 2010-8-12 18:35:24
|
显示全部楼层
Well, all questions are gone after the first pixel I've painted.
Here is what I have by this time - initialization and fill with solid color. I think it's good starting point, `cause if you can draw at least one definite pixel - you can do all the rest :) Maybe this will help someone.
functions to use in other modules:
void TFTInit(void); //Init screen. 8-bit mode, 3 transfers per pixel.
void TFTClearScreen(unsigned char r, unsigned char g, unsigned char b); //Fill screen with solid color. Color is (r,g,b) 6 bits per component.
ourdev_574617.zip(文件大小:1K) (原文件名:pack.zip)
Compiler: avr-gcc
MCU: mega168
Fck: i've tried 8 MHz and 20 MHz, Both successful, but second quite faster :) |
|