Skip to content

cursor_position fix, add column check #20

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 21, 2018

Conversation

kattni
Copy link
Contributor

@kattni kattni commented Nov 21, 2018

If you set the coordinate column or line in cursor_position to the same number as the number of columns or lines in the initialisation of the display, it would move the cursor off of the display. This fixes that issue.

Also added a check to keep the cursor on the screen if the number provides for the column coordinate is outside the number of columns.

@kattni kattni requested a review from ladyada November 21, 2018 20:01
@ladyada ladyada merged commit 706a097 into adafruit:master Nov 21, 2018
tannewt pushed a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Nov 22, 2018
Updating https://github.com/adafruit/Adafruit_CircuitPython_CharLCD to 3.0.1 from 2.4.1:
  > Merge pull request adafruit/Adafruit_CircuitPython_CharLCD#20 from kattni/cursor-position-fix
  > Merge pull request adafruit/Adafruit_CircuitPython_CharLCD#19 from kattni/mcp230xx-support

Updating https://github.com/adafruit/Adafruit_CircuitPython_Crickit to 2.1.3 from 2.1.2:
  > DM: update pinmap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants