AnsweredAssumed Answered

drawing letters on visual dsp++

Question asked by Yane.Coceski on Oct 9, 2011

hi guys,

 

I am making a touchscreen keyboard and i need to draw all of the letters of the laphabet in lower case. they need to be 8x14, i have a few already i just need help with the rest of them..thanks in advance

 

///////////////////////////////////////////////////

//////////////Channel_8x14///////////////////////

/* character = 'C' */

 

u8 Data1_C[]=

{

/*----------------------------------------

;hexcode: 0020

;width x height: 8 x 14

;size: 14 bytes

------------------------------------------*/

0x00, 0x00, 0x00, 0x1C, 0x22, 0x40, 0x40, 0x40,

0x40, 0x22, 0x1C, 0x00, 0x00, 0x00,

};

/* character = 'C' */

 

u8 Data1_C1[]=

{

/*----------------------------------------

;hexcode: 0020

;width x height: 8 x 14

;size: 14 bytes

------------------------------------------*/

0xFF, 0xFF, 0xFF, 0xE3, 0xDD, 0xBF, 0xBF, 0xBF,

0xBF, 0xDD, 0xE3, 0xFF, 0xFF, 0xFF,

};

/* character = h */

 

u8 Data1_h[]=

{

/*----------------------------------------

;hexcode: 0020

;width x height: 8 x 14

;size: 14 bytes

------------------------------------------*/

0x00, 0x00, 0x00, 0x40, 0x40, 0x58, 0x64, 0x44,

0x44, 0x44, 0x44, 0x00, 0x00, 0x00,

};

/* character = 'h' */

 

u8 Data1_h1[]=

{

/*----------------------------------------

;hexcode: 0020

;width x height: 8 x 14

;size: 14 bytes

------------------------------------------*/

0xFF, 0xFF, 0xFF, 0xBF, 0xBF, 0xA7, 0x9B, 0xBB,

0xBB, 0xBB, 0xBB, 0xFF, 0xFF, 0xFF,

};

/* character = a */

 

u8 Data1_a[]=

{

/*----------------------------------------

;hexcode: 0020

;width x height: 8 x 14

;size: 14 bytes

------------------------------------------*/

0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x44, 0x3C,

0x44, 0x4C, 0x34, 0x00, 0x00, 0x00,

};

/* character = 'a' */

 

u8 Data1_a1[]=

{

/*----------------------------------------

;hexcode: 0020

;width x height: 8 x 14

;size: 14 bytes

------------------------------------------*/

0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xC7, 0xBB, 0xC3,

0xBB, 0xB3, 0xCB, 0xFF, 0xFF, 0xFF,

};

/* character = n */

 

u8 Data1_n[]=

{

/*----------------------------------------

;hexcode: 0020

;width x height: 8 x 14

;size: 14 bytes

------------------------------------------*/

0x00, 0x00, 0x00, 0x00, 0x00, 0x78, 0x44, 0x44,

0x44, 0x44, 0x44, 0x00, 0x00, 0x00,

};

/* character = 'n' */

 

u8 Data1_n1[]=

{

/*----------------------------------------

;hexcode: 0020

;width x height: 8 x 14

;size: 14 bytes

------------------------------------------*/

0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x87, 0xBB, 0xBB,

0xBB, 0xBB, 0xBB, 0xFF, 0xFF, 0xFF,

};

/* character = e */

 

u8 Data1_e[]=

{

/*----------------------------------------

;hexcode: 0020

;width x height: 8 x 14

;size: 14 bytes

------------------------------------------*/

0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x44, 0x7C,

0x40, 0x44, 0x38, 0x00, 0x00, 0x00,

};

/* character = 'e' */

 

u8 Data1_e1[]=

{

/*----------------------------------------

;hexcode: 0020

;width x height: 8 x 14

;size: 14 bytes

------------------------------------------*/

0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xC7, 0xBB, 0x83,

0xBF, 0xBB, 0xC7, 0xFF, 0xFF, 0xFF,

};

/* character = l */

 

