本帖最后由 零知实验室-roc 于 2018-8-3 20:05 编辑
对于ILI9341的240x320屏幕,零知开源平台已经可以支持该显示屏的常用操作了,一个示例如下:
[mw_shl_code=cpp,true]/**
* 文件: ili9341-并口显示.ino by 零知实验室(www.lingzhilab.com)
* -^^- 零知开源,让电子制作变得更简单! -^^-
* 时间: 2018/08/02 17:55
* 说明:
**/
#include "ili9341_parallel.h"
//参数依次表示引脚:rs_pin, wr_pin, rd_pin, cs_pin, rst_pin, d0, d1, d2, d3, d4, d5, d6, d7
ili9341_parallel_class display(15,16,17,18,19,0,1,2,3,4,5,6,7);
// the setup routine runs once when you press reset:
void setup() {
// put your setup code here, to run once:
display.begin();
//用颜色清屏
display.clear(BLACK);
//画实心矩形
display.drawBox(0,10,80,60,BLUE);//blue
//画线
display.drawLine(0,80, 100,80, RED);
//画圆
display.drawCircle(20,120,20,RED