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