Skip to content

Support for clean AVR(completely without Arduino's libraries)? #235

Answered by jgromes
ggoraa asked this question in Q&A
Discussion options

You must be logged in to vote

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 using Module::pinMode() wrapper - the only place where Arduino pinMode() is called is from inside this wrapper method. So the idea was that the methods from Module class could contain custom implementa…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ggoraa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants