Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

simple information

0 views
Skip to first unread message

Alcibiade

unread,
Dec 17, 2009, 10:43:57 AM12/17/09
to
Hi,
on display i can read some informations about firmware and so on.
I'd like to create a simple application only to write "hello", using the
same current settings:
black background with green forecolor.
Is it possibile with few code lines? How?

PS: I read that console application project has not display output.....:S

Thanks in advance

Jan Kučera

unread,
Dec 17, 2009, 11:56:11 AM12/17/09
to
Hi,
the output during device boot is a generated by the native code, which is
inaccessible from the managed side. Different vendors can even have this
code different.

The console application can only output to the debugger console.

You can create an empty black bitmap of the same size as display, write text
there using Miscrosoft.SPOT.Bitap.DrawTextInRect. and then flush it to the
screen. This can give you, with the right font, pretty similar effect.

Jan

"Alcibiade" <nob...@libero.it> wrote in message
news:ueZfA$yfKHA...@TK2MSFTNGP05.phx.gbl...

Alcibiade

unread,
Dec 18, 2009, 3:01:26 AM12/18/09
to
Thanks Jan
indeed I have resolved in the same way as you have suggested.
The code is the following

using System.Threading;

using Microsoft.SPOT;

using System;

using Microsoft.SPOT.Presentation;

using Microsoft.SPOT.Presentation.Media;

using Microsoft.SPOT.Hardware;

using System.Text;

using GHIElectronics.System.IO;

using GHIElectronics.System;

using GHIElectronics.Hardware;

using GHIElectronics.System.SystemDevices;

Bitmap LCD = new Bitmap(SystemMetrics.ScreenWidth,
SystemMetrics.ScreenHeight);
Font font = Resources.GetFont(Resources.FontResources.small);

LCD.DrawText(testo, font, Colors.Green, 0, 10);

LCD.Flush();

---------

"Jan Ku�era" <kuc...@lupacovka.cz> ha scritto nel messaggio
news:O$kecnzfK...@TK2MSFTNGP05.phx.gbl...

0 new messages