Using simplegraphics object with non gadgeteer boards

Should be simple?
However, I have not found a nice clean way to do it.

Why ask?
Because I like the way simple graphics works and I still can use the basic bitmaps if needed.

My kludge is to make a Gadgeteer project and hack Program.generated.cs which is down right terrible way to do it.

So I ask how to get the reference to the display in use object for use in a Console application.

// In Program.generated.cs 
private Gadgeteer.Modules.GHIElectronics.DisplayTE35 displayTE35;

//In public partial class Program
private static Gadgeteer.Modules.GHIElectronics.DisplayTE35 display;

display = displayTE35;

display.SimpleGraphics.AutoRedraw = true;

et cetera....

Thank You…

@ willgeorge - Since SimpleGraphics just uses bitmaps internally, you could take it from the Gadgeteer source and remove the calls to Mainboard and DisplayModule, replacing them with your specifics.

@ andre.m -

That is what I do without using simplegraphics.

Thanks for replying

@ John -
That’s what I will do,

Thank You