Black background and white characters

The Dot Matrix Display (DMD) is a 32x16 array of high-brightness LEDs for visually striking effects. [Product Page]
Post Reply
blaster
Posts:3
Joined:Fri Jan 31, 2014 11:51 am
Black background and white characters

Post by blaster » Tue Feb 04, 2014 10:17 am

Hello guys,

I'm going crazy because i want write on my dmd with "negative characters". red background and black characters.

For example: [background-color=#000000]Hello[/background-color]

Is it possible?

User avatar
stryker
Posts:282
Joined:Sat Jan 14, 2012 2:44 pm

Re: Black background and white characters

Post by stryker » Tue Feb 04, 2014 11:29 am

Not crazy at all, and it's well possible though you may well be blinded by the effect ;)

Try the graphics mode GRAPHICS_INVERSE in place of GRAPHICS_NORMAL as the bGraphicsMode parameter. You'll find this in DMD library functions including

Code: Select all

drawString( int bX, int bY, const char* bChars, byte length, byte bGraphicsMode);
drawChar(const int bX, const int bY, const char letter, byte bGraphicsMode);
clearScreen(byte bNormal); (effect is to fill your display with red)
drawLine( int x1, int y1, int x2, int y2, byte bGraphicsMode );
drawCircle( int xCenter, int yCenter, int radius, byte bGraphicsMode );
drawBox( int x1, int y1, int x2, int y2, byte bGraphicsMode );
drawFilledBox( int x1, int y1, int x2, int y2, byte bGraphicsMode );
Cheers ! Geoff

Post Reply