Template 01 ‐ EmptyTemplate - GSTCH/SketchMadeEASY GitHub Wiki
With Sketch made EASY, only a small part of the code needs to be written for a sketch. To reduce this to a minimum is this template. It contains everything you need so you can expanded it to your requirements. If Sketch Made EASY is installed, it can be opened via menu: "File:/Example/SketchMadeEASY/Templates/01-EmptyTemplate".
#include <Easy.h>
//*****************************************************************
void setup() {
//((*** Initialize: Configure your sketch here....
// * TODO:
// * - Define inputs
// * - Define actuators
// * - Define Logic (create conditions and relations)
// ***))
// Initialize control
ControlManagerFactory::GetControlManager()->Setup();
}
//*****************************************************************
void loop() {
//*** Run: No additional code is required
ControlManagerFactory::GetControlManager()->Loop();
// Depending on Arduino it needs a short delay. Do not add any other delays!
delay(5);
}