The Arduino environment seems to support most of the C++ patterns. So, there is a chance that you can write instructions in Object Oriented ways.
Automation with Raspberry Pi and Arduino
Software controlled automation features using few micro controller boards and single board computer devices.
Multiplexing Raspberry Pi GPIO Pins for Probes Detection
Software controlled DIY automation
An attempt to work out software controlled hardware automation for do-it-yourself electronics. This is a very abstract topic on DIY Projects. This section comprises of using computer skills, shell scripting, programming languages, web development, API usage, databases and related topics in order to produce controllable automation.