Hi. im making drone use arduino101. but i heard that arduino 101 isnt service avr libraries. can you tell me how can i use avr library through arduino 101??
- Look through the library source code to find all the AVR architecture specific code.
- Replace the AVR specific code with the equivalent ARC32 code.
If you want the library to work with both architectures you can do something like this:
#if defined(__AVR__) // AVR architecture specific code here #elif defined(__ARDUINO_ARC__) // ARC architecture specific code here #endif
that will cause the correct code to be automatically selected by the preprocessor.