Page 2 of 2

Re: Can't get spi to read data

Posted: Fri Aug 21, 2020 10:37 pm
by garryp4
Jerry:

I still got the compile errors with the intOSC.bas and setdigitalio.bas. Saw your comment "Clock = 8 // current intosc.bas v2.1 limit". Checked the rev of intOSC.bas when I clicked on it and I have v1.6. Did a search of my hard drive and found v2.1. How can I make the IDE point to the correct library directory? I suspect this may have been a lot of my problems.

Thanks,
Garry

Re: Can't get spi to read data

Posted: Sat Aug 22, 2020 10:08 am
by Jerry Messina
What are the full paths for the two copies of intosc.bas you found and what OS are you running?

According to the installer script, the various library and include files should end up in:
C:\ProgramData\Mecanique\Swordfish
Includes
Library
Plugin
Samples
UserLibrary

Re: Can't get spi to read data

Posted: Sat Aug 22, 2020 4:10 pm
by garryp4
The path to intOSC that opens up automatically is c:\users\g\documents\swordfish\userlibrary\intocs.bas. Is there someplace I can define the path? I have not been able to find a way.

Re: Can't get spi to read data

Posted: Sat Aug 22, 2020 4:12 pm
by garryp4
I am running windows 10 on this laptop.

Re: Can't get spi to read data

Posted: Sat Aug 22, 2020 7:36 pm
by Jerry Messina
some files like intosc.bas are now included as part of the standard libraries. The compiler will look in the user library folder first, and then the library folder.

Remove any old files from the user library folder and you'll get the new ones.

After you compile a project,open the .idf file (it's a text file) and you can see the paths for all the files that were used.