Hi everyone!
I managed to run a demo application by Steve using the NokiaGLCD wrapper(http://www.picbasic.co.uk/forum/show...ght=3310+Nokia).
Here is the sample code I'm uisng..
My question is how can I display a font like the one below(please see attached image) this the hex equivalent...Code:'--------------------------------< HelloWorld_16F877 >-------------------------------------- ' ' File name : HelloWorld_16F877.pbp ' Version : 1.0 ' Company : Mister E ' Programmer : Steve Monfette ' Date : JULY 27, 2011 ' Device : PIC16F877 @20MHz ' '------------------------------------------------------------------------------------------- '---------------------------< Project description >----------------------------------------- ' ' Basic code example to display the usual Hello World on the NOKIA GLCD. ' This also show how to declare/use some of the GLCD_NOKIA.PBP Defines ' ' Compile: 1057 words '------------------------------------------------------------------------------------------- ' ' Pic Configuration ' ================= '@ __CONFIG _HS_OSC & _WDT_OFF & _PWRTE_ON & _BODEN_ON & _LVP_OFF DEFINE OSC 20 ' ' Hardware assignment & configuration ' =================================== ' ' GLCD ' ---- ' those are not needed as they're exactly the default one, ' but it show how to use/declare them. DEFINE GLCD_SCE PORTB,4 DEFINE GLCD_RES PORTB,3 DEFINE GLCD_DC PORTB,5 DEFINE GLCD_SDO PORTB,6 DEFINE GLCD_CLK PORTB,7 DEFINE GLCD_CONTRAST 65 DEFINE GLCD_TEMPERATURE_COEFFICIENT 2 DEFINE GLCD_BIAS 3 ' ' PORT ' ---- TRISB = 0 ' By default the Driver will use PORTB... all output to these then PORTB = 0 ' clear the output/reset the GLCD ' ' Includes ' ======== INCLUDE "..\Include\GLCD_NOKIA.PBP" ' Plug the Nokia Driver/Wrapper in here ' '------------------------------< Main program >--------------------------------------------- ' ASM GLCD_CLS ; Clear the screen (if not initialized yet, it will do automatically) GLCDOUT_AT?STR 0,0,"Hello World!" ; Show String on Line 0 ENDASM Here: GOTO Here ' sit & spin ' '-------------------------------------------------------------------------------------------
$08, $E0, $00, $E2, $01, $EE, $02, $62, $02, $06, $02, $0E, $03, $FC, $01, $F0, $01, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 ; for letter m
Hope anyone can give me a hint on this.
Thanks in advance,
tacbanon
![]()




Bookmarks