platformio / platform-atmelavr

Atmel AVR: development platform for PlatformIO
https://registry.platformio.org/platforms/platformio/atmelavr
Apache License 2.0
138 stars 105 forks source link

Compiling Error circuitplay32u4 #175

Closed Hawxxer closed 4 years ago

Hawxxer commented 4 years ago

I cant compile the circuitplay32u4 with it's native library Adafruit_Circuit_Playground from Adafruit. Looks like the pins_arduino.h is outdated. It says " lib\Adafruit_CircuitPlayground\utility\IRLibRecvPCI.cpp:32:36: error: 'digitalPinToInterrupt' was not declared in this scope Compiling .pio\build\circuitplay_classic\FrameworkArduino\HardwareSerial2.cpp.o intrNum=digitalPinToInterrupt(pin); ^ " official pins_arduino works fine, which defines the digitalPinToInterrupt function.

Hawxxer commented 4 years ago

Checked again official pins_arduino.h from adafruit is not working. The working one is from the avr bundle of arduino itself The official one from adafruit is similiar to the one provided with this framework here, except one line.