mayankraichura / liquidcrystal440 Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/liquidcrystal440
Automatically exported from code.google.com/p/liquidcrystal440
What steps will reproduce the problem?
1. I have a 16x1 Display, wich is controlled as a 8x2 one
2. Try to use setCursor(12,0) failed, because this address is not valid
3. recalculating setCursor(12,0) to setCursor(4,1) every time is some how crazy.
I modified the setCursor routine as follows to have the functionality
void LiquidCrystalFast::setCursor(uint8_t col, uint8_t row) // this can
be called by the user but is also called before writing some characters.
{
if ( row > _numlines ) {
row = _numlines-1; // we count rows starting w/0
}
if ( col > numcols ) { // Bug fix โ Linefolding for setCursor
row = row + 1;
col = col - numcols;
}
_y = row;
_x = col;
....
It would be nice to have this in a "official" version.
Best
Martin
Original issue reported on code.google.com by [email protected]
on 5 Jan 2015 at 11:39
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.