Skip to content
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

Issue #6 fixed and reading functions added #32

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open

Issue #6 fixed and reading functions added #32

wants to merge 11 commits into from

Conversation

zaidMughal
Copy link

@zaidMughal zaidMughal commented Mar 20, 2020

Issue #6 was that createchar() function leave data address in CGRAM position. After that, begin(), setCursor(),clear() or home() functions must be executed before write() function in order for it to work. It is fixed but require rw pin to be set for it to work. This is because, when address register goes to CGRAM, there is no record of its previous position in our MCU. MCU must read its previous position in order for it to go back. In case rw pin is not specified, the register is not returned and it cannot untill rw is specified.

Also Added following functions,
read_BF_addr
read_RAM
read
read4bits
read8bits

Issue # 6 was that createchar() function leave data address in CGRAM position. After that, begin(), setCursor(),clear() or home() functions must be executed before write() function in order for it to work. It is fixed but require rw pin to be set for it to work. This is because, when address register goes to CGRAM, there is no record of its previous position in our MCU. MCU must read its previous position in order for it to go back. In case rw pin is not specified, the register is not returned and it cannot untill rw is specified.
Also Added following functions,
read_BF_addr
read_RAM
read
read4bits
read8bits
@zaidMughal zaidMughal closed this Mar 20, 2020
@zaidMughal zaidMughal reopened this Mar 20, 2020
@zaidMughal zaidMughal closed this Mar 20, 2020
@zaidMughal zaidMughal changed the title Issue #6 fixed and readnd functions added Issue #6 fixed and reading functions added Mar 20, 2020
@zaidMughal zaidMughal reopened this Mar 20, 2020
src/LiquidCrystal.h Outdated Show resolved Hide resolved
src/LiquidCrystal.cpp Outdated Show resolved Hide resolved
camelCase corrected in two functions.
read function return type changed to int so they give -1 if not read.
Also readRAM generates an error if both inlined and used in cpp file. Either we put it in .h file or not make it a normal function. So I  made it a normal function.
@zaidMughal zaidMughal requested a review from per1234 March 21, 2020 04:47
keywords.txt Outdated Show resolved Hide resolved
@zaidMughal zaidMughal requested a review from per1234 March 21, 2020 07:35
keywords.txt Outdated Show resolved Hide resolved
@zaidMughal zaidMughal requested a review from per1234 March 22, 2020 08:56
@per1234 per1234 dismissed their stale review March 22, 2020 09:04

Requested changes have been made. Thanks!

@per1234 per1234 removed their request for review March 10, 2021 00:00
@CLAassistant
Copy link

CLAassistant commented Apr 9, 2021

CLA assistant check
All committers have signed the CLA.

@per1234 per1234 linked an issue Apr 18, 2022 that may be closed by this pull request
@per1234 per1234 added type: imperfection Perceived defect in any part of project type: enhancement Proposed improvement topic: code Related to content of the project itself labels Apr 18, 2022
@zaidMughal
Copy link
Author

@per1234
I have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

createChar does not work after calling setCursor
3 participants