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. Development
  3. MoteinoMEGA on 2.0.1 error compiling

MoteinoMEGA on 2.0.1 error compiling

Scheduled Pinned Locked Moved Development
12 Posts 6 Posters 2.9k Views 6 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.
  • scalzS scalz

    Looks like 1284p defines are missing in digitalWriteFast.h
    that should be fixed soon..bug reported ;) or i will look asap pin mapping of 1284..

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

    @scalz That's what I thought! Thanks

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lafleur
      wrote on last edited by
      #4

      Anyone have a fix for this yet??

      Thanks

      alexsh1A 1 Reply Last reply
      0
      • L lafleur

        Anyone have a fix for this yet??

        Thanks

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

        @lafleur I have not tried it yet on the latest beta. Maybe @scalz would know if this has been fixed?

        1 Reply Last reply
        0
        • L Offline
          L Offline
          lafleur
          wrote on last edited by lafleur
          #6

          I'm using beta from Yesterday (23Nov2016), still an issue...

          Made these changes in: digitalWriteFast.h to get started as the 644 and 1284 have the same pinout.

          #elif defined(__AVR_ATmega644__) || defined(__AVR_ATmega644P__) || defined(__AVR_ATmega1284__) || defined(__AVR_ATmega1284P__)
          	#define __digitalPinToPortReg(__pin)	(((__pin) <= 7) ? &PORTB : (((__pin) >= 8 && (__pin) <= 15) ? &PORTD : (((__pin) >= 16 && (__pin) <= 23) ? &PORTC : &PORTA)))
          	#define __digitalPinToDDRReg(__pin)		(((__pin) <= 7) ? &DDRB : (((__pin) >= 8 && (__pin) <= 15) ? &DDRD : (((__pin) >= 8 && (__pin) <= 15) ? &DDRC : &DDRA)))
          	#define __digitalPinToPINReg(__pin)		(((__pin) <= 7) ? &PINB : (((__pin) >= 8 && (__pin) <= 15) ? &PIND : (((__pin) >= 8 && (__pin) <= 15) ? &PINC : &PINA)))
          	#define __digitalPinToBit(__pin)		(((__pin) <= 7) ? (__pin) : (((__pin) >= 8 && (__pin) <= 15) ? (__pin) - 8 : (((__pin) >= 16 && (__pin) <= 23) ? (__pin) - 16 : (__pin) - 24)))
          
          

          But now I get:

          "digitalPinToInterrupt" not defined

          This function seem to be defined for a RPI, but I'm using a MoteinoMEGA, so something is still wrong. I just deleted the function call for now. Not needed on Arduino.

          1 Reply Last reply
          0
          • alexsh1A Offline
            alexsh1A Offline
            alexsh1
            wrote on last edited by
            #7

            @scalz just before I try the latest 2.1.0 version, do you know if this issue with moteino mega mapping has been fixed please?

            1 Reply Last reply
            0
            • hekH Offline
              hekH Offline
              hek
              Admin
              wrote on last edited by
              #8

              2.1.1 (released yesterday) should fix the issue.

              alexsh1A 1 Reply Last reply
              3
              • hekH hek

                2.1.1 (released yesterday) should fix the issue.

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

                @hek I can confirm that v.2.1.1 compiles for Moteino Mega. Will update the software on my Mega shortly.

                1 Reply Last reply
                1
                • T Offline
                  T Offline
                  Tris
                  wrote on last edited by
                  #10

                  I think i still get the same "digitalPinToInterrupt" compile error as @lafleur (has 2.1.1 fixed this for you?) with MoteinoMega but im now on Mysensors 2.1.1
                  Im trying a RFM95MQTTGateway.

                  In the sketch i have defined:

                  #define MY_RFM95_SPI_CS            4
                  #define MY_RFM95_IRQ_PIN           2
                  
                  In file included from C:\Program Files (x86)\Arduino\libraries\MySensors/MySensors.h:304:0,
                  
                                   from C:\Users\somewhere..........Node101Motion_rfm95v1test.ino:54:
                  
                  C:\Program Files (x86)\Arduino\libraries\MySensors/drivers/RFM95/RFM95.cpp: In function 'bool RFM95_initialise(float)':
                  
                  C:\Program Files (x86)\Arduino\libraries\MySensors/drivers/RFM95/RFM95.cpp:165:60: error: 'digitalPinToInterrupt' was not declared in this scope
                  
                    _SPI.usingInterrupt(digitalPinToInterrupt(MY_RFM95_IRQ_PIN));```
                  alexsh1A 1 Reply Last reply
                  0
                  • T Tris

                    I think i still get the same "digitalPinToInterrupt" compile error as @lafleur (has 2.1.1 fixed this for you?) with MoteinoMega but im now on Mysensors 2.1.1
                    Im trying a RFM95MQTTGateway.

                    In the sketch i have defined:

                    #define MY_RFM95_SPI_CS            4
                    #define MY_RFM95_IRQ_PIN           2
                    
                    In file included from C:\Program Files (x86)\Arduino\libraries\MySensors/MySensors.h:304:0,
                    
                                     from C:\Users\somewhere..........Node101Motion_rfm95v1test.ino:54:
                    
                    C:\Program Files (x86)\Arduino\libraries\MySensors/drivers/RFM95/RFM95.cpp: In function 'bool RFM95_initialise(float)':
                    
                    C:\Program Files (x86)\Arduino\libraries\MySensors/drivers/RFM95/RFM95.cpp:165:60: error: 'digitalPinToInterrupt' was not declared in this scope
                    
                      _SPI.usingInterrupt(digitalPinToInterrupt(MY_RFM95_IRQ_PIN));```
                    alexsh1A Offline
                    alexsh1A Offline
                    alexsh1
                    wrote on last edited by
                    #11

                    @Tris yes, there is still an issue with RFM95 and ATmega1284(P) - hopefully will be dealt with in the next release

                    tekkaT 1 Reply Last reply
                    0
                    • alexsh1A alexsh1

                      @Tris yes, there is still an issue with RFM95 and ATmega1284(P) - hopefully will be dealt with in the next release

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

                      @alexsh1 See here and the comments therein, this is not a MySensors issue: https://github.com/mysensors/MySensors/issues/665

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


                      6

                      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