'
软件里可以设定显示屏型号就更好了,
'
单片机我没做过,屏幕是我想象的。
这个增加了对 1602的支持。
程序里面很多参数都可以调。
private int charwidth = 5; // 字符水平点阵数
private int charheight = 7; // 字符垂直点阵数
private int dotwidth = 3; // 点宽度
private int dotheight = 3; // 点高度
private int dothspacewidth = 1; // 水平点阵间距
private int dotvspacewidth = 1; // 垂直点阵间距
private int charspacewidth = 4; // 字间距
private int linespacewidth = 6; // 行间距
public color dotbcolor = color.fromargb(0x00, 0x00, 0x00); // 亮点颜色
public color dotwcolor = color.fromargb(0, 197, 0); // 暗点颜色
public color backgroundcolor = color.fromargb(0, 205, 0); // 背景色
private int leftmargin = 15; // 边距
private int rightmargin = 15;
private int topmargin = 15;
private int bottommargin = 15;
public int sclength = 8; // 屏幕水平字数
public int sclines = 2; // 行数
本想做个能随意修改的,现在先对付用吧。