Description: 在这里将主要针对单色的点阵液晶屏(LCD)进行介绍,而且是针对 LCD 模块本身就集成有驱动控制 IC 的,以及显存;那些字符型以及段码型的 LCD不在介绍之例,但也可以在一定程序上参考本书的驱动编程方法来编写这些 LCD的驱动程序。 此外, 也有些小规模的 (一般是 3.5 寸以下)彩色 TFT LCD 也有内置驱动控制器以及显存的,也可参考这里的介绍来编写它们的驱动程序。
-Here will be focused on monochrome dot-matrix LCD screen (LCD) were introduced, but also for the LCD module itself control IC with integrated drivers, as well as memory that character and pattern of the LCD segment is not in the case of introduction, However, certain procedures can also be driven programming reference book to write the LCD driver. In addition, some small-scale (typically 3.5 inches or less) have built-in color TFT LCD driver controller and memory, and also can be found here in the introduction to the preparation of their drivers. Platform: |
Size: 1173504 |
Author:han |
Hits:
Description: 以总线方式操作控制TFT彩色液晶,模拟SPI控制触摸屏,将按下的点显示在TFT 2.4寸液晶上。因此,可以用此程序来在屏上画图案。由于触摸屏在采集时每次采集的值都有误差,这也是使用触摸屏较为麻烦的地方,通过查资料,发现
目前处理此问题主要通过软件算法实现,并且功能稳定的往往算法想法复杂,本程序采用简单的算法来
实现:当某一点按下后,在保持不放开的前提下,采集7个数据,并对数据进行升序排列,取中间3个数据
作为有效数据,并将平均值作为按下后的X,Y坐标。-Bus operation control TFT color LCD, to simulate SPI control touch screen display will press the point on a TFT 2.4 inch LCD. Therefore, it is possible to use this procedure to drawn on the screen pattern. Information search, found mainly achieved through software algorithms to deal with this problem, and stable function often complex algorithm ideas, the program uses the touch screen in each acquisition when the acquisition value has error, which is using the touch screen is a bit trickier, simple algorithm: some point after pressing the premise remain release, collecting seven data, and the data in ascending order, take the middle three data as valid data, and the average value as Next after the X, Y coordinates. Platform: |
Size: 7168 |
Author:吴剑英 |
Hits: