Skip to content
  • MySensors
  • 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. Bug Reports
  3. [solved] Moteino Mega -> cannot compile 2.2.0 beta

[solved] Moteino Mega -> cannot compile 2.2.0 beta

Scheduled Pinned Locked Moved Bug Reports
6 Posts 4 Posters 2.0k Views 2 Watching
  • 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.
  • alexsh1A Offline
    alexsh1A Offline
    alexsh1
    wrote on last edited by alexsh1
    #1

    Hi,

    I cannot compile any sketches:

    C:\Users\Alex\Documents\Arduino\libraries\MySensors/drivers/RFM69/old/RFM69_old.h:139:67: error: 'digitalPinToInterrupt' was not declared in this scope
    
            uint8_t interruptNum=digitalPinToInterrupt(MY_RFM69_IRQ_PIN))
    
                                                                       ^
    
    C:\Users\Alex\Documents\Arduino\libraries\MySensors/drivers/RFM69/old/RFM69_old.h:44:76: error: 'digitalPinToInterrupt' was not declared in this scope
    
     #define DEFAULT_RFM69_IRQ_NUM   digitalPinToInterrupt(DEFAULT_RFM69_IRQ_PIN)  //!< DEFAULT_RFM69_IRQ_NUM
    
                                                                                ^
    
    C:\Users\Alex\Documents\Arduino\libraries\MySensors/MyConfig.h:894:29: note: in expansion of macro 'DEFAULT_RFM69_IRQ_NUM'
    
     #define MY_RFM69_IRQ_NUM    DEFAULT_RFM69_IRQ_NUM
    
                                 ^
    
    C:\Users\Alex\Documents\Arduino\libraries\MySensors/hal/transport/MyTransportRFM69.cpp:151:61: note: in expansion of macro 'MY_RFM69_IRQ_NUM'
    
     RFM69 _radio(MY_RFM69_CS_PIN, MY_RFM69_IRQ_PIN, MY_RFM69HW, MY_RFM69_IRQ_NUM);
    
                                                                 ^
    
    Using library MySensors at version 2.2.0-beta in folder: C:\Users\Alex\Documents\Arduino\libraries\MySensors 
    Using library SPI at version 1.0 in folder: C:\Users\Alex\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.18\libraries\SPI 
    exit status 1
    Error compiling for board MoteinoMEGA.
    

    @scalz Do you know what the prolem is please?

    mfalkviddM 1 Reply Last reply
    0
    • alexsh1A alexsh1

      Hi,

      I cannot compile any sketches:

      C:\Users\Alex\Documents\Arduino\libraries\MySensors/drivers/RFM69/old/RFM69_old.h:139:67: error: 'digitalPinToInterrupt' was not declared in this scope
      
              uint8_t interruptNum=digitalPinToInterrupt(MY_RFM69_IRQ_PIN))
      
                                                                         ^
      
      C:\Users\Alex\Documents\Arduino\libraries\MySensors/drivers/RFM69/old/RFM69_old.h:44:76: error: 'digitalPinToInterrupt' was not declared in this scope
      
       #define DEFAULT_RFM69_IRQ_NUM   digitalPinToInterrupt(DEFAULT_RFM69_IRQ_PIN)  //!< DEFAULT_RFM69_IRQ_NUM
      
                                                                                  ^
      
      C:\Users\Alex\Documents\Arduino\libraries\MySensors/MyConfig.h:894:29: note: in expansion of macro 'DEFAULT_RFM69_IRQ_NUM'
      
       #define MY_RFM69_IRQ_NUM    DEFAULT_RFM69_IRQ_NUM
      
                                   ^
      
      C:\Users\Alex\Documents\Arduino\libraries\MySensors/hal/transport/MyTransportRFM69.cpp:151:61: note: in expansion of macro 'MY_RFM69_IRQ_NUM'
      
       RFM69 _radio(MY_RFM69_CS_PIN, MY_RFM69_IRQ_PIN, MY_RFM69HW, MY_RFM69_IRQ_NUM);
      
                                                                   ^
      
      Using library MySensors at version 2.2.0-beta in folder: C:\Users\Alex\Documents\Arduino\libraries\MySensors 
      Using library SPI at version 1.0 in folder: C:\Users\Alex\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.18\libraries\SPI 
      exit status 1
      Error compiling for board MoteinoMEGA.
      

      @scalz Do you know what the prolem is please?

      mfalkviddM Offline
      mfalkviddM Offline
      mfalkvidd
      Mod
      wrote on last edited by
      #2

      @alexsh1 seems like digitalPinToInterrupt isn't defined by the Moteino Mega board. How did you install support for that board? Maybe there is an update available?

      An alternative could be to manually map the pin to interrupt number using the pinout picture at https://lowpowerlab.com/shop/product/119

      alexsh1A 1 Reply Last reply
      0
      • mfalkviddM mfalkvidd

        @alexsh1 seems like digitalPinToInterrupt isn't defined by the Moteino Mega board. How did you install support for that board? Maybe there is an update available?

        An alternative could be to manually map the pin to interrupt number using the pinout picture at https://lowpowerlab.com/shop/product/119

        alexsh1A Offline
        alexsh1A Offline
        alexsh1
        wrote on last edited by
        #3

        @mfalkvidd Yes, I have it installed and it does compile under 2.1.1 stable. No, there is no update for the board. It seems that it has to be defined manually for now

        tekkaT 1 Reply Last reply
        0
        • alexsh1A alexsh1

          @mfalkvidd Yes, I have it installed and it does compile under 2.1.1 stable. No, there is no update for the board. It seems that it has to be defined manually for now

          tekkaT Offline
          tekkaT Offline
          tekka
          Admin
          wrote on last edited by
          #4

          @alexsh1 see here: https://github.com/mysensors/MySensors/issues/665

          1 Reply Last reply
          2
          • scalzS Offline
            scalzS Offline
            scalz
            Hardware Contributor
            wrote on last edited by scalz
            #5

            it compiles ok for me. I've just tried with latest dev branch..but for the moment i have 1.6.11 avr boards

            edit: forget what i said!! i compiled for mega2560 whereas it's moteino, 1284p,.. lol
            tekka is right :+1:

            alexsh1A 1 Reply Last reply
            0
            • scalzS scalz

              it compiles ok for me. I've just tried with latest dev branch..but for the moment i have 1.6.11 avr boards

              edit: forget what i said!! i compiled for mega2560 whereas it's moteino, 1284p,.. lol
              tekka is right :+1:

              alexsh1A Offline
              alexsh1A Offline
              alexsh1
              wrote on last edited by alexsh1
              #6

              @scalz My avr is 1.6.18 (newest)
              I'll pull the latest dev and try again.

              EDIT: Thanks @tekka - I have corrected pins_arduino.h for Moteino Mega (attached)

              pins_arduino.h

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


              12

              Online

              11.7k

              Users

              11.2k

              Topics

              113.1k

              Posts


              Copyright 2025 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
              • MySensors
              • OpenHardware.io
              • Categories
              • Recent
              • Tags
              • Popular