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

Sample app for the hd44780u LCD driver on tiva C #253

Merged
merged 1 commit into from Dec 5, 2014

Conversation

Projects
None yet
3 participants
@simias
Contributor

simias commented Dec 4, 2014

Some sample code for the HD44780U driver that got merged a while back. It creates pretty huge binaries too (12304B for my last build).

@0xc0170

This comment has been minimized.

Show comment
Hide comment
@0xc0170

0xc0170 Dec 4, 2014

Contributor

Can you elaborate about sizes of each component used (chario, hd) ?

Contributor

0xc0170 commented Dec 4, 2014

Can you elaborate about sizes of each component used (chario, hd) ?

@simias

This comment has been minimized.

Show comment
Hide comment
@simias

simias Dec 4, 2014

Contributor

@0xc0170: sizes? As in std::mem::size_of?

The LCD driver implements a very rough CharIO trait by displaying chars at the current pointer position, wherever that is. That means that if the text goes outside of the screen it won't be displayed (no \n insertion). I didn't bother making it more complicated than that because given the small amount of displayable characters (16x2 at most) you'll probably have to implement a custom drawing function if you have a lot of text to display anyway.

Contributor

simias commented Dec 4, 2014

@0xc0170: sizes? As in std::mem::size_of?

The LCD driver implements a very rough CharIO trait by displaying chars at the current pointer position, wherever that is. That means that if the text goes outside of the screen it won't be displayed (no \n insertion). I didn't bother making it more complicated than that because given the small amount of displayable characters (16x2 at most) you'll probably have to implement a custom drawing function if you have a lot of text to display anyway.

@simias

This comment has been minimized.

Show comment
Hide comment
@simias

simias Dec 4, 2014

Contributor

As for the size of the binary I'm not entirely sure where the bloat comes from.

Contributor

simias commented Dec 4, 2014

As for the size of the binary I'm not entirely sure where the bloat comes from.

@farcaller

This comment has been minimized.

Show comment
Hide comment
@farcaller

farcaller Dec 5, 2014

Member

LGTM, I'll look into binary sizes.

Member

farcaller commented Dec 5, 2014

LGTM, I'll look into binary sizes.

farcaller added a commit that referenced this pull request Dec 5, 2014

Merge pull request #253 from simias/lcd
Sample app for the hd44780u LCD driver on tiva c

@farcaller farcaller merged commit df1b087 into hackndev:master Dec 5, 2014

1 check passed

continuous-integration/travis-ci The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment