-
Hello! I really like this library, it is pretty useful and great, but I can't use it in my AVR project, because it depends on Arduino's core, when I am using clean AVR. Are there plans for supporting clean AVR? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I considered this in the past and it could be possible, the main issue is that to get this working, one would essentially have to create their own Arduino core implementation for the target MCU, since Arduino is used as a hardware abstraction layer here. There's a way to make it a bit easier, by creating thin wrappers around every single function and type from Arduino core. This is already partially implemented, for example, most of the library doesn't use Arduino However, I never quite finished that, there's still a couple places that aren't well separated from Arduino core - e.g. |
Beta Was this translation helpful? Give feedback.
I considered this in the past and it could be possible, the main issue is that to get this working, one would essentially have to create their own Arduino core implementation for the target MCU, since Arduino is used as a hardware abstraction layer here.
There's a way to make it a bit easier, by creating thin wrappers around every single function and type from Arduino core. This is already partially implemented, for example, most of the library doesn't use Arduino
pinMode()
function, and is usingModule::pinMode()
wrapper - the only place where ArduinopinMode()
is called is from inside this wrapper method. So the idea was that the methods fromModule
class could contain custom implementa…