Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

Problem sa fontom na TFT 2.8" displeju

[es] :: Elektronika :: Mikrokontroleri :: Problem sa fontom na TFT 2.8" displeju

[ Pregleda: 947 | Odgovora: 2 ] > FB > Twit

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

mnn
sm

Član broj: 85435
Poruke: 723
*.dynamic.isp.telekom.rs.



+25 Profil

icon Problem sa fontom na TFT 2.8" displeju22.11.2017. u 14:59 - pre 77 meseci
Ako ima neko koje je petljao oko fontova na grafičkim displejima, pošto ja ili nešto ne vidim ili ne znam.
Imam potrebu da na TFT 2.8" prikažem velike brojeve. Kako mi cela ASCII tabela zauzima mnogo prostora odlučio sam da izbacim nepotrebne karaktere.
Sa odbacivanjem karaktera posle brojeva ( velika i mala slova )nema problema. Prikaz radi korektno
Problem nastaje kad želim da izbacim karaktere pre brojeva. Tada mi dolazi do "prebacivanja" preko brojeva.
Kako rešiti problem da mi font ispravno "nišani" brojeve.

U pitanju je PIC18F a od alata za rad koristim Microchipov "Graphics Resource Converter" koji "ima" u sebi mogućnost podešavanja znakova za prikaz. Čini mi se da
on dobro izgeneriše znakove i izbaci nepotrebne karaktere samo je problem oko adresiranja

Ovo je dobro, ali je i dalje veliko i neprihvatljivo pošto mi za font veličine 72 zauzima oko 60% memorije
specijalni karakteri i brojevi

Code:



