Pages: [1]   Go Down
Author Topic: Working with font larger than 8x8  (Read 281 times)
0 Members and 1 Guest are viewing this topic.
New York
Offline Offline
Sr. Member
****
Karma: 4
Posts: 366
xronosclock.com
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Storing 8x8 font is relatively simple in array of bytes. 1 represents on, 0 off.
Code:
byte w[8]={B00000000,B10010010,B10101010,B10101010,B10101010,B10101010,B10101010,B01000100};
But how would I go about working with 16x16 font?  Integer is 2 bytes, but I have no idea how would I store something like B1000000100000010?  Any clues? smiley
Logged

Xronos Clock - A talking arduino based alarm clock is now available. Check out xronosclock.com for pictures, source code, schematics, and purchasing info smiley

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 610
Posts: 49073
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Any clues?
Use hex notation, instead.
Logged

Global Moderator
Online Online
Brattain Member
*****
Karma: 480
Posts: 18728
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Or  use the 0bxxx notation, eg.

Code:
void setup ()
  {
  int foo = 0b1000000100000010; 
  }  // end of setup
 
void loop () { }
Logged


New York
Offline Offline
Sr. Member
****
Karma: 4
Posts: 366
xronosclock.com
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Any clues?
Use hex notation, instead.
Nice! Thanks!
Logged

Xronos Clock - A talking arduino based alarm clock is now available. Check out xronosclock.com for pictures, source code, schematics, and purchasing info smiley

Pages: [1]   Go Up
Jump to: