Giter VIP home page Giter VIP logo

liquidcrystal440's People

Watchers

 avatar

liquidcrystal440's Issues

LineFold for 16x1 Displays

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.