Re-display SparkFun (or other) logo?

General MicroView Support area - You have questions, find your answers here.

Moderators: phalanx, Help@GeekAmmo, marcus@geekammo

Post Reply
LafrancR
Posts: 2
Joined: Thu Jan 25, 2018 11:46 am
Location: Whitby, ON

Re-display SparkFun (or other) logo?

Post by LafrancR » Thu Jan 25, 2018 12:00 pm

Hi.

Just wondering if it's possible to re-display the logo that's built into MicroView.cpp (eg: the SparkFun logo or whatever else it gets tweaked to) after the screen has been used to display sensor data, etc. I imagine a project having a button that displays an 'About' dialog, and maybe re-displaying the built-in logo briefly before putting up some text.

I know that I can write my own bitmaps inside the sketch, and have done so on occasion, but sometimes need to give it up to conserve memory. Since (I assume) the bitmap inside MicroView.cpp is always there, I was curious if it can be re-accessed somehow. And besides, that'd just be cool to do! Thanks!

Rich

scotta
Posts: 43
Joined: Thu Jul 24, 2014 1:31 pm
Location: Toronto, Canada

Re: Re-display SparkFun (or other) logo?

Post by scotta » Sat Jan 27, 2018 4:42 pm

Unfortunately, the logo is provided as initialisation data for the screenmemory[] array that buffers the screen data in RAM. Once this logo data is overwritten by your own display data, it's lost. The logo data is still somewhere in program memory, but I can't think of a way to access it.

LafrancR
Posts: 2
Joined: Thu Jan 25, 2018 11:46 am
Location: Whitby, ON

Re: Re-display SparkFun (or other) logo?

Post by LafrancR » Fri Feb 23, 2018 11:10 am

@scotta - Thanks for taking the time to reply, and sorry for the tardy response (kitchen reno in progress). Your response makes sense.

Rich

Post Reply