Announcement

Collapse
No announcement yet.

Developing code with VisualMicro

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Developing code with VisualMicro

    Has anyone attempted to compile code for the P1AM using the visual studio add-on "VisualMicro"?

    I am having a rough time with the interaction of the libraries and not able to compile even the most simple example.

  • #2
    I just uploaded the discreteOutput example from Visual Micro to a P1AM-100. It looks like it doesn’t find the SPI.h library on its own for some reason. The fix for me was to manually include SPI.h in main.

    Comment


    • #3
      What's happening? Did you manually add the libraries or let Visual Studio do it for you via the Visual Micro configuration dialog?

      Comment


      • #4
        Adding "#include<SPI.h>" like in the picture is all I needed to do.
        Click image for larger version

Name:	vmicro.PNG
Views:	103
Size:	25.6 KB
ID:	129550

        Comment


        • #5
          Are you using "#include "MyHeader.h" or "#include <MyHeader.h>"?

          Comment


          • #6
            Originally posted by SeaDragon View Post
            Are you using "#include "MyHeader.h" or "#include <MyHeader.h>"?
            SeaDragon, I am unsure who you were asking.
            I will post this just for reference


            https://gcc.gnu.org/onlinedocs/cpp/Include-Syntax.html
            2.1 Include Syntax


            Both user and system header files are included using the preprocessing directive ‘#include’. It has two variants:
            #include <file> This variant is used for system header files. It searches for a file named file in a standard list of system directories.
            #include "file" This variant is used for header files of your own program. It searches for a file named file first in the directory containing the current file, then in the quote directories and then the same directories used for <file>.

            Comment

            Working...
            X