WARDuino icon indicating copy to clipboard operation
WARDuino copied to clipboard

Add platform independent reversible code

Open tolauwae opened this issue 5 months ago • 0 comments

https://github.com/TOPLLab/WARDuino/blob/296fffd6ac38af2ada80ff7ffc4bc9ea046f793a/src/Primitives/arduino.cpp#L511-L522

This code will likely be the same for all chip_digital_write primitives, regardless of platform. Since you are just invoking the primitive.

(in fact this will the strategy for most primitives)

I think we can generalize this and move to a reversibility file to avoid code duplication. In will make implementing the reversibility for other primitives easier as well.

Originally posted by @tolauwae in https://github.com/TOPLLab/WARDuino/pull/250#discussion_r1736111001

tolauwae avatar Sep 24 '24 11:09 tolauwae