Page 1 of 1

adding libraries

PostPosted: Wed Apr 09, 2014 7:57 pm
by demanik
Hello David.
Whether it is possible to disconnect automatic adding in the project of libraries Adc, Console and Pwm ?

Re: adding libraries

PostPosted: Thu Apr 10, 2014 10:23 am
by David John Barker
Not automatically, you have to remove or rename the "lib.imports" folder. For example, renaming "lib.imports" to "ignore.lib.imports" will remove automatically importing of modules. You shouldn't normally have to do this though - what are you trying to do?

Re: adding libraries

PostPosted: Thu Apr 10, 2014 10:43 am
by demanik
If I do the libraries that there were no conflicts.

Re: adding libraries

PostPosted: Thu Apr 10, 2014 11:06 am
by demanik
demanik wrote:If I do the libraries that there were no conflicts.

for PIC18

Re: adding libraries

PostPosted: Thu Apr 10, 2014 11:25 am
by David John Barker
OK, so you want to re-write some of the libraries for PIC18? The safest approach is to create a new folder in your "UserLibrary", called "MCU08", like this

UserLibrary/MCU08

and put all you 8 bit libraries in that folder. Lets' say you wanted to create a new ADC library, then call the module something like "myADC" and save the file in the MCU08 folder as "myADC.bas". If you want to use the "ADC" module and filename, you will need to rename the entry in the "lib.imports" folder. If you use the same module or filename, you will have problems.

If you are writing for 16 and 32 bit code, create

UserLibrary/MCU16
UserLibrary/MCU32

Re: adding libraries

PostPosted: Thu Apr 10, 2014 11:36 am
by demanik
Thanks. I understood.