alon24 / InfoScreens

esp8266 infoscreen implementation
3 stars 1 forks source link

Framework to support generic elements #2

Open sle118 opened 8 years ago

sle118 commented 8 years ago

I have completed an implementation of an image library that reads from spiffy and decodes pictures to memory. My goal is to provide an easy way to add dynamic elements using small icons, 16x16 for example, to picture certain statuses.

I like the way InfoScreens was built and I wonder if there is any way we could implement generic objects that can draw themselves inside a virtual port ( rectangle) provided by the framework. Element classes could implement virtual methods that are needed by InfoScreens. This might require rethinking screen layout, unless elements are limited to a given max height.

alon24 commented 8 years ago

I guess the first thing would be to port the picture code to rtos, I am open to this, I think its a great idea

On Tue, Feb 23, 2016, 05:29 sle118 notifications@github.com wrote:

I have completed an implementation of an image library that reads from spiffy and decodes pictures to memory. My goal is to provide an easy way to add dynamic elements using small icons, 16x16 for example, to picture certain statuses.

I like the way InfoScreens was built and I wonder if there is any way we could implement generic objects that can draw themselves inside a virtual port ( rectangle) provided by the framework. Element classes could implement virtual methods that are needed by InfoScreens. This might require rethinking screen layout, unless elements are limited to a given max height.

— Reply to this email directly or view it on GitHub https://github.com/alon24/InfoScreens/issues/2.

sle118 commented 8 years ago

I am on it!

On Mon, Feb 22, 2016 at 8:59 PM -0800, "alon24" notifications@github.com wrote:

I guess the first thing would be to port the picture code to rtos, I am open to this, I think its a great idea

On Tue, Feb 23, 2016, 05:29 sle118 notifications@github.com wrote:

I have completed an implementation of an image library that reads from spiffy and decodes pictures to memory. My goal is to provide an easy way to add dynamic elements using small icons, 16x16 for example, to picture certain statuses.

I like the way InfoScreens was built and I wonder if there is any way we could implement generic objects that can draw themselves inside a virtual port ( rectangle) provided by the framework. Element classes could implement virtual methods that are needed by InfoScreens. This might require rethinking screen layout, unless elements are limited to a given max height.

— Reply to this email directly or view it on GitHub https://github.com/alon24/InfoScreens/issues/2.


Reply to this email directly or view it on GitHub: https://github.com/alon24/InfoScreens/issues/2#issuecomment-187532662