u8 Data1_l[]=

{

/*----------------------------------------

;hexcode: 0020

;width x height: 8 x 14

;size: 14 bytes

------------------------------------------*/

0x00, 0x00, 0x00, 0x10, 0x10, 0x10, 0x10, 0x10,

0x10, 0x10, 0x10, 0x00, 0x00, 0x00,

};

/* character = 'l' */

 

u8 Data1_l1[]=

{

/*----------------------------------------

;hexcode: 0020

;width x height: 8 x 14

;size: 14 bytes

------------------------------------------*/

0xFF, 0xFF, 0xFF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF,

0xEF, 0xEF, 0xEF, 0xFF, 0xFF, 0xFF,

};

/* character = : */

 

u8 Data1_co[]=

{

/*----------------------------------------

;hexcode: 0020

;width x height: 8 x 14

;size: 14 bytes

------------------------------------------*/

0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00,

0x00, 0x00, 0x10, 0x00, 0x00, 0x00,

};

/* character = ':' */

 

u8 Data1_co1[]=

{

/*----------------------------------------

;hexcode: 0020

;width x height: 8 x 14

;size: 14 bytes

------------------------------------------*/

0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xEF, 0xFF, 0xFF,

0xFF, 0xFF, 0xEF, 0xFF, 0xFF, 0xFF,

};

/* character = L */

 

u8 Data1_L[]=

{

/*----------------------------------------

;hexcode: 0020

;width x height: 8 x 14

;size: 14 bytes

------------------------------------------*/

0x00, 0x00, 0x00, 0x40, 0x40, 0x40, 0x40, 0x40,

0x40, 0x40, 0x7C, 0x00, 0x00, 0x00,

};

/* character = 'L' */

 

u8 Data1_L1[]=

{

/*----------------------------------------

;hexcode: 0020

;width x height: 8 x 14

;size: 14 bytes

------------------------------------------*/

0xFF, 0xFF, 0xFF, 0xBF, 0xBF, 0xBF, 0xBF, 0xBF,

0xBF, 0xBF, 0x83, 0xFF, 0xFF, 0xFF,

};

/* character = f */

 

u8 Data1_f[]=

{

/*----------------------------------------

;hexcode: 0020

;width x height: 8 x 14

;size: 14 bytes

------------------------------------------*/

0x00, 0x00, 0x00, 0x0C, 0x10, 0x38, 0x10, 0x10,

0x10, 0x20, 0x20, 0x20, 0x60, 0x00,

};

/* character = 'f' */

 

u8 Data1_f1[]=

{

/*----------------------------------------

;hexcode: 0020

;width x height: 8 x 14

;size: 14 bytes

------------------------------------------*/

0xFF, 0xFF, 0xFF, 0xF3, 0xEF, 0xC7, 0xEF, 0xEF,

0xEF, 0xDF, 0xDF, 0xDF, 0x9F, 0xFF,

};

/* character = t */

 

u8 Data1_t[]=

{

/*----------------------------------------

;hexcode: 0020

;width x height: 8 x 14

;size: 14 bytes

------------------------------------------*/

0x00, 0x00, 0x00, 0x10, 0x10, 0x38, 0x10, 0x10,

0x10, 0x10, 0x18, 0x00, 0x00, 0x00,

};

/* character = 't' */

 

u8 Data1_t1[]=

{

/*----------------------------------------

;hexcode: 0020

;width x height: 8 x 14

;size: 14 bytes

------------------------------------------*/

0xFF, 0xFF, 0xFF, 0xEF, 0xEF, 0xC7, 0xEF, 0xEF,

0xEF, 0xEF, 0xE7, 0xFF, 0xFF, 0xFF,

};

/* character = R */

 

u8 Data1_R[]=

{

/*----------------------------------------

;hexcode: 0020

;width x height: 8 x 14

;size: 14 bytes

------------------------------------------*/

0x00, 0x00, 0x00, 0x7C, 0x42, 0x42, 0x7C, 0x48,

0x44, 0x44, 0x42, 0x00, 0x00, 0x00,

};

/* character = 'R' */

 

u8 Data1_R1[]=

{

/*----------------------------------------

;hexcode: 0020

;width x height: 8 x 14

;size: 14 bytes

------------------------------------------*/

0xFF, 0xFF, 0xFF, 0x83, 0xBD, 0xBD, 0x83, 0xB7,

0xBB, 0xBB, 0xBD, 0xFF, 0xFF, 0xFF,

};

/* character = i */

 

u8 Data1_i[]=

{

/*----------------------------------------

;hexcode: 0020

;width x height: 8 x 14

;size: 14 bytes

------------------------------------------*/

0x00, 0x00, 0x00, 0x10, 0x00, 0x10, 0x10, 0x10,

0x10, 0x10, 0x10, 0x00, 0x00, 0x00,

};

/* character = 'i' */

 

u8 Data1_i1[]=

{

/*----------------------------------------

;hexcode: 0020

;width x height: 8 x 14

;size: 14 bytes

------------------------------------------*/

0xFF, 0xFF, 0xFF, 0xEF, 0xFF, 0xEF, 0xEF, 0xEF,

0xEF, 0xEF, 0xEF, 0xFF, 0xFF, 0xFF,

};

/* character = g */

 

u8 Data1_g[]=

{

/*----------------------------------------

;hexcode: 0020

;width x height: 8 x 14

;size: 14 bytes

------------------------------------------*/

0x00, 0x00, 0x00, 0x00, 0x00, 0x34, 0x4C, 0x44,

0x44, 0x4C, 0x34, 0x04, 0x78, 0x00,

};

/* character = 'g' */

 

u8 Data1_g1[]=

{

/*----------------------------------------

;hexcode: 0020

;width x height: 8 x 14

;size: 14 bytes

------------------------------------------*/

0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xCB, 0xB3, 0xBB,

0xBB, 0xB3, 0xCB, 0xFB, 0x87, 0xFF,

};

/* character = & */

 

u8 Data1_and[]=

{

/*----------------------------------------

;hexcode: 0020

;width x height: 8 x 14

;size: 14 bytes

------------------------------------------*/

0x00, 0x00, 0x00, 0x18, 0x24, 0x24, 0x18, 0x28,

0x46, 0x44, 0x3A, 0x00, 0x00, 0x00,

};

/* character = '&' */

 

u8 Data1_and1[]=

{

/*----------------------------------------

;hexcode: 0020

;width x height: 8 x 14

;size: 14 bytes

------------------------------------------*/

0xFF, 0xFF, 0xFF, 0xE7, 0xDB, 0xDB, 0xE7, 0xD7,

0xB9, 0xBB, 0xC5, 0xFF, 0xFF, 0xFF,

};

////////////Magnitude///////////////////////

/* character = m */

 

u8 Data1_m[]=

{

/*----------------------------------------

;hexcode: 0020

;width x height: 8 x 14

;size: 14 bytes

------------------------------------------*/

0x00, 0x00, 0x00, 0x00, 0x00, 0x5E, 0x69, 0x49,

0x49, 0x49, 0x49, 0x00, 0x00, 0x00,

};

/* character = 'm' */

 

u8 Data1_m1[]=

{

/*----------------------------------------

;hexcode: 0020

;width x height: 8 x 14

;size: 14 bytes

------------------------------------------*/

0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xA1, 0x96, 0xB6,

0xB6, 0xB6, 0xB6, 0xFF, 0xFF, 0xFF,

};

/* character = u */

 

u8 Data1_u[]=

{

/*----------------------------------------

;hexcode: 0020

;width x height: 8 x 14

;size: 14 bytes

------------------------------------------*/

0x00, 0x00, 0x00, 0x00, 0x00, 0x44, 0x44, 0x44,

0x44, 0x4C, 0x34, 0x00, 0x00, 0x00,

};

/* character = 'u' */

 

u8 Data1_u1[]=

