Skip to content
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Troubleshooting
  3. Compile error with v1.5 library using #define SOFTSPI
  • Getting Started
  • Controller
  • Build
  • Hardware
  • Download/API
  • Forum
  • Store

Compile error with v1.5 library using #define SOFTSPI

Scheduled Pinned Locked Moved Troubleshooting
5 Posts 2 Posters 2.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sdndba
    wrote on last edited by
    #1

    Situation: I downloaded the v1.5 library and installed it over the top of the Arduino IDE 1.7.8 version. I'm using the AtmelStudio IDE mostly. But in either case both IDE's give me the following errors. I don't want to rearrange the Mysensor library so can you tell me what the fix is, what am I missing? Thanks.

    Compiling 'RGT_SerialGatewayLCDmega' for 'Arduino Mega w/ ATmega2560 (Mega 2560)'
    MyTransportNRF24.h:In file included from
    MySensor.h:from
    MySensor.cpp:from
    RF24.h:20:23: fatal error: DigitalIO.h: No such file or directory
    :#include <DigitalIO.h>
    :compilation terminated
    MyTransportNRF24.h:In file included from
    MyTransportNRF24.cpp:from
    RF24.h:20:23: fatal error: DigitalIO.h: No such file or directory
    :#include <DigitalIO.h>
    :compilation terminated
    RF24.cpp:In file included from
    RF24.h:20:23: fatal error: DigitalIO.h: No such file or directory
    :#include <DigitalIO.h>
    :compilation terminated
    Error compiling libraries

    1 Reply Last reply
    0
    • dakkyD Offline
      dakkyD Offline
      dakky
      wrote on last edited by
      #2

      seems u don't have extracted the mysensors lib correctly.
      DigitalIO.h is included in the bundle. have a look, if u have ./MySensors/drivers/AVR/DigitalIO/DigitalIO.h

      Controller: Raspberry Pi 2 :: Openhab2 :: with @TimO MySensors Binding
      Gateway: Arduino MEGA 2560 R3 :: W5100 :: Ethernet GW

      Software: MySensors 2.0development

      1 Reply Last reply
      0
      • S Offline
        S Offline
        sdndba
        wrote on last edited by sdndba
        #3

        The directories look correct. I will attempt to put the structure in this message. I simply downloaded from the MySensor site "Arduino-master.zip". Expanded in my download directory. copy and paste over the Arduino IDE directory replacing any existing files with the MySensor files.
        removed the comment on the #define SOFTSPI and received those errors above.

        Arduino>libraries>MySensors>examples> (lots of directories with samples directories)
        Arduino>libraries>MySensors>utility>RF24...
        Arduino>libraries>MySensors>utility>RFM69...
        Arduino>libraries>MySensors>utility>SPIFlash...
        Arduino>libraries>MySensors>utility>sha256...
        Arduino>libraries>MySensors>utility>RF24...
        Arduino>libraries>MySensors>utility>(many other MySensor files)

        I don't seen the ./MySensors/drivers/AVR/DigitalIO/DigitalIO.h in the download package... yet.
        Although it did come with a DigitalIO directory in the package.

        1 Reply Last reply
        0
        • dakkyD Offline
          dakkyD Offline
          dakky
          wrote on last edited by
          #4

          uh my fault. The DigitalIO lib is in located in the AVR folder in the development branch only. In the master (1.5 release) its located in the libraries folder: libraries/DigitalIO/DigitalIO.h

          Controller: Raspberry Pi 2 :: Openhab2 :: with @TimO MySensors Binding
          Gateway: Arduino MEGA 2560 R3 :: W5100 :: Ethernet GW

          Software: MySensors 2.0development

          1 Reply Last reply
          0
          • S Offline
            S Offline
            sdndba
            wrote on last edited by sdndba
            #5

            Yes it is right on the libraries branch. I was a bit wrong in that the Arduino IDE compiled with the following errors ... similar to the other IDE.

            In file included from C:\Users\Scotts\arduino\libraries\MySensors/MyTransportNRF24.h:26:0,
            from RGT_SerialGatewayLCDmega.ino:26:
            C:\Users\Scotts\arduino\libraries\MySensors/utility/RF24.h:20:23: fatal error: DigitalIO.h: No such file or directory
            #include <DigitalIO.h>
            ^
            compilation terminated.
            Error compiling.

            Oddly the DigitalIO directory is contained on the libraries branch.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            9

            Online

            11.7k

            Users

            11.2k

            Topics

            113.0k

            Posts


            Copyright 2019 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • OpenHardware.io
            • Categories
            • Recent
            • Tags
            • Popular