In Part-2 of this blog post series I provided a detailed ‘How-To’ for new users of the ByVac BV4618 LCD for their Arduino projects. It is clear to me there are plenty of Arduino hobbyists who want to hack LCD’s and need a simple way to wire them up and write to them.
The ByVac BV4618 LCD is a great choice. You can actually get it up and running with three wires – V+, Gnd, and Tx. Writing text to the display is pretty straightforward using the BV4618_S library. The library is useful, but Ol’ Sopwith does not think the class is easy enough to use for beginners.
To solve this problem I extended the BV4618_S class library and created a new class named sop4618_S. The class is brain-dead simple to use and it hides all the complexities of the VT100 code sequences.
The class has the following features:
Simple API for new programmers
Complete cursor management
Cursor X,Y positioning
LCD backlight control
Text centering functions
Uses the Arduino String class for efficiency
Clear method names
- cursorXY(2, 10)
- printString(“Anybody seen Kilroy?”)
Included in the class library is a Demo sketch that shows how to use the class. You can see two screens of the demo program below.
Special thanks to ByVac for designing such a cool gagdet.