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

Add Arduino Uno Example #20

Closed
wants to merge 1 commit into from
Closed

Add Arduino Uno Example #20

wants to merge 1 commit into from

Conversation

JohnDoneth
Copy link
Owner

Adds an example for the Arduino Uno.

Closes #19

Todo

  • Investigate Timing Differences

@Marcuss2
Copy link
Contributor

Marcuss2 commented Aug 4, 2020

I have independently got it working. I did it by forking the avr-hal and adding u8 delay_ms. While testing on a UNO clone, I noticed some issues, like cursor not working properly and found that currently, there is only 100 us delay, while the documentation requires 450 us delay. It is especially true for the clear method, which needs even larger delay.

I also made a pull request to implement the u8 delay in AVR-HAL, so I don't think the change from u8 to u16 is needed.


//delay.delay_ms(500);

let mut lcd = HD44780::new_8bit(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is more likely that 4bit interface will be used with Arduino UNO

@Marcuss2
Copy link
Contributor

The u8 delay in AVR-HAL was implemented, so I think just removing those changes from u8 to u16 should be enough at this point.

@JohnDoneth JohnDoneth closed this Nov 26, 2021
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.

Arduino UNO Example
2 participants