Open brianmiller1956 opened 4 years ago
Cheers Brian, testing it now - put it in the 'getTempSymbol' on line 1035 (on mine)
ok mine didnt work on that line, so adding it to your section
Yep confirmed working.
'+ char(247) +'
I also removed the temperature rounding, the temp now shows 2 decimal places and negative temperatures in winter, otherwise it only goes down to zero.
Sent from my iPad Pro
On 13 Mar 2021, at 19:12, victor7376 @.***> wrote:
Cheers Brian, testing it now - put it in the 'getTempSymbol' on line 1035 (on mine)
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
The second entry is for the hi/lo display if it is enabled.
Sent from my iPad Pro
On 13 Mar 2021, at 19:15, victor7376 @.***> wrote:
ok mine didnt work on that line, so adding it to your section
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
This is a list of all the changes I have made.
Mods to original Marquee Scroller
Pressure now says Barometer
Month names are now written in full
Added comma to month display
Added spaces to weather data to make all units the same layout
Edited 4 lines of displays =>8 to =>6 displays wide clock on 6 display modules
Added char(147) twice to display degree symbol for temperature
Added year display
Added zero padding to hour when clock is in 24 hr mode ie 07:07:40
Removed “Rounded” from temp now shows negative temps and 2 decimal places
Added code to include ordinal suffix and “of” to scrolled day number ie 12th of March
Adjusted spaces between weather ending and news start, added full stops
Reworked ordinal suffix code now has comma at the end
Font file edits 2,3,6,7,9 re-edited 6,9
Lower case b,d,f,g,p,q,s,t,
Upper case Z centre bar removed
Punctuation , - “ ‘ all reduced in size : enlarged, made into 8 pixels £ sign put into both 156 and 163 locations, removed, 0x00, 0x00, 0x00, 0xFF, 0x10 late on in font file. @ clarified Could do with € symbol sorting out
Sent from my iPad Pro
On 13 Mar 2021, at 19:16, victor7376 @.***> wrote:
Yep confirmed working.
'+ char(247) +'
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
WOW, theres a lot of edits in there.
I've just been happy modifying mine for Octoprint.
Also removed the rounded temps, added the suffix for dates (shown above). But have removed bitcoin & news as I dont use them.
When 3D printer is printing it shows how long to go till its finished, but after its finished it changes to clock with seconds and temperature.
I'm just about to add some features I've added into the printer Monitor that qrome also coded, for current layer, total layers & estimated clock time when its finished.
Also changed the booting message from 'hello' to OctoPrint (this is due to having 4x - 1x4 displays)
On my other one I've removed most of the coding for weather, news, bitcoin & Wifi manager so I can have just 2 API's (TimeDB and my other one) the 2nd API is coded for 4 webcam streamers and scrolls info for when they are online or offline.
Ok I've just gone through the Char list and the £ sign is located on: 'char(412)' the euro is possibly 'char(493)'
The font file only has 256 entries, I have sorted the £ sign by editing the font file, it has 2 locations depending on which ascii table used, I put the data into both places, The € symbol is a bit harder, the scroller actually prints 3 characters without any spaces between them, something like the pi symbol, one quarter, and another I can’t remember, but as this is infrequently used in the news feed I didn’t sort it out, but I did correct the £ sign. Try putting some into the web based interface for the scrolled message and see what it shows.
Sent from my iPad Pro
On 14 Mar 2021, at 13:17, victor7376 @.***> wrote:
Ok I've just gone through the Char list and the £ sign is located on: 'char(412)' the euro is possibly 'char(493)'
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
I havent played with editing the fonts yet, but I have found an editor that you can work out the 8x8 matrix code. I've just looked at making the Euro sign and it doesnt look too bad.
If you know how to input: 6, 0x14, 0x3E, 0x55, 0x55, 0x41, 0x22, // euro
The table used by the adafruit gfx library is a 5 by 8 matrix using 5 hex numbers to define each character, these represent the vertical lines of dots least significant bit at the top starting left hand side, I do have an editor which came from GitHub and also the max7219 library does have an excel spreadsheet to help with editing, I have just done some work on the file, when it should print the euro symbol it actually prints 3 digits with no spaces between the characters I think they are 227, 130 and 172 in the ascii table, something seems to have difficulty correctly addressing/displaying anything in the extended part of the ascii table, this can be bodged by putting the euro symbol data into the location of the third character that it does display and putting spaces into the other 2 ,it will then show two spaces and then the euro symbol, stay tuned for the next update tomorrow!
Sent from my iPad Pro
On 14 Mar 2021, at 20:57, victor7376 @.***> wrote:
I havent played with editing the fonts yet, but I have found an editor that you can work out the 8x8 matrix code. I've just looked at making the Euro sign and it doesnt look too bad.
If you know how to input: 6, 0x14, 0x3E, 0x55, 0x55, 0x41, 0x22, // euro
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
Hi, This is the modification I found to add the degree symbol to the temp in both the present and hi/lo entries if (SHOW_CITY) { msg += weatherClient.getCity(0) + ". ";//added full stop to place name } msg += temperature + char(247) + getTempSymbol() + " "; //added char(247) degree symbol //show high/low temperature, added space to Hi/Lo, Humidity, Barometer if (SHOW_HIGHLOW) { msg += "High/Low: " + weatherClient.getHigh(0) + "/" + weatherClient.getLow(0) + char(247) + getTempSymbol() + " "; } Sent from Mail for Windows 10 From: Neeraj-Ch Sent: 13 March 2021 17:45 To: Qrome/marquee-scroller Cc: brianmiller1956; Author Subject: Re: [Qrome/marquee-scroller] £ sign does not display (#155) Thanks Victor. I'll try again at morning tomorrow, hope it works. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
Thanks Victor & Brian, It worked 👍
Well its been a long time in coding this clock but I'm working on an update for the clock which hopefully will include a youtube section to show how many subscribers you have.
Brian, you stated you have been modifying the font file (glcdfont.h) any chance you could send a copy of what you've modified so I can see what you've done please?
Cheers
Hi Victor, I found that the £ sign can be found in 2 different locations in the ascii table I copied the data into both locations the second part of the fix was to zero out the graphic character that appears before the £ sign so when I display the £ sign it actually prints SPACE £, I have attached the glcdfont.c file, copy it over the one used by the adafruit gfx library and print some pound signs. I also modified many other characters in this file so the display will look somewhat different.
Sent from Mail for Windows
From: victor7376 Sent: 05 March 2022 14:19 To: Qrome/marquee-scroller Cc: brianmiller1956; Author Subject: Re: [Qrome/marquee-scroller] £ sign does not display (#155)
Well its been a long time in coding this clock but I'm working on an update for the clock which hopefully will include a youtube section to show how many subscribers you have. Brian, you stated you have been modifying the font file (glcdfont.h) any chance you could send a copy of what you've modified so I can see what you've done please? Cheers — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
// This is the 'classic' fixed-space bitmap font for Adafruit_GFX since 1.0. // See gfxfont.h for newer custom bitmap font info.
// PROGMEM is defefind for T4 to place data in specific memory section
// Standard ASCII 5x7 font
static const unsigned char font[] PROGMEM = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x3E, 0x5B, 0x4F, 0x5B, 0x3E, 0x3E, 0x6B, 0x4F, 0x6B, 0x3E, 0x1C, 0x3E, 0x7C, 0x3E, 0x1C, 0x18, 0x3C, 0x7E, 0x3C, 0x18, 0x1C, 0x57, 0x7D, 0x57, 0x1C, 0x1C, 0x5E, 0x7F, 0x5E, 0x1C, 0x00, 0x18, 0x3C, 0x18, 0x00, 0xFF, 0xE7, 0xC3, 0xE7, 0xFF, 0x00, 0x18, 0x24, 0x18, 0x00, 0xFF, 0xE7, 0xDB, 0xE7, 0xFF, 0x30, 0x48, 0x3A, 0x06, 0x0E, 0x26, 0x29, 0x79, 0x29, 0x26, 0x40, 0x7F, 0x05, 0x05, 0x07, 0x40, 0x7F, 0x05, 0x25, 0x3F, 0x5A, 0x3C, 0xE7, 0x3C, 0x5A, 0x7F, 0x3E, 0x1C, 0x1C, 0x08, 0x08, 0x1C, 0x1C, 0x3E, 0x7F, 0x14, 0x22, 0x7F, 0x22, 0x14, 0x5F, 0x5F, 0x00, 0x5F, 0x5F, 0x06, 0x09, 0x7F, 0x01, 0x7F, 0x00, 0x66, 0x89, 0x95, 0x6A, 0x60, 0x60, 0x60, 0x60, 0x60, 0x94, 0xA2, 0xFF, 0xA2, 0x94, 0x08, 0x04, 0x7E, 0x04, 0x08, 0x10, 0x20, 0x7E, 0x20, 0x10, 0x08, 0x08, 0x2A, 0x1C, 0x08, 0x08, 0x1C, 0x2A, 0x08, 0x08, 0x1E, 0x10, 0x10, 0x10, 0x10, 0x0C, 0x1E, 0x0C, 0x1E, 0x0C, 0x30, 0x38, 0x3E, 0x38, 0x30, 0x06, 0x0E, 0x3E, 0x0E, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x5F, 0x00, 0x00, 0x00, 0x07, 0x00, 0x07, 0x00, 0x14, 0x7F, 0x14, 0x7F, 0x14, 0x24, 0x2A, 0x7F, 0x2A, 0x12, 0x23, 0x13, 0x08, 0x64, 0x62, 0x36, 0x49, 0x56, 0x20, 0x50, 0x00, 0x04, 0x03, 0x01, 0x00, 0x00, 0x1C, 0x22, 0x41, 0x00, 0x00, 0x41, 0x22, 0x1C, 0x00, 0x2A, 0x1C, 0x7F, 0x1C, 0x2A, 0x08, 0x08, 0x3E, 0x08, 0x08, 0x00, 0x80, 0x60, 0x00, 0x00, 0x00, 0x08, 0x08, 0x08, 0x00, 0x00, 0x00, 0x60, 0x60, 0x00, 0x20, 0x10, 0x08, 0x04, 0x02, 0x3E, 0x51, 0x49, 0x45, 0x3E, 0x00, 0x42, 0x7F, 0x40, 0x00, 0x42, 0x61, 0x51, 0x49, 0x46, 0x22, 0x41, 0x49, 0x49, 0x36, 0x18, 0x14, 0x12, 0x7F, 0x10, 0x27, 0x45, 0x45, 0x45, 0x39, 0x3E, 0x49, 0x49, 0x49, 0x32, 0x01, 0x71, 0x09, 0x05, 0x03, 0x36, 0x49, 0x49, 0x49, 0x36, 0x26, 0x49, 0x49, 0x49, 0x3E, 0x00, 0x00, 0x36, 0x36, 0x00, 0x00, 0x40, 0x34, 0x00, 0x00, 0x00, 0x08, 0x14, 0x22, 0x41, 0x14, 0x14, 0x14, 0x14, 0x14, 0x00, 0x41, 0x22, 0x14, 0x08, 0x02, 0x01, 0x59, 0x09, 0x06, 0x3E, 0x41, 0x5D, 0x55, 0x5E, 0x7C, 0x12, 0x11, 0x12, 0x7C, 0x7F, 0x49, 0x49, 0x49, 0x36, 0x3E, 0x41, 0x41, 0x41, 0x22, 0x7F, 0x41, 0x41, 0x41, 0x3E, 0x7F, 0x49, 0x49, 0x49, 0x41, 0x7F, 0x09, 0x09, 0x09, 0x01, 0x3E, 0x41, 0x41, 0x51, 0x73, 0x7F, 0x08, 0x08, 0x08, 0x7F, 0x00, 0x41, 0x7F, 0x41, 0x00, 0x20, 0x40, 0x41, 0x3F, 0x01, 0x7F, 0x08, 0x14, 0x22, 0x41, 0x7F, 0x40, 0x40, 0x40, 0x40, 0x7F, 0x02, 0x1C, 0x02, 0x7F, 0x7F, 0x04, 0x08, 0x10, 0x7F, 0x3E, 0x41, 0x41, 0x41, 0x3E, 0x7F, 0x09, 0x09, 0x09, 0x06, 0x3E, 0x41, 0x51, 0x21, 0x5E, 0x7F, 0x09, 0x19, 0x29, 0x46, 0x26, 0x49, 0x49, 0x49, 0x32, 0x03, 0x01, 0x7F, 0x01, 0x03, 0x3F, 0x40, 0x40, 0x40, 0x3F, 0x1F, 0x20, 0x40, 0x20, 0x1F, 0x3F, 0x40, 0x38, 0x40, 0x3F, 0x63, 0x14, 0x08, 0x14, 0x63, 0x03, 0x04, 0x78, 0x04, 0x03, 0x61, 0x51, 0x49, 0x45, 0x43, 0x00, 0x7F, 0x41, 0x41, 0x41, 0x02, 0x04, 0x08, 0x10, 0x20, 0x00, 0x41, 0x41, 0x41, 0x7F, 0x04, 0x02, 0x01, 0x02, 0x04, 0x40, 0x40, 0x40, 0x40, 0x40, 0x00, 0x03, 0x07, 0x08, 0x00, 0x20, 0x54, 0x54, 0x78, 0x40, 0x7F, 0x48, 0x44, 0x44, 0x38, 0x38, 0x44, 0x44, 0x44, 0x28, 0x38, 0x44, 0x44, 0x48, 0x7F, 0x38, 0x54, 0x54, 0x54, 0x18, 0x08, 0x7E, 0x09, 0x09, 0x02, 0x58, 0xA4, 0xA4, 0xA4, 0x78, 0x7F, 0x08, 0x04, 0x04, 0x78, 0x00, 0x44, 0x7D, 0x40, 0x00, 0x20, 0x40, 0x40, 0x3D, 0x00, 0x7F, 0x10, 0x28, 0x44, 0x00, 0x00, 0x41, 0x7F, 0x40, 0x00, 0x7C, 0x04, 0x78, 0x04, 0x78, 0x7C, 0x08, 0x04, 0x04, 0x78, 0x38, 0x44, 0x44, 0x44, 0x38, 0xFC, 0x24, 0x24, 0x24, 0x18, 0x18, 0x24, 0x24, 0xFC, 0x40, 0x7C, 0x08, 0x04, 0x04, 0x08, 0x48, 0x54, 0x54, 0x24, 0x00, 0x04, 0x3F, 0x44, 0x44, 0x20, 0x3C, 0x40, 0x40, 0x20, 0x7C, 0x1C, 0x20, 0x40, 0x20, 0x1C, 0x3C, 0x40, 0x30, 0x40, 0x3C, 0x44, 0x28, 0x10, 0x28, 0x44, 0x4C, 0x90, 0x90, 0x90, 0x7C, 0x44, 0x64, 0x54, 0x4C, 0x44, 0x00, 0x08, 0x36, 0x41, 0x00, 0x00, 0x00, 0x77, 0x00, 0x00, 0x00, 0x41, 0x36, 0x08, 0x00, 0x02, 0x01, 0x02, 0x04, 0x02, 0x3C, 0x26, 0x23, 0x26, 0x3C, 0x1E, 0xA1, 0xA1, 0x61, 0x12, 0x3A, 0x40, 0x40, 0x20, 0x7A, 0x38, 0x54, 0x54, 0x55, 0x59, 0x21, 0x55, 0x55, 0x79, 0x41, 0x22, 0x54, 0x54, 0x78, 0x42, // a-umlaut 0x21, 0x55, 0x54, 0x78, 0x40, 0x20, 0x54, 0x55, 0x79, 0x40, 0x0C, 0x1E, 0x52, 0x72, 0x12, 0x39, 0x55, 0x55, 0x55, 0x59, 0x39, 0x54, 0x54, 0x54, 0x59, 0x39, 0x55, 0x54, 0x54, 0x58, 0x00, 0x00, 0x45, 0x7C, 0x41, 0x00, 0x02, 0x45, 0x7D, 0x42, 0x00, 0x01, 0x45, 0x7C, 0x40, 0x7D, 0x12, 0x11, 0x12, 0x7D, // A-umlaut 0xF0, 0x28, 0x25, 0x28, 0xF0, 0x7C, 0x54, 0x55, 0x45, 0x00, 0x20, 0x54, 0x54, 0x7C, 0x54, 0x7C, 0x0A, 0x09, 0x7F, 0x49, 0x32, 0x49, 0x49, 0x49, 0x32, 0x3A, 0x44, 0x44, 0x44, 0x3A, // o-umlaut 0x32, 0x4A, 0x48, 0x48, 0x30, 0x3A, 0x41, 0x41, 0x21, 0x7A, 0x3A, 0x42, 0x40, 0x20, 0x78, 0x00, 0x9D, 0xA0, 0xA0, 0x7D, 0x3D, 0x42, 0x42, 0x42, 0x3D, // O-umlaut 0x3D, 0x40, 0x40, 0x40, 0x3D, 0x3C, 0x24, 0xFF, 0x24, 0x24, 0x48, 0x7E, 0x49, 0x41, 0x66, 0x2B, 0x2F, 0xFC, 0x2F, 0x2B, 0xFF, 0x09, 0x29, 0xF6, 0x20, 0xC0, 0x88, 0x7E, 0x09, 0x03, 0x20, 0x54, 0x54, 0x79, 0x41, 0x00, 0x00, 0x44, 0x7D, 0x41, 0x30, 0x48, 0x48, 0x4A, 0x32, 0x48, 0x7E, 0x49, 0x41, 0x66, 0x00, 0x7A, 0x0A, 0x0A, 0x72, 0x7D, 0x0D, 0x19, 0x31, 0x7D, 0x26, 0x29, 0x29, 0x2F, 0x28, 0x26, 0x29, 0x29, 0x29, 0x26, 0x30, 0x48, 0x4D, 0x40, 0x20, 0x38, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x38, 0x2F, 0x10, 0xC8, 0xAC, 0xBA, 0x2F, 0x10, 0x28, 0x34, 0xFA, 0x00, 0x00, 0x7B, 0x00, 0x00, 0x08, 0x14, 0x2A, 0x14, 0x22, 0x22, 0x14, 0x2A, 0x14, 0x08, 0x55, 0x00, 0x55, 0x00, 0x55, // #176 (25% block) missing in old // code 0xAA, 0x55, 0xAA, 0x55, 0xAA, // 50% block 0xFF, 0x55, 0xFF, 0x55, 0xFF, // 75% block 0x00, 0x00, 0x00, 0xFF, 0x00, 0x10, 0x10, 0x10, 0xFF, 0x00, 0x14, 0x14, 0x14, 0xFF, 0x00, 0x10, 0x10, 0xFF, 0x00, 0xFF, 0x10, 0x10, 0xF0, 0x10, 0xF0, 0x14, 0x14, 0x14, 0xFC, 0x00, 0x14, 0x14, 0xF7, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0xFF, 0x14, 0x14, 0xF4, 0x04, 0xFC, 0x14, 0x14, 0x17, 0x10, 0x1F, 0x10, 0x10, 0x1F, 0x10, 0x1F, 0x14, 0x14, 0x14, 0x1F, 0x00, 0x10, 0x10, 0x10, 0xF0, 0x00, 0x00, 0x00, 0x00, 0x1F, 0x10, 0x10, 0x10, 0x10, 0x1F, 0x10, 0x10, 0x10, 0x10, 0xF0, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0xFF, 0x10, 0x00, 0x00, 0x00, 0xFF, 0x14, 0x00, 0x00, 0xFF, 0x00, 0xFF, 0x00, 0x00, 0x1F, 0x10, 0x17, 0x00, 0x00, 0xFC, 0x04, 0xF4, 0x14, 0x14, 0x17, 0x10, 0x17, 0x14, 0x14, 0xF4, 0x04, 0xF4, 0x00, 0x00, 0xFF, 0x00, 0xF7, 0x14, 0x14, 0x14, 0x14, 0x14, 0x14, 0x14, 0xF7, 0x00, 0xF7, 0x14, 0x14, 0x14, 0x17, 0x14, 0x10, 0x10, 0x1F, 0x10, 0x1F, 0x14, 0x14, 0x14, 0xF4, 0x14, 0x10, 0x10, 0xF0, 0x10, 0xF0, 0x00, 0x00, 0x1F, 0x10, 0x1F, 0x00, 0x00, 0x00, 0x1F, 0x14, 0x00, 0x00, 0x00, 0xFC, 0x14, 0x00, 0x00, 0xF0, 0x10, 0xF0, 0x10, 0x10, 0xFF, 0x10, 0xFF, 0x14, 0x14, 0x14, 0xFF, 0x14, 0x10, 0x10, 0x10, 0x1F, 0x00, 0x00, 0x00, 0x00, 0xF0, 0x10, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x38, 0x44, 0x44, 0x38, 0x44, 0xFC, 0x4A, 0x4A, 0x4A, 0x34, // sharp-s or beta 0x7E, 0x02, 0x02, 0x06, 0x06, 0x02, 0x7E, 0x02, 0x7E, 0x02, 0x63, 0x55, 0x49, 0x41, 0x63, 0x38, 0x44, 0x44, 0x3C, 0x04, 0x40, 0x7E, 0x20, 0x1E, 0x20, 0x06, 0x02, 0x7E, 0x02, 0x02, 0x99, 0xA5, 0xE7, 0xA5, 0x99, 0x1C, 0x2A, 0x49, 0x2A, 0x1C, 0x4C, 0x72, 0x01, 0x72, 0x4C, 0x30, 0x4A, 0x4D, 0x4D, 0x30, 0x30, 0x48, 0x78, 0x48, 0x30, 0xBC, 0x62, 0x5A, 0x46, 0x3D, 0x3E, 0x49, 0x49, 0x49, 0x00, 0x7E, 0x01, 0x01, 0x01, 0x7E, 0x2A, 0x2A, 0x2A, 0x2A, 0x2A, 0x44, 0x44, 0x5F, 0x44, 0x44, 0x40, 0x51, 0x4A, 0x44, 0x40, 0x40, 0x44, 0x4A, 0x51, 0x40, 0x00, 0x00, 0xFF, 0x01, 0x03, 0xE0, 0x80, 0xFF, 0x00, 0x00, 0x08, 0x08, 0x6B, 0x6B, 0x08, 0x36, 0x12, 0x36, 0x24, 0x36, 0x06, 0x0F, 0x09, 0x0F, 0x06, 0x00, 0x00, 0x18, 0x18, 0x00, 0x00, 0x00, 0x10, 0x10, 0x00, 0x30, 0x40, 0xFF, 0x01, 0x01, 0x00, 0x1F, 0x01, 0x01, 0x1E, 0x00, 0x19, 0x1D, 0x17, 0x12, 0x00, 0x3C, 0x3C, 0x3C, 0x3C, 0x00, 0x00, 0x00, 0x00, 0x00 // #255 NBSP };
// allow clean compilation with [-Wunused-const-variable=] and [-Wall] static inline void avoid_unused_const_variable_compiler_warning(void) { (void)font; }
Thank you for that, much appreciated !!
Brian is the code for the file in blocks of 8 for each character? Just I'm trying to work out what characters you've put in lol
The characters occupy 5 Bytes per symbol, I have attached a clearer version of the file which is easier to read.
Sent from Mail for Windows
From: victor7376 Sent: 05 March 2022 15:39 To: Qrome/marquee-scroller Cc: brianmiller1956; Author Subject: Re: [Qrome/marquee-scroller] £ sign does not display (#155)
Brian is the code for the file in blocks of 8 for each character? Just I'm trying to work out what characters you've put in lol — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
// This is the 'classic' fixed-space bitmap font for Adafruit_GFX since 1.0. // See gfxfont.h for newer custom bitmap font info.
// PROGMEM is defefind for T4 to place data in specific memory section
// Standard ASCII 5x7 font
static const unsigned char font[] PROGMEM = { 0x00, 0x00, 0x00, 0x00, 0x00, //Empty 0x3E, 0x5B, 0x4F, 0x5B, 0x3E, //Happy Smiley 0x3E, 0x6B, 0x4F, 0x6B, 0x3E, 0x1C, 0x3E, 0x7C, 0x3E, 0x1C, 0x18, 0x3C, 0x7E, 0x3C, 0x18, 0x1C, 0x57, 0x7D, 0x57, 0x1C, 0x1C, 0x5E, 0x7F, 0x5E, 0x1C, 0x00, 0x18, 0x3C, 0x18, 0x00, 0xFF, 0xE7, 0xC3, 0xE7, 0xFF, 0x00, 0x18, 0x24, 0x18, 0x00, 0xFF, 0xE7, 0xDB, 0xE7, 0xFF, 0x30, 0x48, 0x3A, 0x06, 0x0E, 0x26, 0x29, 0x79, 0x29, 0x26, 0x40, 0x7F, 0x05, 0x05, 0x07, 0x40, 0x7F, 0x05, 0x25, 0x3F, 0x5A, 0x3C, 0xE7, 0x3C, 0x5A, //snowflake 0x7F, 0x3E, 0x1C, 0x1C, 0x08, 0x08, 0x1C, 0x1C, 0x3E, 0x7F, 0x14, 0x22, 0x7F, 0x22, 0x14, 0x5F, 0x5F, 0x00, 0x5F, 0x5F, 0x06, 0x09, 0x7F, 0x01, 0x7F, 0x00, 0x66, 0x89, 0x95, 0x6A, 0x60, 0x60, 0x60, 0x60, 0x60, 0x94, 0xA2, 0xFF, 0xA2, 0x94, 0x08, 0x04, 0x7E, 0x04, 0x08, 0x10, 0x20, 0x7E, 0x20, 0x10, 0x08, 0x08, 0x2A, 0x1C, 0x08, 0x08, 0x1C, 0x2A, 0x08, 0x08, 0x1E, 0x10, 0x10, 0x10, 0x10, 0x0C, 0x1E, 0x0C, 0x1E, 0x0C, 0x30, 0x38, 0x3E, 0x38, 0x30, 0x06, 0x0E, 0x3E, 0x0E, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, //space 0x00, 0x00, 0x5F, 0x00, 0x00, //! 0x00, 0x07, 0x00, 0x07, 0x00, //" 0x14, 0x7F, 0x14, 0x7F, 0x14, //# 0x24, 0x2A, 0x7F, 0x2A, 0x12, //$ 0x23, 0x13, 0x08, 0x64, 0x62, //% 0x36, 0x49, 0x56, 0x20, 0x50, //& 0x00, 0x04, 0x03, 0x01, 0x00, //' 0x00, 0x1C, 0x22, 0x41, 0x00, //( 0x00, 0x41, 0x22, 0x1C, 0x00, //) 0x2A, 0x1C, 0x7F, 0x1C, 0x2A, //* 0x08, 0x08, 0x3E, 0x08, 0x08, //+ 0x00, 0x80, 0x60, 0x00, 0x00, //, 0x00, 0x08, 0x08, 0x08, 0x00, //- 0x00, 0x00, 0x60, 0x60, 0x00, //. 0x20, 0x10, 0x08, 0x04, 0x02, //slash 0x3E, 0x51, 0x49, 0x45, 0x3E, //0 0x00, 0x42, 0x7F, 0x40, 0x00, //1 0x42, 0x61, 0x51, 0x49, 0x46, //2 0x22, 0x41, 0x49, 0x49, 0x36, //3 0x18, 0x14, 0x12, 0x7F, 0x10, //4 0x27, 0x45, 0x45, 0x45, 0x39, //5 0x3E, 0x4A, 0x49, 0x49, 0x32, //6 0x01, 0x71, 0x09, 0x05, 0x03, //7 0x36, 0x49, 0x49, 0x49, 0x36, //8 0x26, 0x49, 0x49, 0x29, 0x3E, //9 0x00, 0x00, 0x36, 0x36, 0x00, //: 0x00, 0x40, 0x34, 0x00, 0x00, //; 0x00, 0x08, 0x14, 0x22, 0x41, 0x14, 0x14, 0x14, 0x14, 0x14, //= 0x00, 0x41, 0x22, 0x14, 0x08, 0x02, 0x01, 0x59, 0x09, 0x06, //? 0x3E, 0x41, 0x5D, 0x55, 0x5E, //@ 0x7C, 0x12, 0x11, 0x12, 0x7C, //A 0x7F, 0x49, 0x49, 0x49, 0x36, //B 0x3E, 0x41, 0x41, 0x41, 0x22, //C 0x7F, 0x41, 0x41, 0x41, 0x3E, //D 0x7F, 0x49, 0x49, 0x49, 0x41, //E 0x7F, 0x09, 0x09, 0x09, 0x01, //F 0x3E, 0x41, 0x41, 0x51, 0x73, //G 0x7F, 0x08, 0x08, 0x08, 0x7F, //H 0x00, 0x41, 0x7F, 0x41, 0x00, //I 0x20, 0x40, 0x41, 0x3F, 0x01, //J 0x7F, 0x08, 0x14, 0x22, 0x41, //K 0x7F, 0x40, 0x40, 0x40, 0x40, //L 0x7F, 0x02, 0x1C, 0x02, 0x7F, //M 0x7F, 0x04, 0x08, 0x10, 0x7F, //N 0x3E, 0x41, 0x41, 0x41, 0x3E, //O 0x7F, 0x09, 0x09, 0x09, 0x06, //P 0x3E, 0x41, 0x51, 0x21, 0x5E, //Q 0x7F, 0x09, 0x19, 0x29, 0x46, //R 0x26, 0x49, 0x49, 0x49, 0x32, //S 0x03, 0x01, 0x7F, 0x01, 0x03, //T 0x3F, 0x40, 0x40, 0x40, 0x3F, //U 0x1F, 0x20, 0x40, 0x20, 0x1F, //V 0x3F, 0x40, 0x38, 0x40, 0x3F, //W 0x63, 0x14, 0x08, 0x14, 0x63, //X 0x03, 0x04, 0x78, 0x04, 0x03, //Y 0x61, 0x51, 0x49, 0x49, 0x43, //Z 0x00, 0x7F, 0x41, 0x41, 0x41, //[ 0x02, 0x04, 0x08, 0x10, 0x20, 0x00, 0x41, 0x41, 0x41, 0x7F, //] 0x04, 0x02, 0x01, 0x02, 0x04, 0x40, 0x40, 0x40, 0x40, 0x40, 0x00, 0x03, 0x07, 0x08, 0x00, 0x20, 0x54, 0x54, 0x78, 0x40, //a 0x7F, 0x48, 0x44, 0x44, 0x38, //b 0x38, 0x44, 0x44, 0x44, 0x28, //c 0x38, 0x44, 0x44, 0x48, 0x7F, //d100 0x38, 0x54, 0x54, 0x54, 0x18, //e 0x08, 0x7E, 0x09, 0x09, 0x02, //f 0x58, 0xA4, 0xA4, 0xA4, 0x78, //g 0x7F, 0x08, 0x04, 0x04, 0x78, //h 0x00, 0x44, 0x7D, 0x40, 0x00, //i 0x20, 0x40, 0x40, 0x3D, 0x00, //j 0x7F, 0x10, 0x28, 0x44, 0x00, //k 0x00, 0x41, 0x7F, 0x40, 0x00, //l 0x7C, 0x04, 0x78, 0x04, 0x78, //m 0x7C, 0x08, 0x04, 0x04, 0x78, //n110 0x38, 0x44, 0x44, 0x44, 0x38, //o 0xFC, 0x24, 0x24, 0x24, 0x18, //p 0x18, 0x24, 0x24, 0xFC, 0x40, //q 0x7C, 0x08, 0x04, 0x04, 0x08, //r 0x48, 0x54, 0x54, 0x24, 0x00, //s 0x04, 0x3F, 0x44, 0x44, 0x20, //t 0x3C, 0x40, 0x40, 0x20, 0x7C, //u 0x1C, 0x20, 0x40, 0x20, 0x1C, //v 0x3C, 0x40, 0x30, 0x40, 0x3C, //w 0x44, 0x28, 0x10, 0x28, 0x44, //x120 0x4C, 0x90, 0x90, 0x90, 0x7C, //y 0x44, 0x64, 0x54, 0x4C, 0x44, //z 0x00, 0x08, 0x36, 0x41, 0x00, 0x00, 0x00, 0x77, 0x00, 0x00, //| 0x00, 0x41, 0x36, 0x08, 0x00, 0x02, 0x01, 0x02, 0x04, 0x02, //~ 0x3C, 0x26, 0x23, 0x26, 0x3C, 0x1E, 0xA1, 0xA1, 0x61, 0x12, 0x3A, 0x40, 0x40, 0x20, 0x7A, 0x38, 0x54, 0x54, 0x55, 0x59,//130 0x21, 0x55, 0x55, 0x79, 0x41, 0x22, 0x54, 0x54, 0x78, 0x42, // a-umlaut 0x21, 0x55, 0x54, 0x78, 0x40, 0x20, 0x54, 0x55, 0x79, 0x40, //euro 0x0C, 0x1E, 0x52, 0x72, 0x12, 0x39, 0x55, 0x55, 0x55, 0x59, 0x39, 0x54, 0x54, 0x54, 0x59, 0x39, 0x55, 0x54, 0x54, 0x58, 0x00, 0x00, 0x45, 0x7C, 0x41, 0x00, 0x02, 0x45, 0x7D, 0x42,//140 0x00, 0x01, 0x45, 0x7C, 0x40, 0x7D, 0x12, 0x11, 0x12, 0x7D, // A-umlaut 0xF0, 0x28, 0x25, 0x28, 0xF0, 0x7C, 0x54, 0x55, 0x45, 0x00, 0x20, 0x54, 0x54, 0x7C, 0x54, 0x7C, 0x0A, 0x09, 0x7F, 0x49, 0x32, 0x49, 0x49, 0x49, 0x32, 0x3A, 0x44, 0x44, 0x44, 0x3A, // o-umlaut 0x32, 0x4A, 0x48, 0x48, 0x30, 0x3A, 0x41, 0x41, 0x21, 0x7A,//150 0x3A, 0x42, 0x40, 0x20, 0x78, 0x00, 0x9D, 0xA0, 0xA0, 0x7D, 0x3D, 0x42, 0x42, 0x42, 0x3D, // O-umlaut 0x3D, 0x40, 0x40, 0x40, 0x3D, 0x3C, 0x24, 0xFF, 0x24, 0x24, 0x48, 0x7E, 0x49, 0x41, 0x66, //£ 0x2B, 0x2F, 0xFC, 0x2F, 0x2B, 0xFF, 0x09, 0x29, 0xF6, 0x20, 0xC0, 0x88, 0x7E, 0x09, 0x03, 0x20, 0x54, 0x54, 0x79, 0x41,//160 0x00, 0x00, 0x44, 0x7D, 0x41, 0x30, 0x48, 0x48, 0x4A, 0x32, 0x48, 0x7E, 0x49, 0x41, 0x66, //£ 0x00, 0x7A, 0x0A, 0x0A, 0x72, 0x7D, 0x0D, 0x19, 0x31, 0x7D, 0x26, 0x29, 0x29, 0x2F, 0x28, 0x26, 0x29, 0x29, 0x29, 0x26, 0x30, 0x48, 0x4D, 0x40, 0x20, 0x38, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x38,//170 0x2F, 0x10, 0xC8, 0xAC, 0xBA, 0x2F, 0x10, 0x28, 0x34, 0xFA,//quarter 0x00, 0x00, 0x7B, 0x00, 0x00, 0x08, 0x14, 0x2A, 0x14, 0x22, 0x22, 0x14, 0x2A, 0x14, 0x08, 0x55, 0x00, 0x55, 0x00, 0x55, // #176 (25% block) 0xAA, 0x55, 0xAA, 0x55, 0xAA, // 50% block 0xFF, 0x55, 0xFF, 0x55, 0xFF, // 75% block 0x00, 0x00, 0x00, 0xFF, 0x00, 0x10, 0x10, 0x10, 0xFF, 0x00,//180 0x14, 0x14, 0x14, 0xFF, 0x00, 0x10, 0x10, 0xFF, 0x00, 0xFF, 0x10, 0x10, 0xF0, 0x10, 0xF0, 0x14, 0x14, 0x14, 0xFC, 0x00, 0x14, 0x14, 0xF7, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0xFF, 0x14, 0x14, 0xF4, 0x04, 0xFC, 0x14, 0x14, 0x17, 0x10, 0x1F, 0x10, 0x10, 0x1F, 0x10, 0x1F, 0x14, 0x14, 0x14, 0x1F, 0x00,//190 0x10, 0x10, 0x10, 0xF0, 0x00, 0x00, 0x00, 0x00, 0x1F, 0x10, 0x10, 0x10, 0x10, 0x1F, 0x10, 0x10, 0x10, 0x10, 0xF0, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, //zeroed out was 0,0,0,FF,10 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0xFF, 0x10, 0x00, 0x00, 0x00, 0xFF, 0x14, 0x00, 0x00, 0xFF, 0x00, 0xFF, 0x00, 0x00, 0x1F, 0x10, 0x17,//200 0x00, 0x00, 0xFC, 0x04, 0xF4, 0x14, 0x14, 0x17, 0x10, 0x17, 0x14, 0x14, 0xF4, 0x04, 0xF4, 0x00, 0x00, 0xFF, 0x00, 0xF7, 0x14, 0x14, 0x14, 0x14, 0x14, 0x14, 0x14, 0xF7, 0x00, 0xF7, 0x14, 0x14, 0x14, 0x17, 0x14, 0x10, 0x10, 0x1F, 0x10, 0x1F, 0x14, 0x14, 0x14, 0xF4, 0x14, 0x10, 0x10, 0xF0, 0x10, 0xF0,//210 0x00, 0x00, 0x1F, 0x10, 0x1F, 0x00, 0x00, 0x00, 0x1F, 0x14, 0x00, 0x00, 0x00, 0xFC, 0x14, 0x00, 0x00, 0xF0, 0x10, 0xF0, 0x10, 0x10, 0xFF, 0x10, 0xFF, 0x14, 0x14, 0x14, 0xFF, 0x14, 0x10, 0x10, 0x10, 0x1F, 0x00, 0x00, 0x00, 0x00, 0xF0, 0x10, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0,//220 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x38, 0x44, 0x44, 0x38, 0x44, 0xFC, 0x4A, 0x4A, 0x4A, 0x34, // sharp-s or beta 0x7E, 0x02, 0x02, 0x06, 0x06, 0x02, 0x7E, 0x02, 0x7E, 0x02,//Pi sign? 0x63, 0x55, 0x49, 0x41, 0x63, 0x38, 0x44, 0x44, 0x3C, 0x04, 0x40, 0x7E, 0x20, 0x1E, 0x20,//230 0x06, 0x02, 0x7E, 0x02, 0x02, 0x99, 0xA5, 0xE7, 0xA5, 0x99, 0x1C, 0x2A, 0x49, 0x2A, 0x1C, 0x4C, 0x72, 0x01, 0x72, 0x4C, 0x30, 0x4A, 0x4D, 0x4D, 0x30, 0x30, 0x48, 0x78, 0x48, 0x30, 0xBC, 0x62, 0x5A, 0x46, 0x3D, 0x3E, 0x49, 0x49, 0x49, 0x00, 0x7E, 0x01, 0x01, 0x01, 0x7E, 0x2A, 0x2A, 0x2A, 0x2A, 0x2A,//240 0x44, 0x44, 0x5F, 0x44, 0x44, 0x40, 0x51, 0x4A, 0x44, 0x40, 0x40, 0x44, 0x4A, 0x51, 0x40, 0x00, 0x00, 0xFF, 0x01, 0x03, 0xE0, 0x80, 0xFF, 0x00, 0x00, 0x08, 0x08, 0x6B, 0x6B, 0x08, 0x36, 0x12, 0x36, 0x24, 0x36, 0x06, 0x0F, 0x09, 0x0F, 0x06, 0x00, 0x00, 0x18, 0x18, 0x00, 0x00, 0x00, 0x10, 0x10, 0x00, 0x30, 0x40, 0xFF, 0x01, 0x01, 0x00, 0x1F, 0x01, 0x01, 0x1E, 0x00, 0x19, 0x1D, 0x17, 0x12, 0x00, 0x3C, 0x3C, 0x3C, 0x3C, 0x00, 0x00, 0x00, 0x00, 0x00 // #255 NBSP };
// allow clean compilation with [-Wunused-const-variable=] and [-Wall] static inline void avoid_unused_const_variable_compiler_warning(void) { (void)font; }
Thanks that has helped, which calculator have you used? I've only got one which is 8x8 & calculates into 8 hex
Good question Victor, I found something by Parola on Github but this worked in decimal and the data is in hex. I did this over a year ago and I modified about 25 numbers/letters It is a 5by8 matrix, the first byte lsb is at the top left hand corner and msb is the bottom of the column. Same for next 4 columns. I also found in one of the arduino libraries an excel spreadsheet for editing the dot data. Sorry to be vague, a lot of water has passed under the bridge since this was done.
Sent from my iPad Pro
On 5 Mar 2022, at 16:23, victor7376 @.***> wrote:
Thanks that has helped, which calculator have you used? I've only got one which is 8x8 & calculates into 8 hex
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.
https://pjrp.github.io/MDParolaFontEditor Found it! This goes down to 5*8
Sent from my iPad Pro
On 5 Mar 2022, at 16:23, victor7376 @.***> wrote:
Thanks that has helped, which calculator have you used? I've only got one which is 8x8 & calculates into 8 hex
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.
https://pjrp.github.io/MDParolaFontEditor Found it!
Sent from my iPad Pro
On 5 Mar 2022, at 16:23, victor7376 @.***> wrote:
Thanks that has helped, which calculator have you used? I've only got one which is 8x8 & calculates into 8 hex
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.
lol no problem thanks for the info, what I'm trying to do is add the youtube logo into the clock as I've got the basic clock working with youtube. If I can get a basic logo put into the scrolling or even in the current time would be the icing on the cake.
Plus I'm going to try and fix the euro symbol if you havent already done that ;).
I've been re-coding the clock so that it works with the latest 8266 library & latest ArduinoJson library, so far its all compiling successfully. Once I've got all the programming done I'll give the clock a full test.
I also used pen and graph paper, and drew pictures.
Sent from my iPad Pro
On 5 Mar 2022, at 16:23, victor7376 @.***> wrote:
Thanks that has helped, which calculator have you used? I've only got one which is 8x8 & calculates into 8 hex
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.
No I haven’t fixed the euro symbol, it actually displays 3 characters without any spaces between them, to me these problems look like an inability to handle characters in the second half of the font file.
Sent from my iPad Pro
On 5 Mar 2022, at 16:46, victor7376 @.***> wrote:
lol no problem thanks for the info, what I'm trying to do is add the youtube logo into the clock as I've got the basic clock working with youtube. If I can get a basic logo put into the scrolling or even in the current time would be the icing on the cake.
Plus I'm going to try and fix the euro symbol if you havent already done that ;).
I've been re-coding the clock so that it works with the latest 8266 library & latest ArduinoJson library, so far its all compiling successfully. Once I've got all the programming done I'll give the clock a full test.
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.
yep I've noticed that lol.
I have built 3 of these, I can only say well done,a fantastic effort, the £ sign will not display in either the news headlines or the message scroller, it displays something that is much too wide, also I have one running on a 6 module display, it works well, the wide clock displays very nicely but obviously the option to show temperature doesn't work. This doesn't bother me, I changed the 4 entries from =>8 panels to 6 and the wide clock works. Many thanks