极客工坊

 找回密码
 注册

QQ登录

只需一步,快速开始

12
返回列表 发新帖
楼主: freevector

Arduino+LCD1602自定义新字体

[复制链接]
发表于 2013-4-15 10:59:00 | 显示全部楼层
楼主,我想问一下你的那个头文件的下载在哪里啊
#include "FONT.h"
#include "LCD4Bit_mod.h"
回复 支持 反对

使用道具 举报

发表于 2013-4-27 23:13:40 | 显示全部楼层
本帖最后由 tcbyxo 于 2013-4-27 23:23 编辑

楼主,我想问一下你的那个头文件的下载在哪里啊
"LCD4Bit_mod.h"

void LCD4Bit_mod:: LCD_SET_XY( int x, int y )  //the command of setting Cursor
void LCD4Bit_mod:: PrintSelfDefine(int x,int num)// the program of displaying self-define char
void LCD4Bit_mod::printString(int x,char msg[])

這三句時常顯示 member function declared in class LCD4Bit_mod

LCD4Bit_mod.h 是否楼主自已改動了,加入這些 command

{:soso_e109:} {:soso_e109:} {:soso_e109:}

我 download 回來的是這樣子

#ifndef LCD4Bit_mod_h
#define LCD4Bit_mod_h

#include <inttypes.h>

class LCD4Bit_mod {
public:
  LCD4Bit_mod(int num_lines);
  void commandWrite(int value);
  void init();
  void print(int value);
  void printIn(char value[]);
  void clear();
  //non-core---------------
  void cursorTo(int line_num, int x);
  void leftScroll(int chars, int delay_time);
  //end of non-core--------

  //4bit only, therefore ideally private but may be needed by user
  void commandWriteNibble(int nibble);
private:
  void pulseEnablePin();
  void pushNibble(int nibble);
  void pushByte(int value);
};

#endif
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则 需要先绑定手机号

Archiver|联系我们|极客工坊

GMT+8, 2024-5-18 15:50 , Processed in 0.041173 second(s), 18 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表