Page 1 of 1
Component C Files in flowcode
Posted: Mon Dec 12, 2011 8:30 pm
by Steve001
Not sure if i have posted this in the correct place ,
Is it possable to put a remark stament or title at the start of the c file ?
I have a modified LCD Dispaly file that Ben did for me and have on several occaisions got the files mixed up
is it somthing like this ? (SORRY IF THIS IS WRONG AS IT IS A COMPLETE GUESS) i am looking about for some examples
\\ 2 wire lcd display
or
\\ original lcd display
ben modified files here
http://www.matrixmultimedia.com/mmforum ... f=2&t=8808
Steve
Re: Component C Files in flowcode
Posted: Mon Dec 12, 2011 8:34 pm
by JohnCrow
Hi Steve
Normal way to comment in a C file is
/* This is a comment */
Not tried it in a C box in FC though
It can be spread over more than 1 line
/* This is a comment
So is this
And this
*/
Re: Component C Files in flowcode
Posted: Mon Dec 12, 2011 9:25 pm
by medelec35
Hi Johns correct.
But your Nearly correct ...You have got the wrong slash its not > \\
but it's forward slash > //
You can tell if commented if using a C code box as text goes from Black to Green.
You can also use // place commen here
In a calculation box, but text stays black.
But your know if it's correct as you will not get an error when you click OK
Martin
Re: Component C Files in flowcode
Posted: Mon Dec 12, 2011 10:19 pm
by Steve001
Cheers guys ,
So this is correct ?
/ original LCD
/*********************************************************************
* Flowcode LCD Display Component Code
*
* File: PIC_LCD.c
*
* (c) 2009 Matrix Multimedia Ltd.
*
http://www.matrixmultimedia.com
*
* Software License Agreement
Not got chance to try tonight maybe this weekend
Flowcode not going to get upset with additional extra line. / original LCD
Steve
Re: Component C Files in flowcode
Posted: Tue Dec 13, 2011 12:02 am
by medelec35
No its as John stated.
So it will be:
Code: Select all
/*********************************************************************
* Flowcode LCD Display Component Code
*
* File: PIC_LCD.c
*
* (c) 2009 Matrix Multimedia Ltd.
* http://www.matrixmultimedia.com
*
* Software License Agreement
******************************/
Etc.
You can't start with just / without * following
Here is the PIC_LCD.c file so you can have a look
Martin
Re: Component C Files in flowcode
Posted: Tue Dec 13, 2011 11:04 am
by Steve001
doh . . thats with rushing thanks guys
steve