Adafruit_ADXL343 Library Throwing Error #504
Replies: 5 comments
-
Oh for fucks sake? I thought they've been testing the for enums and not assuming their presence on all megaavr for ages (they were a mindbogglingly stupid "feature" the official megaavr core has. they defined enum types for things that could only have limited options. Of course that broke all the existing code so they watered it down with compatibility layers. But at that point, it no longer served it's original purpose and just made things worse). I more or less gave up on the hope that the original cores would ever not suck around that time. But I thought that the Adafruit libraries were aware that nobodty other than the official core was actually using the damned things ages ago, and detected that and didn't use them.... what the fucking hell... |
Beta Was this translation helpful? Give feedback.
-
OH!!! They DO
|
Beta Was this translation helpful? Give feedback.
-
Ah yeah, that's because the MEGATINYCORE define is getting swallowed by PIO. I added a workaround for that in megaTinyCore 2.3.0 that detects the case where the MEGATINYCORE define that supposed to be getting passed down from platform.txt gets lost due to some unknown bug in PIO and defines it to a placeholder value to it is at least defined (it's supposed to be defined as the version represented as a string). Version 2.1.5 of megaTinyCore is ANCIENT man.... |
Beta Was this translation helpful? Give feedback.
-
Thanks for looking it and good call on the old ass megaTinyCore. Next mission is to figure out how to upgrade it within PIO... |
Beta Was this translation helpful? Give feedback.
-
Ugh. Yeah - one of the things I really dislike about PIO (I've never used it, I just mean as a guy answering issues from y'all) is that they bundle all these packages together, but hardly ever update them, They still don't have DxCore either, right? I told them they can go ahead and use my compiler package as long as they host it somewhere else (it costs me a few fractions of a cent every time anyone installs my core except on x64 linux; I don't want to try to find out h ow much traffic I can generate before github gets mad at me for hosting large binaries on their servers for free; x64 linux is the exception because that's what the github actions CI testing runs on, and if that were someplace other than github, neither me nor github would be happy, and it's also a small minority of the population, so the traffic it generates is less likely to arouse the ire of github than if I hosted the windows binaries here). Either don't bundle anything and make people download them themselves, or keep the versions you distribute up to date. Don't bundle stuff so nobody knows the install procedure, and then leave old versions rusting there, generating support inquiries for problems fixed a year ago. |
Beta Was this translation helpful? Give feedback.
-
EDIT: I rolled back the library to version 1.2.0 and it fixed the issue.
I'm developing with a ATTiny3216 dev board and I can flash it through PlatformIO just fine. But, when I bring in the Adafruit_ADXL343 library, it's complaining about a few things:
I'm not sure where to go from here. Any thoughts on these errors?
Beta Was this translation helpful? Give feedback.
All reactions