MoteinoMEGA on 2.0.1 error compiling
-
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.. -
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.
-
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 2In 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));``` -
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 2In 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));``` -
@Tris yes, there is still an issue with RFM95 and ATmega1284(P) - hopefully will be dealt with in the next release
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login