Skip to content
This repository has been archived by the owner on Jan 11, 2024. It is now read-only.

LCD: draw points/lines/ and other geometrical forms #84

Open
radut opened this issue May 17, 2014 · 14 comments
Open

LCD: draw points/lines/ and other geometrical forms #84

radut opened this issue May 17, 2014 · 14 comments

Comments

@radut
Copy link

radut commented May 17, 2014

Hi,
What about improving the pi4j lcd library with the posibility to draw points, lines and base geometric forms ?

@SrMouraSilva
Copy link

Lcd library uses WiringPi Lcd Library (http://wiringpi.com/dev-lib/lcd-library/).
I dont know if are possible changes at points level

@natdan
Copy link
Contributor

natdan commented Jan 7, 2016

LOL - you got me with 'awt' part of your post! but seriously, I don't think it would be too hard to have Swing draw on any framebuffer. It is not 'implementation' (of current OS) specific and theoretically easy to be used anywhere...

@SrMouraSilva
Copy link

"LOL - you got me with 'awt' part of your post!" I'm sorry!

But...

"THE EMBEDDED WINDOW TOOLKIT
Porting Java’s AWT to an Embedded System"

http://alumni.soe.ucsc.edu/~wholt/thesis.pdf

@SrMouraSilva
Copy link

I do not know, but I think Pi4j do not support Displays graphics

João Sombra has ported a python port of a C implementation of PCD8544 (of a arduino implementation...)

(Reference: https://www.youtube.com/watch?v=LLt9q1CAxRs)

The C implementation has a comment in your github project

"This driver uses 5 GPIOs on target board with a bit-bang SPI implementation (hence, may not be as fast but seems fast enough)."

João Sombra answered my question in your demo video
"Funcionou mas o desempenho ficou bem a desejar."
(Google translated: It worked but the performance was much to be desired.)

I need work with PCD8544, then I will test. If has a success, I will pull request then

@SrMouraSilva
Copy link

Exists a cool c++ lib with PCD8544 support: Rpi-hw

I'm putting some links in here for future reference

@SrMouraSilva
Copy link

@natdan, I added a support for Java Graphics for display

If AWT uses Graphics2D, maybe it's possible portable it for display

I added a initial support for PCD8544 (Nokia 5110) (not based in I2C data communication

Test example, it's possible:

In future, port Display2D also is a good idea, I think

@natdan
Copy link
Contributor

natdan commented Jan 18, 2016

Yes! That is the way to do it! Graphics (Graphics2D) is class to implement and everything else should use it! Now - do you want to contribute your impl. to pi4j project, maybe? Looking at your code I think we should have whole section for displays over here.

@SrMouraSilva
Copy link

@natdan , it's my clain 😄

A rapid test
https://www.youtube.com/watch?v=olnMZMNEJqk

I will implement the Graphics2D and forked the... What's the branch?

(I'm sorry by my bad english 😶)

@natdan
Copy link
Contributor

natdan commented Jan 19, 2016

Let me know when you fork it. I've just procured i2c 128x64 bw display and I am happy to help - give you a hand. So if/when you fork it send me a pm or write here if you want some help.

@SrMouraSilva
Copy link

@natdan I'm preparing the code for fork and pull request 😃
PedalController/JavaPedalMIDI@21b58e2

@natdan
Copy link
Contributor

natdan commented Jan 23, 2016

Thanks. BTW Forgot to say - it looks great! :)

@SrMouraSilva
Copy link

:)

@SrMouraSilva
Copy link

@savageautomate, please add RELEASE 2.0 to this because my pull request #84 use Java 8

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants