I struggled to get my library completely independent from the Arduino framework as I didn't want to use virtualization. Therefore using ArduinoFake for a "Link Seam" approach seemed the right choice, as I didn't want to alter my source too much. That worked flawlessly with the Arduino functions - great!
I noticed that for the standard Arduino.h header there is a header that #include "ArduinoFake.h" and thus makes the whole
shenanigans inside my library superfluous (as in the mock-injection example as opposed to the wiring-blink example). To make the same thing work for the new WireFake.h I added a Wire.h that just includes the fake.
I hope this small addition is fine like this - it seems to be working for me.
Please tell me if there's anything else I should add/edit.
Hey there, great project!
I struggled to get my library completely independent from the Arduino framework as I didn't want to use virtualization. Therefore using ArduinoFake for a "Link Seam" approach seemed the right choice, as I didn't want to alter my source too much. That worked flawlessly with the Arduino functions - great!
I noticed that for the standard
Arduino.h
header there is a header that#include "ArduinoFake.h"
and thus makes the wholeshenanigans inside my library superfluous (as in the
mock-injection
example as opposed to thewiring-blink
example). To make the same thing work for the newWireFake.h
I added aWire.h
that just includes the fake.I hope this small addition is fine like this - it seems to be working for me. Please tell me if there's anything else I should add/edit.
Cheers, Max