const char __Monospaced_plain_72[] __attribute__((aligned(2))) =
{
/****************************************
 * Font header
 ****************************************/
    0x00,           // Font ID
    0x00,           // Font information:  1 bit per pixel, Characters zero degress rotation
    0x20, 0x00,     // First Character
    0x39, 0x00,     // Last Character
    0x5F, 0x00,     // Height
/****************************************
 * Font Glyph Table
 ****************************************/
    0x2B,              // width of the glyph
    0x70, 0x00, 0x00,  // Character - 32, offset (0x00000070)
    0x2B,              // width of the glyph
    0xAA, 0x02, 0x00,  // Character - 33, offset (0x000002AA)
    0x2B,              // width of the glyph
    0xE4, 0x04, 0x00,  // Character - 34, offset (0x000004E4)
    0x2B,              // width of the glyph
    0x1E, 0x07, 0x00,  // Character - 35, offset (0x0000071E)
    0x2B,              // width of the glyph
    0x58, 0x09, 0x00,  // Character - 36, offset (0x00000958)
    0x2B,              // width of the glyph
    0x92, 0x0B, 0x00,  // Character - 37, offset (0x00000B92)
    0x2B,              // width of the glyph
    0xCC, 0x0D, 0x00,  // Character - 38, offset (0x00000DCC)
    0x2B,              // width of the glyph
    0x06, 0x10, 0x00,  // Character - 39, offset (0x00001006)
    0x2B,              // width of the glyph
    0x40, 0x12, 0x00,  // Character - 40, offset (0x00001240)
    0x2B,              // width of the glyph
    0x7A, 0x14, 0x00,  // Character - 41, offset (0x0000147A)
    0x2B,              // width of the glyph
    0xB4, 0x16, 0x00,  // Character - 42, offset (0x000016B4)
    0x2B,              // width of the glyph
    0xEE, 0x18, 0x00,  // Character - 43, offset (0x000018EE)
    0x2B,              // width of the glyph
    0x28, 0x1B, 0x00,  // Character - 44, offset (0x00001B28)
    0x2B,              // width of the glyph
    0x62, 0x1D, 0x00,  // Character - 45, offset (0x00001D62)
    0x2B,              // width of the glyph
    0x9C, 0x1F, 0x00,  // Character - 46, offset (0x00001F9C)
    0x2B,              // width of the glyph
    0xD6, 0x21, 0x00,  // Character - 47, offset (0x000021D6)
    0x2B,              // width of the glyph
    0x10, 0x24, 0x00,  // Character - 48, offset (0x00002410)
    0x2B,              // width of the glyph
    0x4A, 0x26, 0x00,  // Character - 49, offset (0x0000264A)
    0x2B,              // width of the glyph
    0x84, 0x28, 0x00,  // Character - 50, offset (0x00002884)
    0x2B,              // width of the glyph
    0xBE, 0x2A, 0x00,  // Character - 51, offset (0x00002ABE)
    0x2B,              // width of the glyph
    0xF8, 0x2C, 0x00,  // Character - 52, offset (0x00002CF8)
    0x2B,              // width of the glyph
    0x32, 0x2F, 0x00,  // Character - 53, offset (0x00002F32)
    0x2B,              // width of the glyph
    0x6C, 0x31, 0x00,  // Character - 54, offset (0x0000316C)
    0x2B,              // width of the glyph
    0xA6, 0x33, 0x00,  // Character - 55, offset (0x000033A6)
    0x2B,              // width of the glyph
    0xE0, 0x35, 0x00,  // Character - 56, offset (0x000035E0)
    0x2B,              // width of the glyph
    0x1A, 0x38, 0x00,  // Character - 57, offset (0x0000381A)
/***********************************
 * Font Characters
 ***********************************/
/***********************************
 * Character - 32
 ***********************************/
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 

/***********************************
 * Character - 33
 ***********************************/
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x70, 0x00, 0x00, 0x00,         //                     ***                         
    0x00, 0x00, 0xF8, 0x00, 0x00, 0x00,         //                    *****                        
    0x00, 0x00, 0xF8, 0x00, 0x00, 0x00,         //                    *****                        
    0x00, 0x00, 0xF8, 0x00, 0x00, 0x00,         //                    *****                        
    0x00, 0x00, 0xF8, 0x00, 0x00, 0x00,         //                    *****                        
    0x00, 0x00, 0xF8, 0x00, 0x00, 0x00,         //                    *****                        
    0x00, 0x00, 0xF8, 0x00, 0x00, 0x00,         //                    *****                        
    0x00, 0x00, 0xF8, 0x00, 0x00, 0x00,         //                    *****                        
    0x00, 0x00, 0xF8, 0x00, 0x00, 0x00,         //                    *****                        
    0x00, 0x00, 0xF8, 0x00, 0x00, 0x00,         //                    *****                        
    0x00, 0x00, 0xF8, 0x00, 0x00, 0x00,         //                    *****                        
    0x00, 0x00, 0xF8, 0x00, 0x00, 0x00,         //                    *****                        
    0x00, 0x00, 0xF8, 0x00, 0x00, 0x00,         //                    *****                        
    0x00, 0x00, 0xF8, 0x00, 0x00, 0x00,         //                    *****                        
    0x00, 0x00, 0xF8, 0x00, 0x00, 0x00,         //                    *****                        
    0x00, 0x00, 0xF0, 0x00, 0x00, 0x00,         //                     ****                        
    0x00, 0x00, 0x70, 0x00, 0x00, 0x00,         //                     ***                         
    0x00, 0x00, 0x70, 0x00, 0x00, 0x00,         //                     ***                         
    0x00, 0x00, 0x70, 0x00, 0x00, 0x00,         //                     ***                         
    0x00, 0x00, 0x70, 0x00, 0x00, 0x00,         //                     ***                         
    0x00, 0x00, 0x70, 0x00, 0x00, 0x00,         //                     ***                         
    0x00, 0x00, 0x70, 0x00, 0x00, 0x00,         //                     ***                         
    0x00, 0x00, 0x70, 0x00, 0x00, 0x00,         //                     ***                         
    0x00, 0x00, 0x70, 0x00, 0x00, 0x00,         //                     ***                         
    0x00, 0x00, 0x70, 0x00, 0x00, 0x00,         //                     ***                         
    0x00, 0x00, 0x70, 0x00, 0x00, 0x00,         //                     ***                         
    0x00, 0x00, 0x70, 0x00, 0x00, 0x00,         //                     ***                         
    0x00, 0x00, 0x70, 0x00, 0x00, 0x00,         //                     ***                         
    0x00, 0x00, 0x70, 0x00, 0x00, 0x00,         //                     ***                         
    0x00, 0x00, 0x70, 0x00, 0x00, 0x00,         //                     ***                         
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0xF8, 0x00, 0x00, 0x00,         //                    *****                        
    0x00, 0x00, 0xF8, 0x00, 0x00, 0x00,         //                    *****                        
    0x00, 0x00, 0xFC, 0x01, 0x00, 0x00,         //                   *******                       
    0x00, 0x00, 0xFC, 0x01, 0x00, 0x00,         //                   *******                       
    0x00, 0x00, 0xFC, 0x01, 0x00, 0x00,         //                   *******                       
    0x00, 0x00, 0xF8, 0x00, 0x00, 0x00,         //                    *****                        
    0x00, 0x00, 0xF8, 0x00, 0x00, 0x00,         //                    *****                        
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0


... do broja 9




Ovo bi bilo dobro što se veličine tiče kad bi radilo kako treba
Samo brojevi

Code:


const char __Monospaced_plain_72[] __attribute__((aligned(2))) =
{
/****************************************
 * Font header
 ****************************************/
    0x00,           // Font ID
    0x00,           // Font information:  1 bit per pixel, Characters zero degress rotation
    0x30, 0x00,     // First Character
    0x39, 0x00,     // Last Character
    0x5F, 0x00,     // Height
/****************************************
 * Font Glyph Table
 ****************************************/
    0x2B,              // width of the glyph
    0x30, 0x00, 0x00,  // Character - 48, offset (0x00000030)
    0x2B,              // width of the glyph
    0x6A, 0x02, 0x00,  // Character - 49, offset (0x0000026A)
    0x2B,              // width of the glyph
    0xA4, 0x04, 0x00,  // Character - 50, offset (0x000004A4)
    0x2B,              // width of the glyph
    0xDE, 0x06, 0x00,  // Character - 51, offset (0x000006DE)
    0x2B,              // width of the glyph
    0x18, 0x09, 0x00,  // Character - 52, offset (0x00000918)
    0x2B,              // width of the glyph
    0x52, 0x0B, 0x00,  // Character - 53, offset (0x00000B52)
    0x2B,              // width of the glyph
    0x8C, 0x0D, 0x00,  // Character - 54, offset (0x00000D8C)
    0x2B,              // width of the glyph
    0xC6, 0x0F, 0x00,  // Character - 55, offset (0x00000FC6)
    0x2B,              // width of the glyph
    0x00, 0x12, 0x00,  // Character - 56, offset (0x00001200)
    0x2B,              // width of the glyph
    0x3A, 0x14, 0x00,  // Character - 57, offset (0x0000143A)
/***********************************
 * Font Characters
 ***********************************/
/***********************************
 * Character - 48
 ***********************************/
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0xFC, 0x01, 0x00, 0x00,         //                   *******                       
    0x00, 0x00, 0xFF, 0x07, 0x00, 0x00,         //                 ***********                     
    0x00, 0xC0, 0xFF, 0x1F, 0x00, 0x00,         //               ***************                   
    0x00, 0xE0, 0x03, 0x3E, 0x00, 0x00,         //              *****       *****                  
    0x00, 0xE0, 0x00, 0x78, 0x00, 0x00,         //              ***           ****                 
    0x00, 0x70, 0x00, 0x70, 0x00, 0x00,         //             ***             ***                 
    0x00, 0x78, 0x00, 0xE0, 0x00, 0x00,         //            ****              ***                
    0x00, 0x38, 0x00, 0xE0, 0x00, 0x00,         //            ***               ***                
    0x00, 0x1C, 0x00, 0xC0, 0x01, 0x00,         //           ***                 ***               
    0x00, 0x1C, 0x00, 0xC0, 0x01, 0x00,         //           ***                 ***               
    0x00, 0x0E, 0x00, 0x80, 0x03, 0x00,         //          ***                   ***              
    0x00, 0x0E, 0x00, 0x80, 0x03, 0x00,         //          ***                   ***              
    0x00, 0x0E, 0x00, 0x80, 0x03, 0x00,         //          ***                   ***              
    0x00, 0x0E, 0x00, 0x80, 0x03, 0x00,         //          ***                   ***              
    0x00, 0x07, 0x00, 0x00, 0x07, 0x00,         //         ***                     ***             
    0x00, 0x07, 0x00, 0x00, 0x07, 0x00,         //         ***                     ***             
    0x00, 0x07, 0x00, 0x00, 0x07, 0x00,         //         ***                     ***             
    0x00, 0x07, 0x00, 0x00, 0x07, 0x00,         //         ***                     ***             
    0x00, 0x07, 0x00, 0x00, 0x07, 0x00,         //         ***                     ***             
    0x00, 0x07, 0x00, 0x00, 0x07, 0x00,         //         ***                     ***             
    0x00, 0x07, 0x00, 0x00, 0x07, 0x00,         //         ***                     ***             
    0x00, 0x07, 0x00, 0x00, 0x07, 0x00,         //         ***                     ***             
    0x00, 0x07, 0x00, 0x00, 0x07, 0x00,         //         ***                     ***             
    0x00, 0x07, 0x00, 0x00, 0x07, 0x00,         //         ***                     ***             
    0x00, 0x07, 0x00, 0x00, 0x07, 0x00,         //         ***                     ***             
    0x00, 0x07, 0x00, 0x00, 0x07, 0x00,         //         ***                     ***             
    0x00, 0x07, 0x00, 0x00, 0x07, 0x00,         //         ***                     ***             
    0x00, 0x07, 0x00, 0x00, 0x07, 0x00,         //         ***                     ***             
    0x00, 0x07, 0x00, 0x00, 0x07, 0x00,         //         ***                     ***             
    0x00, 0x07, 0x00, 0x00, 0x07, 0x00,         //         ***                     ***             
    0x00, 0x07, 0x00, 0x00, 0x07, 0x00,         //         ***                     ***             
    0x00, 0x0F, 0x00, 0x00, 0x07, 0x00,         //         ****                    ***             
    0x00, 0x0E, 0x00, 0x80, 0x03, 0x00,         //          ***                   ***              
    0x00, 0x0E, 0x00, 0x80, 0x03, 0x00,         //          ***                   ***              
    0x00, 0x0E, 0x00, 0x80, 0x03, 0x00,         //          ***                   ***              
    0x00, 0x1E, 0x00, 0xC0, 0x03, 0x00,         //          ****                 ****              
    0x00, 0x1C, 0x00, 0xC0, 0x01, 0x00,         //           ***                 ***               
    0x00, 0x1C, 0x00, 0xC0, 0x01, 0x00,         //           ***                 ***               
    0x00, 0x38, 0x00, 0xE0, 0x00, 0x00,         //            ***               ***                
    0x00, 0x78, 0x00, 0xF0, 0x00, 0x00,         //            ****             ****                
    0x00, 0x70, 0x00, 0x70, 0x00, 0x00,         //             ***             ***                 
    0x00, 0xE0, 0x00, 0x3C, 0x00, 0x00,         //              ***          ****                  
    0x00, 0xE0, 0x03, 0x3E, 0x00, 0x00,         //              *****       *****                  
    0x00, 0xC0, 0xFF, 0x1F, 0x00, 0x00,         //               ***************                   
    0x00, 0x00, 0xFF, 0x07, 0x00, 0x00,         //                 ***********                     
    0x00, 0x00, 0xFC, 0x01, 0x00, 0x00,         //                   *******                       
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 

/***********************************
 * Character - 49
 ***********************************/
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0xC0, 0x00, 0x00, 0x00,         //                       **                        
    0x00, 0x00, 0xF8, 0x00, 0x00, 0x00,         //                    *****                        
    0x00, 0x80, 0xFF, 0x00, 0x00, 0x00,         //                *********                        
    0x00, 0xF0, 0xFF, 0x00, 0x00, 0x00,         //             ************                        
    0x00, 0xFE, 0xE7, 0x00, 0x00, 0x00,         //          **********  ***                        
    0x00, 0x7F, 0xE0, 0x00, 0x00, 0x00,         //         *******      ***                        
    0x00, 0x07, 0xE0, 0x00, 0x00, 0x00,         //         ***          ***                        
    0x00, 0x00, 0xE0, 0x00, 0x00, 0x00,         //                      ***                        
    0x00, 0x00, 0xE0, 0x00, 0x00, 0x00,         //                      ***                        
    0x00, 0x00, 0xE0, 0x00, 0x00, 0x00,         //                      ***                        
    0x00, 0x00, 0xE0, 0x00, 0x00, 0x00,         //                      ***                        
    0x00, 0x00, 0xE0, 0x00, 0x00, 0x00,         //                      ***                        
    0x00, 0x00, 0xE0, 0x00, 0x00, 0x00,         //                      ***                        
    0x00, 0x00, 0xE0, 0x00, 0x00, 0x00,         //                      ***                        
    0x00, 0x00, 0xE0, 0x00, 0x00, 0x00,         //                      ***                        
    0x00, 0x00, 0xE0, 0x00, 0x00, 0x00,         //                      ***                        
    0x00, 0x00, 0xE0, 0x00, 0x00, 0x00,         //                      ***                        
    0x00, 0x00, 0xE0, 0x00, 0x00, 0x00,         //                      ***                        
    0x00, 0x00, 0xE0, 0x00, 0x00, 0x00,         //                      ***                        
    0x00, 0x00, 0xE0, 0x00, 0x00, 0x00,         //                      ***                        
    0x00, 0x00, 0xE0, 0x00, 0x00, 0x00,         //                      ***                        
    0x00, 0x00, 0xE0, 0x00, 0x00, 0x00,         //                      ***                        
    0x00, 0x00, 0xE0, 0x00, 0x00, 0x00,         //                      ***                        
    0x00, 0x00, 0xE0, 0x00, 0x00, 0x00,         //                      ***                        
    0x00, 0x00, 0xE0, 0x00, 0x00, 0x00,         //                      ***                        
    0x00, 0x00, 0xE0, 0x00, 0x00, 0x00,         //                      ***                        
    0x00, 0x00, 0xE0, 0x00, 0x00, 0x00,         //                      ***                        
    0x00, 0x00, 0xE0, 0x00, 0x00, 0x00,         //                      ***                        
    0x00, 0x00, 0xE0, 0x00, 0x00, 0x00,         //                      ***                        
    0x00, 0x00, 0xE0, 0x00, 0x00, 0x00,         //                      ***                        
    0x00, 0x00, 0xE0, 0x00, 0x00, 0x00,         //                      ***                        
    0x00, 0x00, 0xE0, 0x00, 0x00, 0x00,         //                      ***                        
    0x00, 0x00, 0xE0, 0x00, 0x00, 0x00,         //                      ***                        
    0x00, 0x00, 0xE0, 0x00, 0x00, 0x00,         //                      ***                        
    0x00, 0x00, 0xE0, 0x00, 0x00, 0x00,         //                      ***                        
    0x00, 0x00, 0xE0, 0x00, 0x00, 0x00,         //                      ***                        
    0x00, 0x00, 0xE0, 0x00, 0x00, 0x00,         //                      ***                        
    0x00, 0x00, 0xE0, 0x00, 0x00, 0x00,         //                      ***                        
    0x00, 0x00, 0xE0, 0x00, 0x00, 0x00,         //                      ***                        
    0x00, 0x00, 0xE0, 0x00, 0x00, 0x00,         //                      ***                        
    0x00, 0x00, 0xE0, 0x00, 0x00, 0x00,         //                      ***                        
    0x00, 0x00, 0xE0, 0x00, 0x00, 0x00,         //                      ***                        
    0x00, 0xFE, 0xFF, 0xFF, 0x0F, 0x00,         //          ***************************            
    0x00, 0xFE, 0xFF, 0xFF, 0x0F, 0x00,         //          ***************************            
    0x00, 0xFE, 0xFF, 0xFF, 0x0F, 0x00,         //          ***************************            
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00,         //                                                 

/***********************************
 * Character - 50
 ***********************************/
                                  

};

... do broja 9


 
Odgovor na temu

yugaja
BG

Član broj: 18381
Poruke: 402
*.dynamic.sbb.rs.

Sajt: yugaja.co.nf


+4 Profil

icon Re: Problem sa fontom na TFT 2.8" displeju25.11.2017. u 18:57 - pre 77 meseci
Moras napraviti konverziju iz ascii u taj tvoj custom niz karaktera koji ide od nule. Kako ces koristiti samo brojeve, verovatno je dovoljno samo smanjiti ascii kod za 48 - da nula gadja karakter tj element niza sa indeksom nula i tako redom...
R Tape loading error, 0:1
 
Odgovor na temu

mnn
sm

Član broj: 85435
Poruke: 723
*.dynamic.isp.telekom.rs.



+25 Profil

icon Re: Problem sa fontom na TFT 2.8" displeju01.12.2017. u 17:52 - pre 77 meseci
Radi
Hvala na sugestiji
Citat:


void TFT_WriteChar(Uchar c, Uint x, Uint y, Uint color1, Uint color2) {
Uchar i, j, k;
Uint p;
p = c - 32; // orginal krece od pozicije 32
//p = c - 48; // gadja karakter 0-9, krece od pozicije 48 za karakter ´0´
p = p * 4;
p = p + 8;
.
.
.



 
Odgovor na temu

[es] :: Elektronika :: Mikrokontroleri :: Problem sa fontom na TFT 2.8" displeju

[ Pregleda: 947 | Odgovora: 2 ] > FB > Twit

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.