Look at http://www.picbasic.co.uk/forum/show...1&postcount=68. That one was solved!
Ioannis
Hello!
I've try to get some bar from this and I've got problem as usual ;-)
So this is little code from me:
INCLUDE "LCDbar_INC.bas" ' Include the BARgraph routines
DEFINE LCD_DREG PORTB
DEFINE LCD_DBIT 4
DEFINE LCD_RSREG PORTB
DEFINE LCD_RSBIT 1
DEFINE LCD_EREG PORTB
DEFINE LCD_EBIT 0
DEFINE LCD_BITS 4
DEFINE LCD_LINES 2
DEFINE LCD_COMMANDUS 2000
DEFINE LCD_DATAUS 50
INPUT PORTA.0
i var word
LCDOUT $FE, 1 'clean screen
while PORTA.0 = 0
i = i+1
LCDOUT $FE,2,"Value = ",DEC i," "
' syntax- BARgraph Value, Row, Col, Width, Range, Style
@ BARgraph _Value, 2, 0, 16, 255, lines
Pause 100
wend
As You can see in picture I've got problem when compiling with LCDbar_INC.bas...and get'+s lot lines of syntax error in INCLUDE file......off course I didn't make anything to this file...just copy -> paste....
Do You know what couses this problem?
Hi Marin,
To use Darrel's tidy little include files, you must place a copy of his file in the same directory as your code's file is in, and you must use MPASM as the assembler, not PM.
JS
Oh, and do they ever work sweet too!
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
OK!
Joe, is they any way to this be compiled in PM with some changes in .INCLUDE file?
If Darrel would make major changes it might!
But then again why would he? MPASM is much better assembler!
You still have your beloved compiler to write your code. Let Microchip do the job that knows better than anyone third.
Ioannis
GOnna go to MPLAB now.....
Can somebody explain me using MPSAM with mine MicroCode Stuio PicBasic Pro?
With that I still gona write code in code studio or?
Last edited by Marin; - 8th August 2007 at 16:57.
Bookmarks