News:

PROTON pic BASIC Compilers for PIC, PIC24, dsPIC33

Main Menu

PPRINT...Erm WHAT??

Started by SeanG_65, Jun 14, 2022, 05:02 PM

Previous topic - Next topic

SeanG_65

Hi All,

I downloaded this code to modify and use in a piece of test equipment I am designing;

'****************************************************************
'*  Name    : UNTITLED.BAS                                      *
'*  Author  : [select VIEW...EDITOR OPTIONS]                    *
'*  Notice  : Copyright (c) 2009 [select VIEW...EDITOR OPTIONS] *
'*          : All Rights Reserved                               *
'*  Date    : 19.10.2009                                        *
'*  Version : 1.0                                               *
'*  Notes   :                                                   *
'*          :                                                 
'****************************************************************
DEVICE = 16F877
CONFIG XT_OSC,WDT_OFF,PWRTE_ON,BODEN_ON,LVP_OFF,DEBUG_OFF,CP_ALL 
XTAL = 4
ALL_DIGITAL= TRUE                  'ADC PORTLARININ TAMAMI DÝJÝTAL GÝRÝÞ VEYA ÇIKIÞ
LCD_DTPORT = PORTD                 'GLCD DATA PORTLARI PORTB'YE BAÐLI
LCD_RSPIN = PORTC.5                'GLCD RS PÝNÝ PORTC.5 BAÐLI
LCD_ENPIN = PORTC.1                'GLCD ENABLE PÝNÝ PORTC.1 BAÐLI
LCD_RWPIN = PORTC.4                'GLCD RW PÝNÝ PORTC.4 BAÐLI
LCD_CS1PIN = PORTC.2               'GLCD CS1 PÝNÝ PORTC.2 BAÐLI
LCD_CS2PIN = PORTC.3               'GLCD CS2 PÝNÝ PORTC.3 BAÐLI
LCD_TYPE =  GRAPHIC                'GLCD TÝPÝ GRAFÝK KS0108 128*64B WÝNSTAR
INTERNAL_FONT = ON                 
FONT_ADDR = 0
GLCD_EXTERNAL_PRINT = PPRINT
CLS
DELAYMS 500                  
BASLA:
PRINT FONT ArialK____12
PRINT AT 3,20,"AYKUT 54"
DELAYMS 2000
 
PRINT FONT ArialK____12
PRINT AT 20,0,"320VOLT.COM"
DELAYMS 2000

PRINT FONT Arial____8
PRINT AT 35,0,"glcd2 karakter basma"
DELAYMS 2000

PRINT FONT ArialK____12
PRINT AT 50,0,"16F877 + GLCD :)"
DELAYMS 2000
END
INCLUDE "Arialk12.txt"
INCLUDE "ARIAL8.txt"

But it won't compile saying that the command PRINT FONT ArialK____12 throws an error.

Anyone have an idea what I'm missing please?

top204

Pprint is a third party application that has, long since, been abandoned. My good friend Tim wrote it many years ago, so he could have large characters on the KS0108 LCD I had just added to the compiler.


It is fully open source and installed with the compiler so it can be modified to work with the latest compiler, but it has not been fully compatible for many years now.

SeanG_65

Hi Top204, Thanks for the heads up on that.

I'm stuck now as I still need to print large characters for my TE project. Is there a way to do this without getting into silly levels of coding?

I want a 55,000 count at the top and a scrolling bargraph (already done) in the bottom half of the display. The unit is a datalogger with a "Trend" graph at the bottom and a "latest data" as a voltage on the top. It's for battery characterisation.