{

/*----------------------------------------

;hexcode: 0020

;width x height: 8 x 14

;size: 14 bytes

------------------------------------------*/

0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xBB, 0xBB, 0xBB,

0xBB, 0xB3, 0xCB, 0xFF, 0xFF, 0xFF,

};

/* character = d */

 

u8 Data1_d[]=

{

/*----------------------------------------

;hexcode: 0020

;width x height: 8 x 14

;size: 14 bytes

------------------------------------------*/

0x00, 0x00, 0x00, 0x04, 0x04, 0x34, 0x4C, 0x44,

0x44, 0x4C, 0x34, 0x00, 0x00, 0x00,

};

/* character = 'd' */

 

u8 Data1_d1[]=

{

/*----------------------------------------

;hexcode: 0020

;width x height: 8 x 14

;size: 14 bytes

------------------------------------------*/

0xFF, 0xFF, 0xFF, 0xFB, 0xFB, 0xCB, 0xB3, 0xBB,

0xBB, 0xB3, 0xCB, 0xFF, 0xFF, 0xFF,

};

/* character = M */

 

u8 Data1_M[]=

{

/*----------------------------------------

;hexcode: 0020

;width x height: 8 x 14

;size: 14 bytes

------------------------------------------*/

0x00, 0x00, 0x00, 0x41, 0x63, 0x63, 0x55, 0x55,

0x55, 0x49, 0x49, 0x00, 0x00, 0x00,

};

/* character = 'M' */

 

u8 Data1_M1[]=

{

/*----------------------------------------

;hexcode: 0020

;width x height: 8 x 14

;size: 14 bytes

------------------------------------------*/

0xFF, 0xFF, 0xFF, 0xBE, 0x9C, 0x9C, 0xAA, 0xAA,

0xAA, 0xB6, 0xB6, 0xFF, 0xFF, 0xFF,

};

 

////////////Amplitude/////////////

/* character = A */

 

u8 Data1_A[]=

{

/*----------------------------------------

;hexcode: 0020

;width x height: 8 x 14

;size: 14 bytes

------------------------------------------*/

0x00, 0x00, 0x00, 0x08, 0x14, 0x14, 0x14, 0x22,

0x3E, 0x41, 0x41, 0x00, 0x00, 0x00,

};

/* character = 'A' */

 

u8 Data1_A1[]=

{

/*----------------------------------------

;hexcode: 0020

;width x height: 8 x 14

;size: 14 bytes

------------------------------------------*/

0xFF, 0xFF, 0xFF, 0xF7, 0xEB, 0xEB, 0xEB, 0xDD,

0xC1, 0xBE, 0xBE, 0xFF, 0xFF, 0xFF,

};

/* character = p */

 

u8 Data1_p[]=

{

/*----------------------------------------

;hexcode: 0020

;width x height: 8 x 14

;size: 14 bytes

------------------------------------------*/

0x00, 0x00, 0x00, 0x00, 0x00, 0x58, 0x64, 0x44,

0x44, 0x64, 0x58, 0x40, 0x40, 0x00,

};

 

/* character = 'p' */

 

u8 Data1_p1[]=

{

/*----------------------------------------

;hexcode: 0020

;width x height: 8 x 14

;size: 14 bytes

------------------------------------------*/

0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xA7, 0x9B, 0xBB,

0xBB, 0x9B, 0xA7, 0xBF, 0xBF, 0xFF,

};

////////Time & Freq///////////

/* character = T */

 

u8 Data1_T[]=

{

/*----------------------------------------

;hexcode: 0020

;width x height: 8 x 14

;size: 14 bytes

------------------------------------------*/

0x00, 0x00, 0x00, 0x7C, 0x10, 0x10, 0x10, 0x10,

0x10, 0x10, 0x10, 0x00, 0x00, 0x00,

};

/* character = 'T' */

 

u8 Data1_T1[]=

{

/*----------------------------------------

;hexcode: 0020

;width x height: 8 x 14

;size: 14 bytes

------------------------------------------*/

0xFF, 0xFF, 0xFF, 0x83, 0xEF, 0xEF, 0xEF, 0xEF,

0xEF, 0xEF, 0xEF, 0xFF, 0xFF, 0xFF,

};

/* character = F */

 

u8 Data1_F[]=

{

/*----------------------------------------

;hexcode: 0020

;width x height: 8 x 14

;size: 14 bytes

------------------------------------------*/

0x00, 0x00, 0x00, 0x7C, 0x40, 0x40, 0x78, 0x40,

0x40, 0x40, 0x40, 0x00, 0x00, 0x00,

};

/* character = 'F' */

 

u8 Data1_F1[]=

{

/*----------------------------------------

;hexcode: 0020

;width x height: 8 x 14

;size: 14 bytes

------------------------------------------*/

0xFF, 0xFF, 0xFF, 0x83, 0xBF, 0xBF, 0x87, 0xBF,

0xBF, 0xBF, 0xBF, 0xFF, 0xFF, 0xFF,

};

/* character = r */

 

u8 Data1_r[]=

{

/*----------------------------------------

;hexcode: 0020

;width x height: 8 x 14

;size: 14 bytes

------------------------------------------*/

0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x30, 0x20,

0x20, 0x20, 0x20, 0x00, 0x00, 0x00,

};

/* character = 'r' */

 

u8 Data1_r1[]=

{

/*----------------------------------------

;hexcode: 0020

;width x height: 8 x 14

;size: 14 bytes

------------------------------------------*/

0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xD7, 0xCF, 0xDF,

0xDF, 0xDF, 0xDF, 0xFF, 0xFF, 0xFF,

};

/* character = q */

 

u8 Data1_q[]=

{

/*----------------------------------------

;hexcode: 0020

;width x height: 8 x 14

;size: 14 bytes

------------------------------------------*/

0x00, 0x00, 0x00, 0x00, 0x00, 0x34, 0x4C, 0x44,

0x44, 0x4C, 0x34, 0x04, 0x04, 0x00,

};

/* character = 'q' */

 

u8 Data1_q1[]=

{

/*----------------------------------------

;hexcode: 0020

;width x height: 8 x 14

;size: 14 bytes

------------------------------------------*/

0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xCB, 0xB3, 0xBB,

0xBB, 0xB3, 0xCB, 0xFB, 0xFB, 0xFF,

};

/* character = s */

 

u8 Data1_s[]=

{

/*----------------------------------------

;hexcode: 0020

;width x height: 8 x 14

;size: 14 bytes

------------------------------------------*/

0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x44, 0x30,

0x08, 0x44, 0x38, 0x00, 0x00, 0x00,

};

/* character = 's' */

 

u8 Data1_s1[]=

{

/*----------------------------------------

;hexcode: 0020

;width x height: 8 x 14

;size: 14 bytes

------------------------------------------*/

0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xC7, 0xBB, 0xCF,

0xF7, 0xBB, 0xC7, 0xFF, 0xFF, 0xFF,

};

/* character = c */

 

u8 Data1_c[]=

{

/*----------------------------------------

;hexcode: 0020

;width x height: 8 x 14

;size: 14 bytes

------------------------------------------*/

0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x44, 0x40,

0x40, 0x44, 0x38, 0x00, 0x00, 0x00,

};

/* character = 'c' */

 

u8 Data1_c1[]=

{

/*----------------------------------------

;hexcode: 0020

;width x height: 8 x 14

;size: 14 bytes

------------------------------------------*/

0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xC7, 0xBB, 0xBF,

0xBF, 0xBB, 0xC7, 0xFF, 0xFF, 0xFF,

};

/* character = ( */

 

u8 Data1_Lblanket[]=

{

/*----------------------------------------

;hexcode: 0028

;width x height: 4 x 14

;size: 14 bytes

------------------------------------------*/

0x00, 0x00, 0x00, 0x20, 0x40, 0x80, 0x80, 0x80,

0x80, 0x80, 0x80, 0x40, 0x20, 0x00,

};

Outcomes