Open MCUdude opened 4 years ago
yah i guess your chip has a different way of managing PORT types, some work will be needed to add support for it!
yah i guess your chip has a different way of managing PORT types, some work will be needed to add support for it!
Is this library compatible with the Uno Wifi and Nano Every? The megaAVR-0's does have a different way of managing ports, yes.
somebody submitted a PR for the UNO Wifi i think, we didnt test it because we dont own one
Ah, that explains it. The code in the PR was probably only changed for the 16 MHz part in the code, since that's what the official boards are running. However, the thing with MegaCoreX (and my other Arduino cores as well) is to leave the hardware settings up to the user, and not force a particular F_CPU, BOD level and all that.
Already 2 years and issue still persists. Do you have any workaround for this ?
we're waiting for someone to submit a patch - we dont own any megacorex boards :)
Bad is I do not have time to fiximg 3rd party libraries, if I will do, i will do only that :(
For me was solution use TinyNeoPixelx which is part of megacore Arduino sdk, only few fuctions are missing (like my loved rainbow), but port rainbow efect there is less work than refactor, understand and fix this huge library without breaking anything else.
sounds like you found a solution!
Yes, but I forgot it mention here as I am very busy and do lot of things 'at once'... so easy to forgot to mention everything...
If I will remember tomorrow, I will post link for alternative library and it could be solved as 'workaround' with some #pragma or something like 'use this instead' for mega core
Here is library, which works for megaAVR tiny cores.. Tested on attiny 1616
https://github.com/SpenceKonde/megaTinyCore/tree/master/megaavr/libraries/tinyNeoPixel - since it is part of Arduino Framework for that board, so just simple replace
#include <Adafruit_NeoPixel.h>
for
#include <tinyNeoPixel.h>
Most of API is compatible.
Originally reported in at https://github.com/MCUdude/MegaCoreX/issues/84.
For some reason, the library doesn't compile for any megaAVR-0 chip when compiling for a 16 MHz clock. Here's the error I'm getting when compiling for 8 MHz.
Any idea what may cause this?