Skip to content

S-NA/nhdlcd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nhdlcd

An Arduino library to interface with the NHD-0216K3Z-FL-GBW-V3.

The library is implemented to use SPI as the serial interface, although I2C would likely be a better choice if my understanding is correct.

By the nature of using a software emulated SPI (bit banging) any pins can be used to communicate with the LCD. However, hardware SPI uses pins 13, 12 and 11. Thus I recommend those pins.

Installation:

Change directory (cd) into

(OS X) ~/Documents/Arduino/libraries

(Linux) ~/Arduino/libraries

(Windows) C:\Users\%USERNAME%\My Documents\Arduino\libraries

Then do

git clone https://github.com/S-NA/nhdlcd

Usage:

#include <nhdlcd.hpp>
const byte dataPin = 13;
const byte clockPin = 12;
const byte slaveSelectPin = 11;
nhdlcd lcd(dataPin, clockPin, slaveSelectPin);
void setup() { }
void loop() {
  lcd.write(Command::ClearScreen);
  lcd.write("Hello World");
  delay(100);
}

About

An Arduino library for NHD-0216K3Z-FL-GBW-V3 LCD

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages