Announcement

Collapse
No announcement yet.

New Node NodeMCU

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

    New Node NodeMCU

    Howdy everyone! I've been enjoying the Arduino plugin for a while, but recently got a NodeMCU board, so I updated to the beta and followed the instructions, installed the ESP8266 Community version 2.7.4. Then when compiling I get the following error. It seems like its not redirecting to the folder that has io.h in it.

    Build options changed, rebuilding all
    C:\Program Files (x86)\Arduino\libraries\SoftPWM\SoftPWM.cpp:26:20: fatal error: avr/io.h: No such file or directory

    #include <avr/io.h>

    ^

    compilation terminated.

    exit status 1
    Error compiling for board NodeMCU 1.0 (ESP-12E Module).


    Did some google searching, but didn't really find a thread to follow. Any pointers would be greatly appreciated!

    #2
    Did you install the SoftPWM Library in the IDE as this looks like it is missing?
    Zwave = Z-Stick, 3xHSM100� 7xACT ZDM230, 1xEverspring SM103, 2xACT HomePro ZRP210.
    X10 = CM12U, 2xAM12, 1xAW10, 1 x TM13U, 1xMS13, 2xHR10, 2xSS13
    Other Hardware = ADI Ocelot + secu16, Global Cache GC100, RFXtrx433, 3 x Foscams.
    Plugings = RFXcom, ActiveBackup, Applied Digital Ocelot, BLDeviceMatrix, BLGarbage, BLLAN, Current Cost, Global Cache GC100,HSTouch Android, HSTouch Server, HSTouch Server Unlimited, NetCAM, PowerTrigger, SageWebcamXP, SqueezeBox, X10 CM11A/CM12U.
    Scripts =
    Various

    Comment


      #3
      I believe so. To make sure I have it right, I uninstalled/reinstalled Arduino, then copied the libraries from the plugin into C:\program files (x86)\Arduino\libraries, which includes SoftPWM. Then I added the URL to the preferences as noted in the homeseer help. Upon first compile, it had two conflicting libraries,Ethernet and Servo. One folder under C:\program files (x86)\Arduino\libraries and one under c:\users\user\appdata\local\Arduino15\packages\esp8266\hardw are\esp8266\2.7.4\libraries\. I deleted the two under the esp8266 path, and I got back to the original problem mentioning avr/io.h.

      For what its worth, I have the file, its under C:\Program Files (x86)\Arduino\hardware\tools\avr\avr\include\avr

      Here are the libraries that show up.

      Click image for larger version

Name:	ArduinoLibraries.JPG
Views:	290
Size:	157.5 KB
ID:	1429540

      Comment


        #4
        So, I just noticed, if its set to the Arduino Genuino Uno board, it'll compile, its only when I compile for the NodeMCU that it has the issue. Not sure if that narrows it down or complicates it.

        Comment


          #5
          Did you set up the board as a NodeMCU in the plugin then download the sketch for that board or are u using an old sketch? Can you send it to me to check?
          Zwave = Z-Stick, 3xHSM100� 7xACT ZDM230, 1xEverspring SM103, 2xACT HomePro ZRP210.
          X10 = CM12U, 2xAM12, 1xAW10, 1 x TM13U, 1xMS13, 2xHR10, 2xSS13
          Other Hardware = ADI Ocelot + secu16, Global Cache GC100, RFXtrx433, 3 x Foscams.
          Plugings = RFXcom, ActiveBackup, Applied Digital Ocelot, BLDeviceMatrix, BLGarbage, BLLAN, Current Cost, Global Cache GC100,HSTouch Android, HSTouch Server, HSTouch Server Unlimited, NetCAM, PowerTrigger, SageWebcamXP, SqueezeBox, X10 CM11A/CM12U.
          Scripts =
          Various

          Comment


            #6
            Yessir, I believe I have it right. Will DM you the sketch.

            Click image for larger version

Name:	HomeSeerArduino.PNG
Views:	260
Size:	100.1 KB
ID:	1429745

            Comment

            Working...
            X