#ifndef LEAF_H #define LEAF_H //Initialize LastLeafState and Stamp //This should be called in MasterMachine's initialization function void InitLeaf(); //This function tell whether LEAF is inserted or not bool ReadLeafState(); //This function check the state of LEAF. If the last state of LEAF was inserted and now it is not there, the function will send LEAF_REMOVED event to Master. //This function should be included in EventCheckers bool CheckLeafRemoved(); //This function control the servo to stamp on LEAF void stamp(); #endif