femtoduino / ArduinoCore-atsamd21e18a

Arduino Core and Bootloader for the ATMEL SAM D21/R21 (E Variant) chips.
https://femto.io
29 stars 15 forks source link

'PIN_SPI_IRQ' was not declared in this scope #32

Closed kitylam9 closed 5 years ago

kitylam9 commented 5 years ago

Hello developer, I try the all the coin example with FemtoBeacon, while I compile the program, it return the error:

'PIN_SPI_IRQ' was not declared in this scope,

=============================================================== The code that use this variable normally from this line of code:

SPI.usingInterrupt(digitalPinToInterrupt(PIN_SPI_IRQ)); and also: attachInterrupt(digitalPinToInterrupt(PIN_SPI_IRQ), HAL_IrqHandlerSPI, RISING);

May I ask how to solve this problem?

kitylam9 commented 5 years ago

Another issue: 'MODULE_AT86RF233_CLOCK' was not declared in this scope

zrecore commented 5 years ago

Make sure the "FemtoBeacon Pro" board is selected