//---------------------------------------------- // // Sketch Generated by Visuino // www.visuino.com // Version 8.0.0.169 // //------------------ Source -------------------- // // Greenhouse-Recorded-Correction-v3.visuino // //---------------------------------------------- #define __V_REFF_ 5.0f #define VISUINO_ARDUINO_UNO #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include // Shared Component Member Variables namespace ComponentVariables { class { public: uint32_t Value6 : 32; uint32_t Value65 : 5; uint32_t Value66 : 2; uint32_t Value67 : 2; bool Value1 : 1; bool Value2 : 1; bool Value3 : 1; bool Value4 : 1; bool Value5 : 1; bool Value7 : 1; bool Value8 : 1; bool Value9 : 1; bool Value10 : 1; bool Value11 : 1; bool Value12 : 1; bool Value13 : 1; bool Value14 : 1; bool Value15 : 1; bool Value16 : 1; bool Value17 : 1; bool Value18 : 1; bool Value19 : 1; bool Value20 : 1; bool Value21 : 1; bool Value22 : 1; bool Value23 : 1; bool Value24 : 1; bool Value25 : 1; bool Value26 : 1; bool Value27 : 1; bool Value28 : 1; bool Value29 : 1; bool Value30 : 1; bool Value31 : 1; bool Value32 : 1; bool Value33 : 1; bool Value34 : 1; bool Value35 : 1; bool Value36 : 1; bool Value37 : 1; bool Value38 : 1; bool Value39 : 1; bool Value40 : 1; bool Value41 : 1; bool Value42 : 1; bool Value43 : 1; bool Value44 : 1; bool Value45 : 1; bool Value46 : 1; bool Value47 : 1; bool Value48 : 1; bool Value49 : 1; bool Value50 : 1; bool Value51 : 1; bool Value52 : 1; bool Value53 : 1; bool Value54 : 1; bool Value55 : 1; bool Value56 : 1; bool Value57 : 1; bool Value58 : 1; bool Value59 : 1; bool Value60 : 1; bool Value61 : 1; bool Value62 : 1; bool Value63 : 1; bool Value64 : 1; bool Value68 : 1; } BitFields; class Variable6 { public: inline static uint32_t GetValue() { return BitFields.Value6; } inline static void SetValue( uint32_t AValue ) { BitFields.Value6 = AValue; } }; class Variable65 { public: inline static uint32_t GetValue() { return BitFields.Value65; } inline static void SetValue( uint32_t AValue ) { BitFields.Value65 = AValue; } }; class Variable66 { public: inline static uint32_t GetValue() { return BitFields.Value66; } inline static void SetValue( uint32_t AValue ) { BitFields.Value66 = AValue; } }; class Variable67 { public: inline static uint32_t GetValue() { return BitFields.Value67; } inline static void SetValue( uint32_t AValue ) { BitFields.Value67 = AValue; } }; class Variable1 { public: inline static bool GetValue() { return BitFields.Value1; } inline static void SetValue( bool AValue ) { BitFields.Value1 = AValue; } }; class Variable2 { public: inline static bool GetValue() { return BitFields.Value2; } inline static void SetValue( bool AValue ) { BitFields.Value2 = AValue; } }; class Variable3 { public: inline static bool GetValue() { return BitFields.Value3; } inline static void SetValue( bool AValue ) { BitFields.Value3 = AValue; } }; class Variable4 { public: inline static bool GetValue() { return BitFields.Value4; } inline static void SetValue( bool AValue ) { BitFields.Value4 = AValue; } }; class Variable5 { public: inline static bool GetValue() { return BitFields.Value5; } inline static void SetValue( bool AValue ) { BitFields.Value5 = AValue; } }; class Variable7 { public: inline static bool GetValue() { return BitFields.Value7; } inline static void SetValue( bool AValue ) { BitFields.Value7 = AValue; } }; class Variable8 { public: inline static bool GetValue() { return BitFields.Value8; } inline static void SetValue( bool AValue ) { BitFields.Value8 = AValue; } }; class Variable9 { public: inline static bool GetValue() { return BitFields.Value9; } inline static void SetValue( bool AValue ) { BitFields.Value9 = AValue; } }; class Variable10 { public: inline static bool GetValue() { return BitFields.Value10; } inline static void SetValue( bool AValue ) { BitFields.Value10 = AValue; } }; class Variable11 { public: inline static bool GetValue() { return BitFields.Value11; } inline static void SetValue( bool AValue ) { BitFields.Value11 = AValue; } }; class Variable12 { public: inline static bool GetValue() { return BitFields.Value12; } inline static void SetValue( bool AValue ) { BitFields.Value12 = AValue; } }; class Variable13 { public: inline static bool GetValue() { return BitFields.Value13; } inline static void SetValue( bool AValue ) { BitFields.Value13 = AValue; } }; class Variable14 { public: inline static bool GetValue() { return BitFields.Value14; } inline static void SetValue( bool AValue ) { BitFields.Value14 = AValue; } }; class Variable15 { public: inline static bool GetValue() { return BitFields.Value15; } inline static void SetValue( bool AValue ) { BitFields.Value15 = AValue; } }; class Variable16 { public: inline static bool GetValue() { return BitFields.Value16; } inline static void SetValue( bool AValue ) { BitFields.Value16 = AValue; } }; class Variable17 { public: inline static bool GetValue() { return BitFields.Value17; } inline static void SetValue( bool AValue ) { BitFields.Value17 = AValue; } }; class Variable18 { public: inline static bool GetValue() { return BitFields.Value18; } inline static void SetValue( bool AValue ) { BitFields.Value18 = AValue; } }; class Variable19 { public: inline static bool GetValue() { return BitFields.Value19; } inline static void SetValue( bool AValue ) { BitFields.Value19 = AValue; } }; class Variable20 { public: inline static bool GetValue() { return BitFields.Value20; } inline static void SetValue( bool AValue ) { BitFields.Value20 = AValue; } }; class Variable21 { public: inline static bool GetValue() { return BitFields.Value21; } inline static void SetValue( bool AValue ) { BitFields.Value21 = AValue; } }; class Variable22 { public: inline static bool GetValue() { return BitFields.Value22; } inline static void SetValue( bool AValue ) { BitFields.Value22 = AValue; } }; class Variable23 { public: inline static bool GetValue() { return BitFields.Value23; } inline static void SetValue( bool AValue ) { BitFields.Value23 = AValue; } }; class Variable24 { public: inline static bool GetValue() { return BitFields.Value24; } inline static void SetValue( bool AValue ) { BitFields.Value24 = AValue; } }; class Variable25 { public: inline static bool GetValue() { return BitFields.Value25; } inline static void SetValue( bool AValue ) { BitFields.Value25 = AValue; } }; class Variable26 { public: inline static bool GetValue() { return BitFields.Value26; } inline static void SetValue( bool AValue ) { BitFields.Value26 = AValue; } }; class Variable27 { public: inline static bool GetValue() { return BitFields.Value27; } inline static void SetValue( bool AValue ) { BitFields.Value27 = AValue; } }; class Variable28 { public: inline static bool GetValue() { return BitFields.Value28; } inline static void SetValue( bool AValue ) { BitFields.Value28 = AValue; } }; class Variable29 { public: inline static bool GetValue() { return BitFields.Value29; } inline static void SetValue( bool AValue ) { BitFields.Value29 = AValue; } }; class Variable30 { public: inline static bool GetValue() { return BitFields.Value30; } inline static void SetValue( bool AValue ) { BitFields.Value30 = AValue; } }; class Variable31 { public: inline static bool GetValue() { return BitFields.Value31; } inline static void SetValue( bool AValue ) { BitFields.Value31 = AValue; } }; class Variable32 { public: inline static bool GetValue() { return BitFields.Value32; } inline static void SetValue( bool AValue ) { BitFields.Value32 = AValue; } }; class Variable33 { public: inline static bool GetValue() { return BitFields.Value33; } inline static void SetValue( bool AValue ) { BitFields.Value33 = AValue; } }; class Variable34 { public: inline static bool GetValue() { return BitFields.Value34; } inline static void SetValue( bool AValue ) { BitFields.Value34 = AValue; } }; class Variable35 { public: inline static bool GetValue() { return BitFields.Value35; } inline static void SetValue( bool AValue ) { BitFields.Value35 = AValue; } }; class Variable36 { public: inline static bool GetValue() { return BitFields.Value36; } inline static void SetValue( bool AValue ) { BitFields.Value36 = AValue; } }; class Variable37 { public: inline static bool GetValue() { return BitFields.Value37; } inline static void SetValue( bool AValue ) { BitFields.Value37 = AValue; } }; class Variable38 { public: inline static bool GetValue() { return BitFields.Value38; } inline static void SetValue( bool AValue ) { BitFields.Value38 = AValue; } }; class Variable39 { public: inline static bool GetValue() { return BitFields.Value39; } inline static void SetValue( bool AValue ) { BitFields.Value39 = AValue; } }; class Variable40 { public: inline static bool GetValue() { return BitFields.Value40; } inline static void SetValue( bool AValue ) { BitFields.Value40 = AValue; } }; class Variable41 { public: inline static bool GetValue() { return BitFields.Value41; } inline static void SetValue( bool AValue ) { BitFields.Value41 = AValue; } }; class Variable42 { public: inline static bool GetValue() { return BitFields.Value42; } inline static void SetValue( bool AValue ) { BitFields.Value42 = AValue; } }; class Variable43 { public: inline static bool GetValue() { return BitFields.Value43; } inline static void SetValue( bool AValue ) { BitFields.Value43 = AValue; } }; class Variable44 { public: inline static bool GetValue() { return BitFields.Value44; } inline static void SetValue( bool AValue ) { BitFields.Value44 = AValue; } }; class Variable45 { public: inline static bool GetValue() { return BitFields.Value45; } inline static void SetValue( bool AValue ) { BitFields.Value45 = AValue; } }; class Variable46 { public: inline static bool GetValue() { return BitFields.Value46; } inline static void SetValue( bool AValue ) { BitFields.Value46 = AValue; } }; class Variable47 { public: inline static bool GetValue() { return BitFields.Value47; } inline static void SetValue( bool AValue ) { BitFields.Value47 = AValue; } }; class Variable48 { public: inline static bool GetValue() { return BitFields.Value48; } inline static void SetValue( bool AValue ) { BitFields.Value48 = AValue; } }; class Variable49 { public: inline static bool GetValue() { return BitFields.Value49; } inline static void SetValue( bool AValue ) { BitFields.Value49 = AValue; } }; class Variable50 { public: inline static bool GetValue() { return BitFields.Value50; } inline static void SetValue( bool AValue ) { BitFields.Value50 = AValue; } }; class Variable51 { public: inline static bool GetValue() { return BitFields.Value51; } inline static void SetValue( bool AValue ) { BitFields.Value51 = AValue; } }; class Variable52 { public: inline static bool GetValue() { return BitFields.Value52; } inline static void SetValue( bool AValue ) { BitFields.Value52 = AValue; } }; class Variable53 { public: inline static bool GetValue() { return BitFields.Value53; } inline static void SetValue( bool AValue ) { BitFields.Value53 = AValue; } }; class Variable54 { public: inline static bool GetValue() { return BitFields.Value54; } inline static void SetValue( bool AValue ) { BitFields.Value54 = AValue; } }; class Variable55 { public: inline static bool GetValue() { return BitFields.Value55; } inline static void SetValue( bool AValue ) { BitFields.Value55 = AValue; } }; class Variable56 { public: inline static bool GetValue() { return BitFields.Value56; } inline static void SetValue( bool AValue ) { BitFields.Value56 = AValue; } }; class Variable57 { public: inline static bool GetValue() { return BitFields.Value57; } inline static void SetValue( bool AValue ) { BitFields.Value57 = AValue; } }; class Variable58 { public: inline static bool GetValue() { return BitFields.Value58; } inline static void SetValue( bool AValue ) { BitFields.Value58 = AValue; } }; class Variable59 { public: inline static bool GetValue() { return BitFields.Value59; } inline static void SetValue( bool AValue ) { BitFields.Value59 = AValue; } }; class Variable60 { public: inline static bool GetValue() { return BitFields.Value60; } inline static void SetValue( bool AValue ) { BitFields.Value60 = AValue; } }; class Variable61 { public: inline static bool GetValue() { return BitFields.Value61; } inline static void SetValue( bool AValue ) { BitFields.Value61 = AValue; } }; class Variable62 { public: inline static bool GetValue() { return BitFields.Value62; } inline static void SetValue( bool AValue ) { BitFields.Value62 = AValue; } }; class Variable63 { public: inline static bool GetValue() { return BitFields.Value63; } inline static void SetValue( bool AValue ) { BitFields.Value63 = AValue; } }; class Variable64 { public: inline static bool GetValue() { return BitFields.Value64; } inline static void SetValue( bool AValue ) { BitFields.Value64 = AValue; } }; class Variable68 { public: inline static bool GetValue() { return BitFields.Value68; } inline static void SetValue( bool AValue ) { BitFields.Value68 = AValue; } }; } // ComponentVariables // Arduino Constant Declarations namespace VisuinoConstants { class FloatValue5 { public: inline static constexpr float GetValue() { return 18; } }; class FloatValue8 { public: inline static constexpr float GetValue() { return 26; } }; class FloatValue9 { public: inline static constexpr float GetValue() { return 35; } }; class FloatValue4 { public: inline static constexpr float GetValue() { return 100; } }; class FloatValue10 { public: inline static constexpr float GetValue() { return 33; } }; class FloatValue12 { public: inline static constexpr float GetValue() { return 1; } }; class FloatValue2 { public: inline static constexpr float GetValue() { return 80; } }; class FloatValue6 { public: inline static constexpr float GetValue() { return 20; } }; class FloatValue7 { public: inline static constexpr float GetValue() { return 28; } }; class FloatValue0 { public: inline static constexpr float GetValue() { return 0.5; } }; class FloatValue1 { public: inline static constexpr float GetValue() { return -40; } }; class FloatValue3 { public: inline static constexpr float GetValue() { return 0; } }; class FloatValue11 { public: inline static constexpr float GetValue() { return 1023; } }; class TextValue0 { public: inline static constexpr const char *GetValue() { return " "; } }; } // VisuinoConstants // Pin Call Declarations namespace PinCalls { class PinCallerReceive0 { public: void Notify( void *_Data ); }; class PinCallerReceive1 { public: void Notify( void *_Data ); }; class PinCallerReceive2 { public: void Notify( void *_Data ); }; class PinCallerReceive3 { public: void Notify( void *_Data ); }; class PinCallerReceive4 { public: void Notify( void *_Data ); }; class PinCallerReceive5 { public: void Notify( void *_Data ); }; class PinCallerReceive6 { public: void Notify( void *_Data ); }; class PinCallerReceive7 { public: void Notify( void *_Data ); }; class PinCallerReceive8 { public: void Notify( void *_Data ); }; class PinCallerReceive9 { public: void Notify( void *_Data ); }; class PinCallerReceive10 { public: void Notify( void *_Data ); }; class PinCallerReceive11 { public: void Notify( void *_Data ); }; class PinCallerReceive12 { public: void Notify( void *_Data ); }; class PinCallerReceive13 { public: void Notify( void *_Data ); }; class PinCallerReceive14 { public: void Notify( void *_Data ); }; class PinCallerReceive15 { public: void Notify( void *_Data ); }; class PinCallerReceive16 { public: void Notify( void *_Data ); }; class PinCallerReceive17 { public: void Notify( void *_Data ); }; class PinCallerReceive18 { public: void Notify( void *_Data ); }; class PinCallerReceive19 { public: void Notify( void *_Data ); }; class PinCallerReceive20 { public: void Notify( void *_Data ); }; class PinCallerReceive21 { public: void Notify( void *_Data ); }; class PinCallerReceive22 { public: void Notify( void *_Data ); }; class PinCallerReceive23 { public: void Notify( void *_Data ); }; class PinCallerReceive24 { public: void Notify( void *_Data ); }; class PinCallerReceive25 { public: void Notify( void *_Data ); }; class PinCallerReceive26 { public: void Notify( void *_Data ); }; class PinCallerReceive27 { public: void Notify( void *_Data ); }; class PinCallerReceive28 { public: void Notify( void *_Data ); }; class PinCallerReceive29 { public: void Notify( void *_Data ); }; class PinCallerReceive30 { public: void Notify( void *_Data ); }; class PinCallerReceive31 { public: void Notify( void *_Data ); }; class PinCallerReceive32 { public: void Notify( void *_Data ); }; class PinCallerReceive33 { public: void Notify( void *_Data ); }; class PinCallerReceive34 { public: void Notify( void *_Data ); }; class PinCallerReceive35 { public: void Notify( void *_Data ); }; class PinCallerReceive36 { public: void Notify( void *_Data ); }; class PinCallerReceive37 { public: void Notify( void *_Data ); }; class PinCallerReceive38 { public: void Notify( void *_Data ); }; class PinCallerReceive39 { public: void Notify( void *_Data ); }; class PinCallerReceive40 { public: void Notify( void *_Data ); }; class PinCallerReceive41 { public: void Notify( void *_Data ); }; class PinCallerReceive42 { public: void Notify( void *_Data ); }; class PinCallerReceive43 { public: void Notify( void *_Data ); }; class PinCallerReceive44 { public: void Notify( void *_Data ); }; class PinCallerReceive45 { public: void Notify( void *_Data ); }; class PinCallerReceive46 { public: void Notify( void *_Data ); }; class PinCallerReceive47 { public: void Notify( void *_Data ); }; class PinCallerReceive48 { public: void Notify( void *_Data ); }; class PinCallerReceive49 { public: void Notify( void *_Data ); }; class PinCallerReceive50 { public: void Notify( void *_Data ); }; class PinCallerReceive51 { public: void Notify( void *_Data ); }; class PinCallerReceive52 { public: void Notify( void *_Data ); }; class PinCallerReceive53 { public: void Notify( void *_Data ); }; class PinCallerReceive54 { public: void Notify( void *_Data ); }; class PinCallerReceive55 { public: void Notify( void *_Data ); }; class PinCallerReceive56 { public: void Notify( void *_Data ); }; class PinCallerReceive57 { public: void Notify( void *_Data ); }; class PinCallerReceive58 { public: void Notify( void *_Data ); }; class PinCallerReceive59 { public: void Notify( void *_Data ); }; class PinCallerReceive60 { public: void Notify( void *_Data ); }; class PinCallerReceive61 { public: void Notify( void *_Data ); }; class PinCallerReceive62 { public: void Notify( void *_Data ); }; class PinCallerReceive63 { public: void Notify( void *_Data ); }; class PinCallerReceive64 { public: void Notify( void *_Data ); }; class PinCallerReceive65 { public: void Notify( void *_Data ); }; class PinCallerReceive66 { public: void Notify( void *_Data ); }; class PinCallerReceive67 { public: void Notify( void *_Data ); }; class PinCallerReceive68 { public: void Notify( void *_Data ); }; class PinCallerReceive69 { public: void Notify( void *_Data ); }; class PinCallerReceive70 { public: void Notify( void *_Data ); }; class PinCallerReceive71 { public: void Notify( void *_Data ); }; class PinCallerReceive72 { public: void Notify( void *_Data ); }; class PinCallerReceive73 { public: void Notify( void *_Data ); }; class PinCallerReceive74 { public: void Notify( void *_Data ); }; class PinCallerReceive75 { public: void Notify( void *_Data ); }; class PinCallerReceive76 { public: void Notify( void *_Data ); }; class PinCallerReceive77 { public: void Notify( void *_Data ); }; class PinCallerReceive78 { public: void Notify( void *_Data ); }; class PinCallerReceive79 { public: void Notify( void *_Data ); }; class PinCallerReceive80 { public: void Notify( void *_Data ); }; class PinCallerReceive81 { public: void Notify( void *_Data ); }; class PinCallerReceive82 { public: void Notify( void *_Data ); }; class PinCallerReceive83 { public: void Notify( void *_Data ); }; class PinCallerReceive84 { public: void Notify( void *_Data ); }; class PinCallerReceive85 { public: void Notify( void *_Data ); }; class PinCallerReceive86 { public: void Notify( void *_Data ); }; class PinCallerReceive87 { public: void Notify( void *_Data ); }; class PinCallerReceive88 { public: void Notify( void *_Data ); }; class PinCallerReceive89 { public: void Notify( void *_Data ); }; class PinCallerReceive90 { public: void Notify( void *_Data ); }; class PinCallerReceive91 { public: void Notify( void *_Data ); }; class PinCallerReceive92 { public: void Notify( void *_Data ); }; class PinCallerReceive93 { public: void Notify( void *_Data ); }; class PinCallerReceive94 { public: void Notify( void *_Data ); }; class PinCallerReceive95 { public: void Notify( void *_Data ); }; class PinCallerReceive96 { public: void Notify( void *_Data ); }; class PinCallerReceive97 { public: void Notify( void *_Data ); }; class PinCallerReceive98 { public: void Notify( void *_Data ); }; class PinCallerReceive99 { public: void Notify( void *_Data ); }; class PinCallerReceive100 { public: void Notify( void *_Data ); }; class PinCallerReceive101 { public: void Notify( void *_Data ); }; class PinCallerReceive102 { public: void Notify( void *_Data ); }; class PinCallerReceive103 { public: void Notify( void *_Data ); }; class PinCallerReceive104 { public: void Notify( void *_Data ); }; class PinCallerReceive105 { public: void Notify( void *_Data ); }; } // PinCalls // Call Chains namespace CallChains { class GetPeriod1 { public: inline static constexpr uint32_t Count() { return 0; } inline static void Call( int32_t AIndex, unsigned long & APeriod ) {} }; class SendByte1 { public: inline static constexpr uint32_t Count() { return 1; } static void Call( uint8_t AValue ); }; class RequestData1 { public: inline static constexpr uint32_t Count() { return 1; } static void Call(); }; class PeriodicCall1 { public: inline static constexpr uint32_t Count() { return 0; } static void Call(); }; class PeriodicCall2 { public: inline static constexpr uint32_t Count() { return 0; } static void Call(); }; class PeriodicCall3 { public: inline static constexpr uint32_t Count() { return 0; } static void Call(); }; } // CallChains // System Objects Declarations namespace BoardDeclarations { Mitov::TPeriodMicros<2000000, ::CallChains::PeriodicCall1> SystemPeriodMicros_2000000; Mitov::TPeriodMicros<50000, ::CallChains::PeriodicCall2> SystemPeriodMicros_50000; Mitov::TPeriodMicros<1000000, ::CallChains::PeriodicCall3> SystemPeriodMicros_1000000; } // BoardDeclarations // Arduino Board Declarations namespace BoardDeclarations { namespace Types { typedef Mitov::ArduinoBasicDigitalChannel< Mitov::ConstantProperty<4, bool, true >, // AutoConfig = True (Default) Mitov::ConstantProperty<2, bool, true >, // DigitalInputPin_o_IsConnected = True Mitov::ConstantProperty<3, bool, false >, // InitialValue = False (Default) Mitov::ConstantProperty<5, bool, false >, // IsOutput = False (Default) Mitov::ConstantProperty<6, bool, false >, // IsPullUp = False (Default) Mitov::ConstantProperty<123, bool, false >, // IsRawInput = 0 Mitov::DigitalPin_NoImplementation<7 >, // OutputPin false, // OutputPin_Board_Connected_ 2 // PIN_DIGITAL > TArduinoAdditionalDigitalInterruptChannel1; } // Types namespace Instances { Types::TArduinoAdditionalDigitalInterruptChannel1 TArduinoAdditionalDigitalInterruptChannel1; } // Instances namespace Types { typedef Mitov::ArduinoBasicDigitalPWMChannel< Mitov::ConstantProperty<9, bool, false >, // AnalogInputPin_o_IsConnected = False Mitov::ConstantProperty<4, bool, false >, // AutoConfig = False Mitov::ConstantProperty<2, bool, false >, // DigitalInputPin_o_IsConnected = False Mitov::ConstantProperty<3, bool, false >, // InitialValue = False (Default) Mitov::ConstantProperty<10, bool, false >, // IsAnalog = False (Default) Mitov::ConstantProperty<5, bool, false >, // IsOutput = False (Default) Mitov::ConstantProperty<6, bool, true >, // IsPullUp = True Mitov::ConstantProperty<123, bool, false >, // IsRawInput = 0 Mitov::DigitalPin_EmbeddedPinImplementation<7, ::PinCalls::PinCallerReceive0 >, // OutputPin true, // OutputPin_Board_Connected_ 3 // PIN_DIGITAL > TArduinoBasicDigitalPWMInterruptChannel1; } // Types namespace Instances { Types::TArduinoBasicDigitalPWMInterruptChannel1 TArduinoBasicDigitalPWMInterruptChannel1; } // Instances namespace Types { typedef Mitov::ArduinoBasicDigitalChannel< Mitov::ConstantProperty<4, bool, false >, // AutoConfig = False Mitov::ConstantProperty<2, bool, false >, // DigitalInputPin_o_IsConnected = False Mitov::ConstantProperty<3, bool, false >, // InitialValue = False (Default) Mitov::ConstantProperty<5, bool, false >, // IsOutput = False (Default) Mitov::ConstantProperty<6, bool, true >, // IsPullUp = True Mitov::ConstantProperty<123, bool, false >, // IsRawInput = 0 Mitov::DigitalPin_EmbeddedPinImplementation<7, ::PinCalls::PinCallerReceive1 >, // OutputPin true, // OutputPin_Board_Connected_ 4 // PIN_DIGITAL > TArduinoAdditionalDigitalChannel1; } // Types namespace Instances { Types::TArduinoAdditionalDigitalChannel1 TArduinoAdditionalDigitalChannel1; } // Instances namespace Types { typedef Mitov::ArduinoBasicDigitalPWMChannel< Mitov::ConstantProperty<9, bool, false >, // AnalogInputPin_o_IsConnected = False Mitov::ConstantProperty<4, bool, false >, // AutoConfig = False Mitov::ConstantProperty<2, bool, false >, // DigitalInputPin_o_IsConnected = False Mitov::ConstantProperty<3, bool, false >, // InitialValue = False (Default) Mitov::ConstantProperty<10, bool, false >, // IsAnalog = False (Default) Mitov::ConstantProperty<5, bool, false >, // IsOutput = False (Default) Mitov::ConstantProperty<6, bool, true >, // IsPullUp = True Mitov::ConstantProperty<123, bool, false >, // IsRawInput = 0 Mitov::DigitalPin_EmbeddedPinImplementation<7, ::PinCalls::PinCallerReceive2 >, // OutputPin true, // OutputPin_Board_Connected_ 5 // PIN_DIGITAL > TArduinoBasicDigitalPWMChannel1; } // Types namespace Instances { Types::TArduinoBasicDigitalPWMChannel1 TArduinoBasicDigitalPWMChannel1; } // Instances namespace Types { typedef Mitov::ArduinoBasicDigitalPWMChannel< Mitov::ConstantProperty<9, bool, false >, // AnalogInputPin_o_IsConnected = False Mitov::ConstantProperty<4, bool, false >, // AutoConfig = False Mitov::ConstantProperty<2, bool, false >, // DigitalInputPin_o_IsConnected = False Mitov::ConstantProperty<3, bool, false >, // InitialValue = False (Default) Mitov::ConstantProperty<10, bool, false >, // IsAnalog = False (Default) Mitov::ConstantProperty<5, bool, false >, // IsOutput = False (Default) Mitov::ConstantProperty<6, bool, true >, // IsPullUp = True Mitov::ConstantProperty<123, bool, false >, // IsRawInput = 0 Mitov::DigitalPin_EmbeddedPinImplementation<7, ::PinCalls::PinCallerReceive3 >, // OutputPin true, // OutputPin_Board_Connected_ 6 // PIN_DIGITAL > TArduinoBasicDigitalPWMChannel2; } // Types namespace Instances { Types::TArduinoBasicDigitalPWMChannel2 TArduinoBasicDigitalPWMChannel2; } // Instances namespace Types { typedef Mitov::ArduinoBasicDigitalChannel< Mitov::ConstantProperty<4, bool, true >, // AutoConfig = True (Default) Mitov::ConstantProperty<2, bool, true >, // DigitalInputPin_o_IsConnected = True Mitov::ConstantProperty<3, bool, true >, // InitialValue = True Mitov::ConstantProperty<5, bool, false >, // IsOutput = False (Default) Mitov::ConstantProperty<6, bool, false >, // IsPullUp = False (Default) Mitov::ConstantProperty<123, bool, true >, // IsRawInput = -1 Mitov::DigitalPin_NoImplementation<7 >, // OutputPin false, // OutputPin_Board_Connected_ 7 // PIN_DIGITAL > TArduinoAdditionalDigitalChannel2; } // Types namespace Instances { Types::TArduinoAdditionalDigitalChannel2 TArduinoAdditionalDigitalChannel2; } // Instances namespace Types { typedef Mitov::ArduinoBasicDigitalChannel< Mitov::ConstantProperty<4, bool, true >, // AutoConfig = True (Default) Mitov::ConstantProperty<2, bool, true >, // DigitalInputPin_o_IsConnected = True Mitov::ConstantProperty<3, bool, false >, // InitialValue = False (Default) Mitov::ConstantProperty<5, bool, false >, // IsOutput = False (Default) Mitov::ConstantProperty<6, bool, false >, // IsPullUp = False (Default) Mitov::ConstantProperty<123, bool, false >, // IsRawInput = 0 Mitov::DigitalPin_NoImplementation<7 >, // OutputPin false, // OutputPin_Board_Connected_ 8 // PIN_DIGITAL > TArduinoAdditionalDigitalChannel3; } // Types namespace Instances { Types::TArduinoAdditionalDigitalChannel3 TArduinoAdditionalDigitalChannel3; } // Instances namespace Types { typedef Mitov::ArduinoBasicDigitalPWMChannel< Mitov::ConstantProperty<9, bool, false >, // AnalogInputPin_o_IsConnected = False Mitov::ConstantProperty<4, bool, true >, // AutoConfig = True (Default) Mitov::ConstantProperty<2, bool, true >, // DigitalInputPin_o_IsConnected = True Mitov::ConstantProperty<3, bool, false >, // InitialValue = False (Default) Mitov::ConstantProperty<10, bool, false >, // IsAnalog = False (Default) Mitov::ConstantProperty<5, bool, false >, // IsOutput = False (Default) Mitov::ConstantProperty<6, bool, false >, // IsPullUp = False (Default) Mitov::ConstantProperty<123, bool, false >, // IsRawInput = 0 Mitov::DigitalPin_NoImplementation<7 >, // OutputPin false, // OutputPin_Board_Connected_ 9 // PIN_DIGITAL > TArduinoBasicDigitalPWMChannel3; } // Types namespace Instances { Types::TArduinoBasicDigitalPWMChannel3 TArduinoBasicDigitalPWMChannel3; } // Instances namespace Types { typedef Mitov::ArduinoBasicDigitalPWMChannel< Mitov::ConstantProperty<9, bool, false >, // AnalogInputPin_o_IsConnected = False Mitov::ConstantProperty<4, bool, true >, // AutoConfig = True (Default) Mitov::ConstantProperty<2, bool, true >, // DigitalInputPin_o_IsConnected = True Mitov::ConstantProperty<3, bool, false >, // InitialValue = False (Default) Mitov::ConstantProperty<10, bool, false >, // IsAnalog = False (Default) Mitov::ConstantProperty<5, bool, false >, // IsOutput = False (Default) Mitov::ConstantProperty<6, bool, false >, // IsPullUp = False (Default) Mitov::ConstantProperty<123, bool, false >, // IsRawInput = 0 Mitov::DigitalPin_NoImplementation<7 >, // OutputPin false, // OutputPin_Board_Connected_ 10 // PIN_DIGITAL > TArduinoBasicDigitalPWMChannel4; } // Types namespace Instances { Types::TArduinoBasicDigitalPWMChannel4 TArduinoBasicDigitalPWMChannel4; } // Instances namespace Types { typedef Mitov::ArduinoBasicDigitalPWMChannel< Mitov::ConstantProperty<9, bool, false >, // AnalogInputPin_o_IsConnected = False Mitov::ConstantProperty<4, bool, true >, // AutoConfig = True (Default) Mitov::ConstantProperty<2, bool, true >, // DigitalInputPin_o_IsConnected = True Mitov::ConstantProperty<3, bool, false >, // InitialValue = False (Default) Mitov::ConstantProperty<10, bool, false >, // IsAnalog = False (Default) Mitov::ConstantProperty<5, bool, false >, // IsOutput = False (Default) Mitov::ConstantProperty<6, bool, false >, // IsPullUp = False (Default) Mitov::ConstantProperty<123, bool, false >, // IsRawInput = 0 Mitov::DigitalPin_NoImplementation<7 >, // OutputPin false, // OutputPin_Board_Connected_ 11 // PIN_DIGITAL > TArduinoBasicDigitalPWMSPI0Channel1; } // Types namespace Instances { Types::TArduinoBasicDigitalPWMSPI0Channel1 TArduinoBasicDigitalPWMSPI0Channel1; } // Instances namespace Types { typedef Mitov::ArduinoBasicDigitalChannel< Mitov::ConstantProperty<4, bool, true >, // AutoConfig = True (Default) Mitov::ConstantProperty<2, bool, true >, // DigitalInputPin_o_IsConnected = True Mitov::ConstantProperty<3, bool, false >, // InitialValue = False (Default) Mitov::ConstantProperty<5, bool, false >, // IsOutput = False (Default) Mitov::ConstantProperty<6, bool, false >, // IsPullUp = False (Default) Mitov::ConstantProperty<123, bool, false >, // IsRawInput = 0 Mitov::DigitalPin_NoImplementation<7 >, // OutputPin false, // OutputPin_Board_Connected_ 12 // PIN_DIGITAL > TArduinoAdditionalDigitalSPI0Channel1; } // Types namespace Instances { Types::TArduinoAdditionalDigitalSPI0Channel1 TArduinoAdditionalDigitalSPI0Channel1; } // Instances namespace Types { typedef Mitov::ArduinoBasicDigitalChannel< Mitov::ConstantProperty<4, bool, true >, // AutoConfig = True (Default) Mitov::ConstantProperty<2, bool, true >, // DigitalInputPin_o_IsConnected = True Mitov::ConstantProperty<3, bool, false >, // InitialValue = False (Default) Mitov::ConstantProperty<5, bool, false >, // IsOutput = False (Default) Mitov::ConstantProperty<6, bool, false >, // IsPullUp = False (Default) Mitov::ConstantProperty<123, bool, true >, // IsRawInput = -1 Mitov::DigitalPin_NoImplementation<7 >, // OutputPin false, // OutputPin_Board_Connected_ 13 // PIN_DIGITAL > TArduinoAdditionalDigitalSPI0Channel2; } // Types namespace Instances { Types::TArduinoAdditionalDigitalSPI0Channel2 TArduinoAdditionalDigitalSPI0Channel2; } // Instances namespace Types { typedef Mitov::ArduinoCombinedAnalogDigitalChannel< Mitov::ConstantProperty<4, bool, true >, // AutoConfig = True (Default) Mitov::ConstantProperty<2, bool, false >, // DigitalInputPin_o_IsConnected = False Mitov::ConstantProperty<3, bool, false >, // InitialValue = False (Default) Mitov::ConstantProperty<5, bool, false >, // IsOutput = False (Default) Mitov::ConstantProperty<6, bool, false >, // IsPullUp = False (Default) Mitov::ConstantProperty<123, bool, false >, // IsRawInput = 0 Mitov::AnalogPin_EmbeddedPinImplementation<8, ::PinCalls::PinCallerReceive4 >, // OutputPin_Analog_ true, // OutputPin_Board_Connected_ Mitov::DigitalPin_NoImplementation<7 >, // OutputPin_Digital_ A0 // PIN_DIGITAL > TArduinoCombinedAnalogDigitalChannel1; } // Types namespace Instances { Types::TArduinoCombinedAnalogDigitalChannel1 TArduinoCombinedAnalogDigitalChannel1; } // Instances namespace Types { typedef Mitov::ArduinoCombinedAnalogDigitalChannel< Mitov::ConstantProperty<4, bool, true >, // AutoConfig = True (Default) Mitov::ConstantProperty<2, bool, false >, // DigitalInputPin_o_IsConnected = False Mitov::ConstantProperty<3, bool, false >, // InitialValue = False (Default) Mitov::ConstantProperty<5, bool, false >, // IsOutput = False (Default) Mitov::ConstantProperty<6, bool, false >, // IsPullUp = False (Default) Mitov::ConstantProperty<123, bool, false >, // IsRawInput = 0 Mitov::AnalogPin_EmbeddedPinImplementation<8, ::PinCalls::PinCallerReceive5 >, // OutputPin_Analog_ true, // OutputPin_Board_Connected_ Mitov::DigitalPin_NoImplementation<7 >, // OutputPin_Digital_ A1 // PIN_DIGITAL > TArduinoCombinedAnalogDigitalChannel2; } // Types namespace Instances { Types::TArduinoCombinedAnalogDigitalChannel2 TArduinoCombinedAnalogDigitalChannel2; } // Instances namespace Types { typedef Mitov::ArduinoCombinedAnalogDigitalChannel< Mitov::ConstantProperty<4, bool, true >, // AutoConfig = True (Default) Mitov::ConstantProperty<2, bool, false >, // DigitalInputPin_o_IsConnected = False Mitov::ConstantProperty<3, bool, false >, // InitialValue = False (Default) Mitov::ConstantProperty<5, bool, false >, // IsOutput = False (Default) Mitov::ConstantProperty<6, bool, false >, // IsPullUp = False (Default) Mitov::ConstantProperty<123, bool, false >, // IsRawInput = 0 Mitov::AnalogPin_EmbeddedPinImplementation<8, ::PinCalls::PinCallerReceive6 >, // OutputPin_Analog_ true, // OutputPin_Board_Connected_ Mitov::DigitalPin_NoImplementation<7 >, // OutputPin_Digital_ A2 // PIN_DIGITAL > TArduinoCombinedAnalogDigitalChannel3; } // Types namespace Instances { Types::TArduinoCombinedAnalogDigitalChannel3 TArduinoCombinedAnalogDigitalChannel3; } // Instances namespace Types { typedef Mitov::ArduinoCombinedAnalogDigitalChannel< Mitov::ConstantProperty<4, bool, true >, // AutoConfig = True (Default) Mitov::ConstantProperty<2, bool, false >, // DigitalInputPin_o_IsConnected = False Mitov::ConstantProperty<3, bool, false >, // InitialValue = False (Default) Mitov::ConstantProperty<5, bool, false >, // IsOutput = False (Default) Mitov::ConstantProperty<6, bool, false >, // IsPullUp = False (Default) Mitov::ConstantProperty<123, bool, false >, // IsRawInput = 0 Mitov::AnalogPin_EmbeddedPinImplementation<8, ::PinCalls::PinCallerReceive7 >, // OutputPin_Analog_ true, // OutputPin_Board_Connected_ Mitov::DigitalPin_NoImplementation<7 >, // OutputPin_Digital_ A3 // PIN_DIGITAL > TArduinoCombinedAnalogDigitalChannel4; } // Types namespace Instances { Types::TArduinoCombinedAnalogDigitalChannel4 TArduinoCombinedAnalogDigitalChannel4; } // Instances namespace Types { typedef Mitov::BreakSerialPort< HardwareSerial, // 0_SERIAL_TYPE Serial, // 1_C_OBJECT Mitov::ConstantProperty<4, uint32_t, 0 >, // AfterSendingDelay = 0 (Default) Mitov::ConstantProperty<7, uint32_t, 8 >, // DataBits = 8 (Default) Mitov::EmbeddedCallChain, // Elements_GetPeriod Mitov::ConstantProperty<2, bool, true >, // Enabled = True (Default) Mitov::ConstantProperty<17, uint32_t, 0 >, // FElementIndex = 0 Mitov::ConstantProperty<21, uint32_t, 0 >, // FEndTime = 0 Mitov::ConstantProperty<23, bool, false >, // FInBreak = False Mitov::ConstantProperty<19, bool, false >, // FSending = False Mitov::GenericPin_NoImplementation<5 >, // OutputPin Mitov::ConstantProperty<9, Mitov::TArduinoStandardSerialParity, Mitov::spNone >, // Parity = 0 (Default) Mitov::NestedProperty<16, Mitov::TArduinoSerialBreak< Mitov::ConstantProperty<11, bool, false >, // Enabled = False (Default) Mitov::NestedProperty<15, Mitov::TAurduinoEnableValue< Mitov::ConstantProperty<13, bool, false >, // Enabled = False (Default) Mitov::ConstantProperty<14, uint32_t, 100 > // Value = 100 (Default) > > // Period > >, // SendBreak Mitov::DigitalPin_NoImplementation<3 >, // SendingOutputPin Mitov::ConstantProperty<6, uint32_t, 115200 >, // Speed = 115200 Mitov::ConstantProperty<8, uint32_t, 1 >, // StopBits = 1 (Default) Mitov::ConstantProperty<87, uint32_t, 1 > // TXPin > SerialPort0; } // Types namespace Instances { Types::SerialPort0 SerialPort0; } // Instances namespace Types { typedef ::Mitov::ArduinoI2C< Wire, // 1_INSTANCE Mitov::ConstantProperty<6, uint32_t, 0 >, // Address = 0 (Default) Mitov::EmbeddedCallChain, // INSTANCE_RequestData Mitov::EmbeddedCallChain, // INSTANCE_SendByte Mitov::ConstantProperty<5, bool, false >, // IsSlave = False (Default) Mitov::GenericPin_NoImplementation<2 >, // OutputPin Mitov::ClockPin_NoImplementation<4 > // RequestOutputPin > TArduinoI2C1; } // Types namespace Instances { Types::TArduinoI2C1 TArduinoI2C1; } // Instances } // BoardDeclarations // Custom Code Declarations namespace CustomCode { class TIrrigationController1 { bool ghReady = false, ghAuto = true, ghSourceOK = false; bool ghButton1 = false, ghButton2 = false, ghDry1 = false, ghDry2 = false; bool ghValve1 = false, ghValve2 = false, ghPump = false; bool ghTimeout = false, ghRest = false, ghManualInhibit = true; bool ghInitialized = false, ghPreviousAuto = true, ghPreviousSource = false; bool ghResetHolding = false; uint8_t ghZone = 0, ghNextZone = 1; uint32_t ghRunAt = 0, ghRestAt = 0, ghResetAt = 0; void ghBeginRest(uint32_t now) { ghRest = true; ghRestAt = now; } void ghStep(uint32_t now) { ghValve1 = ghValve2 = ghPump = false; if (!ghReady) { ghZone = 0; ghManualInhibit = true; ghResetHolding = false; ghInitialized = false; ghRest = false; return; } if (!ghInitialized) { ghPreviousAuto = ghAuto; ghPreviousSource = ghSourceOK; ghInitialized = true; if (!ghSourceOK) ghBeginRest(now); } const bool modeChanged = ghAuto != ghPreviousAuto; const bool sourceLost = ghPreviousSource && !ghSourceOK; ghPreviousAuto = ghAuto; ghPreviousSource = ghSourceOK; const bool expired = ghZone != 0 && uint32_t(now - ghRunAt) >= 10000UL; if (expired) ghTimeout = true; const bool demand = ghZone == 1 ? (ghAuto ? ghDry1 : (!ghManualInhibit && ghButton1)) : (ghAuto ? ghDry2 : (!ghManualInhibit && ghButton2)); if (ghZone && (ghTimeout || !ghSourceOK || modeChanged || !demand)) { ghZone = 0; ghBeginRest(now); } if (modeChanged || sourceLost) { ghManualInhibit = true; ghBeginRest(now); } if (ghRest && uint32_t(now - ghRestAt) >= 15000UL) ghRest = false; const bool resetAllowed = ghTimeout && !ghAuto && ghSourceOK && ghButton1 && ghButton2 && ghZone == 0; if (resetAllowed) { if (!ghResetHolding) { ghResetHolding = true; ghResetAt = now; } if (uint32_t(now - ghResetAt) >= 2000UL) { ghTimeout = false; ghResetHolding = false; ghManualInhibit = true; ghBeginRest(now); } } else ghResetHolding = false; if (ghSourceOK && !ghButton1 && !ghButton2) ghManualInhibit = false; const bool eligible1 = ghAuto ? ghDry1 : (!ghManualInhibit && ghButton1); const bool eligible2 = ghAuto ? ghDry2 : (!ghManualInhibit && ghButton2); if (!ghZone && !ghTimeout && !ghRest && ghSourceOK) { if (eligible1 || eligible2) { ghZone = (ghNextZone == 1) ? (eligible1 ? 1 : 2) : (eligible2 ? 2 : 1); ghNextZone = ghZone == 1 ? 2 : 1; ghRunAt = now; } } ghValve1 = ghZone == 1 && ghSourceOK && !ghTimeout; ghValve2 = ghZone == 2 && ghSourceOK && !ghTimeout; ghPump = ghValve1 || ghValve2; } bool ghSentPump = false, ghSentValve1 = false, ghSentValve2 = false; public: // Outputs Mitov::CustomOutput< Mitov::DigitalPin_EmbeddedPinImplementation<2, ::PinCalls::PinCallerReceive84 >, // OutputPin bool // TYPE > Pump; Mitov::CustomOutput< Mitov::DigitalPin_EmbeddedPinImplementation<2, ::PinCalls::PinCallerReceive85 >, // OutputPin bool // TYPE > Valve1; Mitov::CustomOutput< Mitov::DigitalPin_EmbeddedPinImplementation<2, ::PinCalls::PinCallerReceive86 >, // OutputPin bool // TYPE > Valve2; Mitov::CustomOutput< Mitov::DigitalPin_EmbeddedPinImplementation<2, ::PinCalls::PinCallerReceive87 >, // OutputPin bool // TYPE > Timeout; Mitov::CustomOutput< Mitov::DigitalPin_EmbeddedPinImplementation<2, ::PinCalls::PinCallerReceive88 >, // OutputPin bool // TYPE > Rest; Mitov::CustomOutput< Mitov::DigitalPin_EmbeddedPinImplementation<2, ::PinCalls::PinCallerReceive89 >, // OutputPin bool // TYPE > Inhibit; public: // Inputs inline void __Inputs_o_0_o_Receive( bool AValue ) { ghReady = AValue; } inline void __Inputs_o_1_o_Receive( bool AValue ) { ghAuto = AValue; } inline void __Inputs_o_2_o_Receive( bool AValue ) { ghSourceOK = AValue; } inline void __Inputs_o_3_o_Receive( bool AValue ) { ghButton1 = AValue; } inline void __Inputs_o_4_o_Receive( bool AValue ) { ghButton2 = AValue; } inline void __Inputs_o_5_o_Receive( bool AValue ) { ghDry1 = AValue; } inline void __Inputs_o_6_o_Receive( bool AValue ) { ghDry2 = AValue; } public: void SystemStart(); public: void ClockInputPin_o_Receive( void * ); }; class TArduinoCustomCodeInputDigitalElement1 { public: void InputPin_o_Receive( void *_Data ); }; class TArduinoCustomCodeInputDigitalElement2 { public: void InputPin_o_Receive( void *_Data ); }; class TArduinoCustomCodeInputDigitalElement3 { public: void InputPin_o_Receive( void *_Data ); }; class TArduinoCustomCodeInputDigitalElement4 { public: void InputPin_o_Receive( void *_Data ); }; class TArduinoCustomCodeInputDigitalElement5 { public: void InputPin_o_Receive( void *_Data ); }; class TArduinoCustomCodeInputDigitalElement6 { public: void InputPin_o_Receive( void *_Data ); }; class TArduinoCustomCodeInputDigitalElement7 { public: void InputPin_o_Receive( void *_Data ); }; class TLightingController1 { struct GreenhouseClockGuard { bool acquired = false; bool haveBaseline = false; uint8_t advancing = 0; uint32_t lastCivil = 0; uint32_t advancedAt = 0; uint32_t secondOfDay = 0; void invalidate() { acquired = haveBaseline = false; advancing = 0; } void tick(uint32_t now) { if (haveBaseline && uint32_t(now - advancedAt) >= 3500UL) invalidate(); } static bool civil(uint16_t year, uint8_t month, uint8_t day, uint8_t hour, uint8_t minute, uint8_t second, uint32_t &stamp) { if (year < 2000 || year > 2099 || month < 1 || month > 12 || hour > 23 || minute > 59 || second > 59) return false; static const uint8_t lengths[] = { 31,28,31,30,31,30,31,31,30,31,30,31 } ; const bool leap = year % 4 == 0; const uint8_t maximum = lengths[month - 1] + (month == 2 && leap ? 1 : 0); if (day < 1 || day > maximum) return false; uint32_t days = 0; for (uint16_t y = 2000; y < year; ++y) days += y % 4 == 0 ? 366 : 365; for (uint8_t m = 1; m < month; ++m) days += lengths[m - 1] + (m == 2 && leap ? 1 : 0); days += day - 1; stamp = ((days * 24UL + hour) * 60UL + minute) * 60UL + second; return true; } bool sample(uint32_t now, uint16_t year, uint8_t month, uint8_t day, uint8_t hour, uint8_t minute, uint8_t second) { tick(now); uint32_t stamp = 0; if (!civil(year, month, day, hour, minute, second, stamp)) { invalidate(); return false; } secondOfDay = uint32_t(hour) * 3600UL + uint32_t(minute) * 60UL + second; if (!haveBaseline) { haveBaseline = true; lastCivil = stamp; advancedAt = now; return false; } if (stamp == lastCivil) return acquired; if (stamp > lastCivil && stamp - lastCivil <= 2UL) { if (advancing < 2) ++advancing; acquired = advancing >= 2; } else { advancing = 0; acquired = false; } lastCivil = stamp; advancedAt = now; return acquired; } } ; struct GreenhouseLighting { bool request = false; bool output = false; bool previousPermission = false; uint32_t changedAt = 0; void start(uint32_t now) { request = output = previousPermission = false; changedAt = now; } bool scan(uint32_t now, uint16_t insideAdc, bool acquiredFreshClock, uint32_t civilSecondOfDay) { const uint32_t product = uint32_t(insideAdc) * 100UL; if (product <= 35UL * 1023UL) request = true; else if (product >= 45UL * 1023UL) request = false; const bool permission = acquiredFreshClock && civilSecondOfDay >= 6UL * 3600UL && civilSecondOfDay < 22UL * 3600UL; if (!permission) { if (previousPermission || output) changedAt = now; output = false; } else if (request != output && uint32_t(now - changedAt) >= 5000UL) { output = request; changedAt = now; } previousPermission = permission; return output; } } ; GreenhouseClockGuard ghClock; GreenhouseLighting ghLight; uint32_t ghInsideADC=1023, ghOutsideADC=0; public: // Outputs Mitov::CustomOutput< Mitov::DigitalPin_EmbeddedPinImplementation<2, ::PinCalls::PinCallerReceive96 >, // OutputPin bool // TYPE > Light; Mitov::CustomOutput< Mitov::DigitalPin_EmbeddedPinImplementation<2, ::PinCalls::PinCallerReceive97 >, // OutputPin bool // TYPE > ClockFault; public: // Inputs inline void __Inputs_o_0_o_Receive( Mitov::TDateTime AValue ) { uint16_t y,m,d,h,n,s,ms; AValue.DecodeDateTime(y,m,d,h,n,s,ms); if(m>12 || d>31 || h>23 || n>59 || s>59) ghClock.invalidate(); else ghClock.sample((uint32_t)millis(),y,(uint8_t)m,(uint8_t)d,(uint8_t)h,(uint8_t)n,(uint8_t)s); } inline void __Inputs_o_1_o_Receive( uint32_t AValue ) { ghOutsideADC = AValue; } inline void __Inputs_o_2_o_Receive( uint32_t AValue ) { ghInsideADC = AValue; } public: void SystemStart(); public: void ClockInputPin_o_Receive( void * ); }; class TArduinoCustomCodeInputDateTimeElement1 { public: void InputPin_o_Receive( void *_Data ); }; class TArduinoCustomCodeInputUnsignedElement1 { public: void InputPin_o_Receive( void *_Data ); }; class TArduinoCustomCodeInputUnsignedElement2 { public: void InputPin_o_Receive( void *_Data ); }; class TStatusDisplay1 { struct GreenhouseDisplay { int16_t temperatureTenths = 0; uint16_t humidity = 0; uint32_t soil1 = 0, soil2 = 0, outside = 0, inside = 0, civil = 0; bool timeout = false, empty = true, invalidClimate = true, hot = false; bool clockFault = true, automatic = true, valve1 = false, valve2 = false; bool pump = false, fan = false, heat = false, light = false; bool rest = false, inhibit = true, ready = false; static unsigned percent(uint32_t adc) { if (adc > 1023) adc = 1023; return unsigned((adc * 100UL + 511UL) / 1023UL); } static void pad(char *out, const char *text) { uint8_t i = 0; while (i < 20 && text[i]) { out[i] = text[i]; ++i; } while (i < 20) out[i++] = ' '; out[20] = 0; } const char *status() const { if (timeout) return "TIMEOUT"; if (empty) return "EMPTY"; if (invalidClimate) return "TEMP INVALID"; if (hot) return "OVER TEMP"; if (clockFault) return "CLOCK INVALID"; if (!ready) return "STARTING"; if (rest) return "REST"; if (!automatic && inhibit) return "RELEASE BUTTONS"; if (valve1) return "WATER ZONE 1"; if (valve2) return "WATER ZONE 2"; return "READY"; } void render(uint32_t now, char rows[4][21]) const { char text[48]; snprintf(text,sizeof(text),"%s %s",automatic ? "A" : "M",status()); pad(rows[0],text); if (invalidClimate) { snprintf(text,sizeof(text),"T:--.-C H:---%% F:%d",int(fan)); pad(rows[1],text); } else { const unsigned mag = temperatureTenths < 0 ? unsigned(-int32_t(temperatureTenths)) : unsigned(temperatureTenths); snprintf(text,sizeof(text),"T:%s%u.%uC H:%u%%",temperatureTenths < 0 ? "-" : "",mag/10, mag%10,unsigned(humidity)); pad(rows[1],text); } if ((now / 4000UL) % 2 == 0) snprintf(text,sizeof(text),"S1:%3u%% S2:%3u%%",percent(soil1), percent(soil2)); else snprintf(text,sizeof(text),"P%d V%d%d F%d H%d R%d",int(pump),int(valve1),int(valve2), int(fan),int(heat),int(rest)); pad(rows[2],text); if (clockFault) snprintf(text,sizeof(text),"I%u O%u L%d --:--",percent(inside), percent(outside),int(light)); else snprintf(text,sizeof(text),"I%u O%u L%d %02u:%02u",percent(inside),percent(outside), int(light),unsigned(civil/3600UL),unsigned((civil/60UL)%60UL)); pad(rows[3],text); } } ; GreenhouseDisplay view; uint32_t lastRender=0; public: // Outputs Mitov::CustomOutput< Mitov::TextPin_EmbeddedPinImplementation<2, ::PinCalls::PinCallerReceive98 >, // OutputPin Mitov::String // TYPE > Line1; Mitov::CustomOutput< Mitov::TextPin_EmbeddedPinImplementation<2, ::PinCalls::PinCallerReceive99 >, // OutputPin Mitov::String // TYPE > Line2; Mitov::CustomOutput< Mitov::TextPin_EmbeddedPinImplementation<2, ::PinCalls::PinCallerReceive100 >, // OutputPin Mitov::String // TYPE > Line3; Mitov::CustomOutput< Mitov::TextPin_EmbeddedPinImplementation<2, ::PinCalls::PinCallerReceive101 >, // OutputPin Mitov::String // TYPE > Line4; public: // Inputs inline void __Inputs_o_0_o_Receive( float AValue ) { if(AValue>=-40 && AValue<=80) view.temperatureTenths=(int16_t)(AValue*10+(AValue>=0 ? 0.5f : -0.5f)); } inline void __Inputs_o_1_o_Receive( float AValue ) { if(AValue>=0 && AValue<=100) view.humidity=(uint16_t)(AValue+0.5f); } inline void __Inputs_o_2_o_Receive( uint32_t AValue ) { view.soil1=AValue; } inline void __Inputs_o_3_o_Receive( uint32_t AValue ) { view.soil2=AValue; } inline void __Inputs_o_4_o_Receive( uint32_t AValue ) { view.outside=AValue; } inline void __Inputs_o_5_o_Receive( uint32_t AValue ) { view.inside=AValue; } inline void __Inputs_o_6_o_Receive( Mitov::TDateTime AValue ) { uint16_t y,m,d,h,n,s,ms; AValue.DecodeDateTime(y,m,d,h,n,s,ms); if(h<24 && n<60 && s<60) view.civil=uint32_t(h)*3600UL+uint32_t(n)*60UL+s; } inline void __Inputs_o_7_o_Receive( bool AValue ) { view.timeout=AValue; } inline void __Inputs_o_8_o_Receive( bool AValue ) { view.empty=AValue; } inline void __Inputs_o_9_o_Receive( bool AValue ) { view.invalidClimate=AValue; } inline void __Inputs_o_10_o_Receive( bool AValue ) { view.hot=AValue; } inline void __Inputs_o_11_o_Receive( bool AValue ) { view.clockFault=AValue; } inline void __Inputs_o_12_o_Receive( bool AValue ) { view.automatic=AValue; } inline void __Inputs_o_13_o_Receive( bool AValue ) { view.valve1=AValue; } inline void __Inputs_o_14_o_Receive( bool AValue ) { view.valve2=AValue; } inline void __Inputs_o_15_o_Receive( bool AValue ) { view.pump=AValue; } inline void __Inputs_o_16_o_Receive( bool AValue ) { view.fan=AValue; } inline void __Inputs_o_17_o_Receive( bool AValue ) { view.heat=AValue; } inline void __Inputs_o_18_o_Receive( bool AValue ) { view.light=AValue; } inline void __Inputs_o_19_o_Receive( bool AValue ) { view.rest=AValue; } inline void __Inputs_o_20_o_Receive( bool AValue ) { view.inhibit=AValue; } inline void __Inputs_o_21_o_Receive( bool AValue ) { view.ready=AValue; } public: void SystemStart(); public: void ClockInputPin_o_Receive( void * ); }; class TArduinoCustomCodeInputAnalogElement1 { public: void InputPin_o_Receive( void *_Data ); }; class TArduinoCustomCodeInputAnalogElement2 { public: void InputPin_o_Receive( void *_Data ); }; class TArduinoCustomCodeInputUnsignedElement3 { public: void InputPin_o_Receive( void *_Data ); }; class TArduinoCustomCodeInputUnsignedElement4 { public: void InputPin_o_Receive( void *_Data ); }; class TArduinoCustomCodeInputUnsignedElement5 { public: void InputPin_o_Receive( void *_Data ); }; class TArduinoCustomCodeInputUnsignedElement6 { public: void InputPin_o_Receive( void *_Data ); }; class TArduinoCustomCodeInputDateTimeElement2 { public: void InputPin_o_Receive( void *_Data ); }; class TArduinoCustomCodeInputDigitalElement8 { public: void InputPin_o_Receive( void *_Data ); }; class TArduinoCustomCodeInputDigitalElement9 { public: void InputPin_o_Receive( void *_Data ); }; class TArduinoCustomCodeInputDigitalElement10 { public: void InputPin_o_Receive( void *_Data ); }; class TArduinoCustomCodeInputDigitalElement11 { public: void InputPin_o_Receive( void *_Data ); }; class TArduinoCustomCodeInputDigitalElement12 { public: void InputPin_o_Receive( void *_Data ); }; class TArduinoCustomCodeInputDigitalElement13 { public: void InputPin_o_Receive( void *_Data ); }; class TArduinoCustomCodeInputDigitalElement14 { public: void InputPin_o_Receive( void *_Data ); }; class TArduinoCustomCodeInputDigitalElement15 { public: void InputPin_o_Receive( void *_Data ); }; class TArduinoCustomCodeInputDigitalElement16 { public: void InputPin_o_Receive( void *_Data ); }; class TArduinoCustomCodeInputDigitalElement17 { public: void InputPin_o_Receive( void *_Data ); }; class TArduinoCustomCodeInputDigitalElement18 { public: void InputPin_o_Receive( void *_Data ); }; class TArduinoCustomCodeInputDigitalElement19 { public: void InputPin_o_Receive( void *_Data ); }; class TArduinoCustomCodeInputDigitalElement20 { public: void InputPin_o_Receive( void *_Data ); }; class TArduinoCustomCodeInputDigitalElement21 { public: void InputPin_o_Receive( void *_Data ); }; class TArduinoCustomCodeInputDigitalElement22 { public: void InputPin_o_Receive( void *_Data ); }; class TClimateOutputGuard1 { bool guardFanDemand = true; bool guardHeatDemand = false; void applyClimateOutputs() { if (guardFanDemand) { Heater.Send(false); Fan.Send(true); } else { Fan.Send(false); Heater.Send(guardHeatDemand); } } public: // Outputs Mitov::CustomOutput< Mitov::DigitalPin_EmbeddedPinImplementation<2, ::PinCalls::PinCallerReceive102 >, // OutputPin bool // TYPE > Fan; Mitov::CustomOutput< Mitov::DigitalPin_EmbeddedPinImplementation<2, ::PinCalls::PinCallerReceive103 >, // OutputPin bool // TYPE > Heater; public: // Inputs inline void __Inputs_o_0_o_Receive( bool AValue ) { guardFanDemand = AValue; applyClimateOutputs(); } inline void __Inputs_o_1_o_Receive( bool AValue ) { guardHeatDemand = AValue; applyClimateOutputs(); } public: void SystemStart(); }; class TArduinoCustomCodeInputDigitalElement23 { public: void InputPin_o_Receive( void *_Data ); }; class TArduinoCustomCodeInputDigitalElement24 { public: void InputPin_o_Receive( void *_Data ); }; } // CustomCode // Declarations namespace Declarations { namespace Types { typedef Mitov::ArduinoSerialInput SerialPort0_Input_IOWCardinalStream_1; } // Types namespace Instances { Types::SerialPort0_Input_IOWCardinalStream_1 SerialPort0_Input_IOWCardinalStream_1; } // Instances namespace Types { typedef Mitov::ArduinoSerialInput SerialPort0_Input_IOWFloatStream_1; } // Types namespace Instances { Types::SerialPort0_Input_IOWFloatStream_1 SerialPort0_Input_IOWFloatStream_1; } // Instances namespace Types { typedef Mitov::ClockGenerator_Shared< Mitov::ConstantProperty<5, bool, true >, // Enabled = True (Default) Mitov::ConstantPropertyFloat<4, float, ::VisuinoConstants::FloatValue0 >, // Frequency = 0.5 Mitov::ClockPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive8 > // OutputPin > ProbeSample; // TArduinoClockGenerator } // Types namespace Instances { Types::ProbeSample ProbeSample; // TArduinoClockGenerator } // Instances namespace Types { typedef Mitov::CompareRange< Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default) Mitov::TypedVariable<12, bool, ::ComponentVariables::Variable1 >, // FStarted Mitov::ConstantProperty<7, bool, true >, // IncludeLimits = True Mitov::ConstantProperty<6, bool, false >, // IsOutsideRange = False (Default) Mitov::DigitalPin_EmbeddedPinImplementation<5, ::PinCalls::PinCallerReceive9 >, // OutputPin Mitov::NestedProperty<11, Mitov::ValueRange< Mitov::ConstantPropertyFloat<10, float, ::VisuinoConstants::FloatValue2 >, // Value_Max = 80 Mitov::ConstantPropertyFloat<9, float, ::VisuinoConstants::FloatValue1 > // Value_Min = -40 > >, // Range float // TYPE > TempRange; // TArduinoAnalogCompareRange } // Types namespace Instances { Types::TempRange TempRange; // TArduinoAnalogCompareRange } // Instances namespace Types { typedef Mitov::CompareRange< Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default) Mitov::TypedVariable<12, bool, ::ComponentVariables::Variable2 >, // FStarted Mitov::ConstantProperty<7, bool, true >, // IncludeLimits = True Mitov::ConstantProperty<6, bool, false >, // IsOutsideRange = False (Default) Mitov::DigitalPin_EmbeddedPinImplementation<5, ::PinCalls::PinCallerReceive10 >, // OutputPin Mitov::NestedProperty<11, Mitov::ValueRange< Mitov::ConstantPropertyFloat<10, float, ::VisuinoConstants::FloatValue4 >, // Value_Max = 100 Mitov::ConstantPropertyFloat<9, float, ::VisuinoConstants::FloatValue3 > // Value_Min = 0 (Default) > >, // Range float // TYPE > HumRange; // TArduinoAnalogCompareRange } // Types namespace Instances { Types::HumRange HumRange; // TArduinoAnalogCompareRange } // Instances namespace Types { typedef Mitov::ClockSwitch< Mitov::TypedVariableValue<6, bool, ::ComponentVariables::Variable3, false >, // InitialEnabled = False (Default) Mitov::ClockPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive11 > // OutputPin > TempGate; // TArduinoClockSwitch } // Types namespace Instances { Types::TempGate TempGate; // TArduinoClockSwitch } // Instances namespace Types { typedef Mitov::ClockSwitch< Mitov::TypedVariableValue<6, bool, ::ComponentVariables::Variable4, false >, // InitialEnabled = False (Default) Mitov::ClockPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive12 > // OutputPin > HumGate; // TArduinoClockSwitch } // Types namespace Instances { Types::HumGate HumGate; // TArduinoClockSwitch } // Instances namespace Types { typedef Mitov::Timer< Mitov::ConstantProperty<7, bool, false >, // AutoRepeat = False (Default) Mitov::ConstantProperty<8, bool, true >, // CanRestart = True (Default) Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default) Mitov::TypedVariable<11, bool, ::ComponentVariables::Variable5 >, // FValue Mitov::ConstantProperty<5, bool, true >, // InMicroSeconds = True (Default) Mitov::ConstantProperty<6, uint32_t, 6000000 >, // Interval = 6000000 Mitov::DigitalPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive13 > // OutputPin > ProbeFresh; // TArduinoTimer } // Types namespace Instances { Types::ProbeFresh ProbeFresh; // TArduinoTimer } // Instances namespace Types { typedef Mitov::Counter< Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default) Mitov::TypedVariableValueMinMax<20, int32_t, ::ComponentVariables::Variable6, 0, -2147483648, 2147483647 >, // FCount = 0 Mitov::ConstantProperty<7, int32_t, 0 >, // InitialValue = 0 (Default) Mitov::NestedProperty<12, Mitov::GenericValueLimit< Mitov::DigitalPin_EmbeddedPinImplementation<9, ::PinCalls::PinCallerReceive14 >, // ReachedOutputPin Mitov::ConstantProperty<10, bool, false >, // RollOver = False Mitov::ConstantProperty<11, int32_t, 2 > // Value = 2 > >, // Value_Max Mitov::NestedProperty<17, Mitov::GenericValueLimit< Mitov::DigitalPin_NoImplementation<14 >, // ReachedOutputPin Mitov::ConstantProperty<15, bool, false >, // RollOver = False Mitov::ConstantProperty<16, int32_t, 0 > // Value = 0 > >, // Value_Min Mitov::TypedPin_NoImplementation<3, int32_t >, // OutputPin Mitov::ConstantProperty<19, bool, false > // Reversed = False (Default) > GoodPairs; // TArduinoCounter } // Types namespace Instances { Types::GoodPairs GoodPairs; // TArduinoCounter } // Instances namespace Types { typedef Mitov::DetectEdge< Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default) Mitov::ConstantProperty<9, bool, false >, // FLastValue = False Mitov::ConstantProperty<11, bool, false >, // FStarted = False Mitov::ConstantProperty<7, bool, false >, // OnAnyChange = False (Default) Mitov::ConstantProperty<8, bool, true >, // OnEachSample = True Mitov::ClockPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive15 >, // OutputPin Mitov::ConstantProperty<6, bool, false > // Rising = False > TempInvalid; // TArduinoDetectEdge } // Types namespace Instances { Types::TempInvalid TempInvalid; // TArduinoDetectEdge } // Instances namespace Types { typedef Mitov::DetectEdge< Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default) Mitov::ConstantProperty<9, bool, false >, // FLastValue = False Mitov::ConstantProperty<11, bool, false >, // FStarted = False Mitov::ConstantProperty<7, bool, false >, // OnAnyChange = False (Default) Mitov::ConstantProperty<8, bool, true >, // OnEachSample = True Mitov::ClockPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive16 >, // OutputPin Mitov::ConstantProperty<6, bool, false > // Rising = False > HumInvalid; // TArduinoDetectEdge } // Types namespace Instances { Types::HumInvalid HumInvalid; // TArduinoDetectEdge } // Instances namespace Types { typedef Mitov::DetectEdge< Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default) Mitov::ConstantProperty<9, bool, false >, // FLastValue = False Mitov::ConstantProperty<11, bool, false >, // FStarted = False Mitov::ConstantProperty<7, bool, false >, // OnAnyChange = False (Default) Mitov::ConstantProperty<8, bool, true >, // OnEachSample = True Mitov::ClockPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive17 >, // OutputPin Mitov::ConstantProperty<6, bool, false > // Rising = False > FreshInvalid; // TArduinoDetectEdge } // Types namespace Instances { Types::FreshInvalid FreshInvalid; // TArduinoDetectEdge } // Instances namespace Types { typedef Mitov::CompareValue< Mitov::CompareType_Implementation_ctSmallerOrEqual, // CompareType = 5 Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default) Mitov::TypedVariable<8, bool, ::ComponentVariables::Variable7 >, // FStarted Mitov::DigitalPin_EmbeddedPinImplementation<5, ::PinCalls::PinCallerReceive18 >, // OutputPin float, // TYPE Mitov::ConstantPropertyFloat<7, float, ::VisuinoConstants::FloatValue5 > // Value = 18 > HeatSet; // TArduinoCompareValue } // Types namespace Instances { Types::HeatSet HeatSet = Types::HeatSet( 0.0f ); // TArduinoCompareValue } // Instances namespace Types { typedef Mitov::CompareValue< Mitov::CompareType_Implementation_ctBiggerOrEqual, // CompareType = 4 Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default) Mitov::TypedVariable<8, bool, ::ComponentVariables::Variable8 >, // FStarted Mitov::DigitalPin_EmbeddedPinImplementation<5, ::PinCalls::PinCallerReceive19 >, // OutputPin float, // TYPE Mitov::ConstantPropertyFloat<7, float, ::VisuinoConstants::FloatValue6 > // Value = 20 > HeatClear; // TArduinoCompareValue } // Types namespace Instances { Types::HeatClear HeatClear = Types::HeatClear( 0.0f ); // TArduinoCompareValue } // Instances namespace Types { typedef Mitov::SRFlipFlop< Mitov::TypedVariableValue<3, bool, ::ComponentVariables::Variable9, false >, // InitialValue = False (Default) Mitov::DigitalPin_NoImplementation<5 >, // InvertedOutputPin Mitov::DigitalPin_EmbeddedPinImplementation<4, ::PinCalls::PinCallerReceive20 > // OutputPin > HeatMemory; // TArduinoSRFlipFlop } // Types namespace Instances { Types::HeatMemory HeatMemory; // TArduinoSRFlipFlop } // Instances namespace Types { typedef Mitov::DetectEdge< Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default) Mitov::ConstantProperty<9, bool, false >, // FLastValue = False Mitov::ConstantProperty<11, bool, false >, // FStarted = False Mitov::ConstantProperty<7, bool, false >, // OnAnyChange = False (Default) Mitov::ConstantProperty<8, bool, true >, // OnEachSample = True Mitov::ClockPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive21 >, // OutputPin Mitov::ConstantProperty<6, bool, true > // Rising = True (Default) > HeatSetEvent; // TArduinoDetectEdge } // Types namespace Instances { Types::HeatSetEvent HeatSetEvent; // TArduinoDetectEdge } // Instances namespace Types { typedef Mitov::DetectEdge< Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default) Mitov::ConstantProperty<9, bool, false >, // FLastValue = False Mitov::ConstantProperty<11, bool, false >, // FStarted = False Mitov::ConstantProperty<7, bool, false >, // OnAnyChange = False (Default) Mitov::ConstantProperty<8, bool, true >, // OnEachSample = True Mitov::ClockPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive22 >, // OutputPin Mitov::ConstantProperty<6, bool, true > // Rising = True (Default) > HeatClearEvent; // TArduinoDetectEdge } // Types namespace Instances { Types::HeatClearEvent HeatClearEvent; // TArduinoDetectEdge } // Instances namespace Types { typedef Mitov::CompareValue< Mitov::CompareType_Implementation_ctBiggerOrEqual, // CompareType = 4 Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default) Mitov::TypedVariable<8, bool, ::ComponentVariables::Variable10 >, // FStarted Mitov::DigitalPin_EmbeddedPinImplementation<5, ::PinCalls::PinCallerReceive23 >, // OutputPin float, // TYPE Mitov::ConstantPropertyFloat<7, float, ::VisuinoConstants::FloatValue7 > // Value = 28 > FanSet; // TArduinoCompareValue } // Types namespace Instances { Types::FanSet FanSet = Types::FanSet( 0.0f ); // TArduinoCompareValue } // Instances namespace Types { typedef Mitov::CompareValue< Mitov::CompareType_Implementation_ctSmallerOrEqual, // CompareType = 5 Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default) Mitov::TypedVariable<8, bool, ::ComponentVariables::Variable11 >, // FStarted Mitov::DigitalPin_EmbeddedPinImplementation<5, ::PinCalls::PinCallerReceive24 >, // OutputPin float, // TYPE Mitov::ConstantPropertyFloat<7, float, ::VisuinoConstants::FloatValue8 > // Value = 26 > FanClear; // TArduinoCompareValue } // Types namespace Instances { Types::FanClear FanClear = Types::FanClear( 0.0f ); // TArduinoCompareValue } // Instances namespace Types { typedef Mitov::SRFlipFlop< Mitov::TypedVariableValue<3, bool, ::ComponentVariables::Variable12, false >, // InitialValue = False (Default) Mitov::DigitalPin_NoImplementation<5 >, // InvertedOutputPin Mitov::DigitalPin_EmbeddedPinImplementation<4, ::PinCalls::PinCallerReceive25 > // OutputPin > FanMemory; // TArduinoSRFlipFlop } // Types namespace Instances { Types::FanMemory FanMemory; // TArduinoSRFlipFlop } // Instances namespace Types { typedef Mitov::DetectEdge< Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default) Mitov::ConstantProperty<9, bool, false >, // FLastValue = False Mitov::ConstantProperty<11, bool, false >, // FStarted = False Mitov::ConstantProperty<7, bool, false >, // OnAnyChange = False (Default) Mitov::ConstantProperty<8, bool, true >, // OnEachSample = True Mitov::ClockPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive26 >, // OutputPin Mitov::ConstantProperty<6, bool, true > // Rising = True (Default) > FanSetEvent; // TArduinoDetectEdge } // Types namespace Instances { Types::FanSetEvent FanSetEvent; // TArduinoDetectEdge } // Instances namespace Types { typedef Mitov::DetectEdge< Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default) Mitov::ConstantProperty<9, bool, false >, // FLastValue = False Mitov::ConstantProperty<11, bool, false >, // FStarted = False Mitov::ConstantProperty<7, bool, false >, // OnAnyChange = False (Default) Mitov::ConstantProperty<8, bool, true >, // OnEachSample = True Mitov::ClockPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive27 >, // OutputPin Mitov::ConstantProperty<6, bool, true > // Rising = True (Default) > FanClearEvent; // TArduinoDetectEdge } // Types namespace Instances { Types::FanClearEvent FanClearEvent; // TArduinoDetectEdge } // Instances namespace Types { typedef Mitov::CompareValue< Mitov::CompareType_Implementation_ctBiggerOrEqual, // CompareType = 4 Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default) Mitov::TypedVariable<8, bool, ::ComponentVariables::Variable13 >, // FStarted Mitov::DigitalPin_EmbeddedPinImplementation<5, ::PinCalls::PinCallerReceive28 >, // OutputPin float, // TYPE Mitov::ConstantPropertyFloat<7, float, ::VisuinoConstants::FloatValue9 > // Value = 35 > HotSet; // TArduinoCompareValue } // Types namespace Instances { Types::HotSet HotSet = Types::HotSet( 0.0f ); // TArduinoCompareValue } // Instances namespace Types { typedef Mitov::CompareValue< Mitov::CompareType_Implementation_ctSmallerOrEqual, // CompareType = 5 Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default) Mitov::TypedVariable<8, bool, ::ComponentVariables::Variable14 >, // FStarted Mitov::DigitalPin_EmbeddedPinImplementation<5, ::PinCalls::PinCallerReceive29 >, // OutputPin float, // TYPE Mitov::ConstantPropertyFloat<7, float, ::VisuinoConstants::FloatValue10 > // Value = 33 > HotClear; // TArduinoCompareValue } // Types namespace Instances { Types::HotClear HotClear = Types::HotClear( 0.0f ); // TArduinoCompareValue } // Instances namespace Types { typedef Mitov::SRFlipFlop< Mitov::TypedVariableValue<3, bool, ::ComponentVariables::Variable15, false >, // InitialValue = False (Default) Mitov::DigitalPin_NoImplementation<5 >, // InvertedOutputPin Mitov::DigitalPin_EmbeddedPinImplementation<4, ::PinCalls::PinCallerReceive30 > // OutputPin > HotMemory; // TArduinoSRFlipFlop } // Types namespace Instances { Types::HotMemory HotMemory; // TArduinoSRFlipFlop } // Instances namespace Types { typedef Mitov::DetectEdge< Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default) Mitov::ConstantProperty<9, bool, false >, // FLastValue = False Mitov::ConstantProperty<11, bool, false >, // FStarted = False Mitov::ConstantProperty<7, bool, false >, // OnAnyChange = False (Default) Mitov::ConstantProperty<8, bool, true >, // OnEachSample = True Mitov::ClockPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive31 >, // OutputPin Mitov::ConstantProperty<6, bool, true > // Rising = True (Default) > HotSetEvent; // TArduinoDetectEdge } // Types namespace Instances { Types::HotSetEvent HotSetEvent; // TArduinoDetectEdge } // Instances namespace Types { typedef Mitov::DetectEdge< Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default) Mitov::ConstantProperty<9, bool, false >, // FLastValue = False Mitov::ConstantProperty<11, bool, false >, // FStarted = False Mitov::ConstantProperty<7, bool, false >, // OnAnyChange = False (Default) Mitov::ConstantProperty<8, bool, true >, // OnEachSample = True Mitov::ClockPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive32 >, // OutputPin Mitov::ConstantProperty<6, bool, true > // Rising = True (Default) > HotClearEvent; // TArduinoDetectEdge } // Types namespace Instances { Types::HotClearEvent HotClearEvent; // TArduinoDetectEdge } // Instances namespace Types { typedef Mitov::BooleanInverter< Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default) Mitov::DigitalPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive33 > // OutputPin > InvalidClimate; // TArduinoBooleanInverter } // Types namespace Instances { Types::InvalidClimate InvalidClimate; // TArduinoBooleanInverter } // Instances namespace Types { typedef Mitov::BooleanInverter< Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default) Mitov::DigitalPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive34 > // OutputPin > NotFanRequest; // TArduinoBooleanInverter } // Types namespace Instances { Types::NotFanRequest NotFanRequest; // TArduinoBooleanInverter } // Instances namespace Types { typedef Mitov::BooleanInverter< Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default) Mitov::DigitalPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive35 > // OutputPin > NotHot; // TArduinoBooleanInverter } // Types namespace Instances { Types::NotHot NotHot; // TArduinoBooleanInverter } // Instances namespace Types { typedef Mitov::BooleanOperation< Mitov::BooleanOr, // BASE 3, // COUNT_InputPins Mitov::TypedVariable<8, bool, ::ComponentVariables::Variable17 >, // FModified Mitov::DigitalPin_EmbeddedPinImplementation_ChangeOnly<3, ::PinCalls::PinCallerReceive36, Mitov::TypedVariable<0, bool, ::ComponentVariables::Variable16 > > // OutputPin > FanFinal; // TArduinoBooleanOr } // Types namespace Instances { Types::FanFinal FanFinal; // TArduinoBooleanOr } // Instances namespace Types { typedef Mitov::BooleanInverter< Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default) Mitov::DigitalPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive37 > // OutputPin > NotFinalFan; // TArduinoBooleanInverter } // Types namespace Instances { Types::NotFinalFan NotFinalFan; // TArduinoBooleanInverter } // Instances namespace Types { typedef Mitov::BooleanOperation< Mitov::BooleanAnd, // BASE 5, // COUNT_InputPins Mitov::TypedVariable<10, bool, ::ComponentVariables::Variable19 >, // FModified Mitov::DigitalPin_EmbeddedPinImplementation_ChangeOnly<3, ::PinCalls::PinCallerReceive38, Mitov::TypedVariable<0, bool, ::ComponentVariables::Variable18 > > // OutputPin > HeaterFinal; // TArduinoBooleanAnd } // Types namespace Instances { Types::HeaterFinal HeaterFinal; // TArduinoBooleanAnd } // Instances namespace Types { typedef Mitov::BooleanOperation< Mitov::BooleanOr, // BASE 2, // COUNT_InputPins Mitov::TypedVariable<7, bool, ::ComponentVariables::Variable21 >, // FModified Mitov::DigitalPin_EmbeddedPinImplementation_ChangeOnly<3, ::PinCalls::PinCallerReceive39, Mitov::TypedVariable<0, bool, ::ComponentVariables::Variable20 > > // OutputPin > AlarmClimate; // TArduinoBooleanOr } // Types namespace Instances { Types::AlarmClimate AlarmClimate; // TArduinoBooleanOr } // Instances namespace Types { typedef Mitov::ClockGenerator_Shared< Mitov::ConstantProperty<5, bool, true >, // Enabled = True (Default) Mitov::ConstantPropertyFloat<4, float, ::VisuinoConstants::FloatValue6 >, // Frequency = 20 Mitov::ClockPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive40 > // OutputPin > SoilClock; // TArduinoClockGenerator } // Types namespace Instances { Types::SoilClock SoilClock; // TArduinoClockGenerator } // Instances namespace Types { typedef Mitov::Snapshot< float, // 0_TYPE Mitov::ConstantProperty<5, bool, true >, // Enabled = True (Default) Mitov::AnalogPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive41 > // OutputPin > SoilSample1; // TArduinoAnalogSnapshot } // Types namespace Instances { Types::SoilSample1 SoilSample1 = Types::SoilSample1( 0.0f ); // TArduinoAnalogSnapshot } // Instances namespace Types { typedef Mitov::Snapshot< float, // 0_TYPE Mitov::ConstantProperty<5, bool, true >, // Enabled = True (Default) Mitov::AnalogPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive42 > // OutputPin > SoilSample2; // TArduinoAnalogSnapshot } // Types namespace Instances { Types::SoilSample2 SoilSample2 = Types::SoilSample2( 0.0f ); // TArduinoAnalogSnapshot } // Instances namespace Types { typedef Mitov::AnalogToUnsigned< Mitov::ConstantProperty<7, bool, true >, // Constrain = True (Default) Mitov::TypedPin_EmbeddedPinImplementation<5, ::PinCalls::PinCallerReceive43, uint32_t >, // OutputPin Mitov::ConstantProperty<6, bool, false >, // Round = False Mitov::ConstantPropertyFloat<4, float, ::VisuinoConstants::FloatValue11 > // Scale = 1023 > SoilADC1; // TArduinoFloatToUnsigned } // Types namespace Instances { Types::SoilADC1 SoilADC1; // TArduinoFloatToUnsigned } // Instances namespace Types { typedef Mitov::AnalogToUnsigned< Mitov::ConstantProperty<7, bool, true >, // Constrain = True (Default) Mitov::TypedPin_EmbeddedPinImplementation<5, ::PinCalls::PinCallerReceive44, uint32_t >, // OutputPin Mitov::ConstantProperty<6, bool, false >, // Round = False Mitov::ConstantPropertyFloat<4, float, ::VisuinoConstants::FloatValue11 > // Scale = 1023 > SoilADC2; // TArduinoFloatToUnsigned } // Types namespace Instances { Types::SoilADC2 SoilADC2; // TArduinoFloatToUnsigned } // Instances namespace Types { typedef Mitov::UnaryOperation_Param1< Mitov::MultiplyByValue, // BASE Mitov::ConstantProperty<5, bool, true >, // Enabled = True (Default) Mitov::TypedPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive45, uint32_t >, // OutputPin uint32_t, // TYPE Mitov::ConstantProperty<6, uint32_t, 100 > // Value = 100 > SoilProduct1; // TArduinoUnsignedMultiplyByValue } // Types namespace Instances { Types::SoilProduct1 SoilProduct1; // TArduinoUnsignedMultiplyByValue } // Instances namespace Types { typedef Mitov::CompareValue< Mitov::CompareType_Implementation_ctSmallerOrEqual, // CompareType = 5 Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default) Mitov::TypedVariable<8, bool, ::ComponentVariables::Variable22 >, // FStarted Mitov::DigitalPin_EmbeddedPinImplementation<5, ::PinCalls::PinCallerReceive46 >, // OutputPin uint32_t, // TYPE Mitov::ConstantProperty<7, uint32_t, 30690 > // Value = 30690 > SoilDry1; // TArduinoUnsignedCompareValue } // Types namespace Instances { Types::SoilDry1 SoilDry1 = Types::SoilDry1( 0 ); // TArduinoUnsignedCompareValue } // Instances namespace Types { typedef Mitov::CompareValue< Mitov::CompareType_Implementation_ctBiggerOrEqual, // CompareType = 4 Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default) Mitov::TypedVariable<8, bool, ::ComponentVariables::Variable23 >, // FStarted Mitov::DigitalPin_EmbeddedPinImplementation<5, ::PinCalls::PinCallerReceive47 >, // OutputPin uint32_t, // TYPE Mitov::ConstantProperty<7, uint32_t, 56265 > // Value = 56265 > SoilWet1; // TArduinoUnsignedCompareValue } // Types namespace Instances { Types::SoilWet1 SoilWet1 = Types::SoilWet1( 0 ); // TArduinoUnsignedCompareValue } // Instances namespace Types { typedef Mitov::SRFlipFlop< Mitov::TypedVariableValue<3, bool, ::ComponentVariables::Variable24, false >, // InitialValue = False (Default) Mitov::DigitalPin_NoImplementation<5 >, // InvertedOutputPin Mitov::DigitalPin_EmbeddedPinImplementation<4, ::PinCalls::PinCallerReceive48 > // OutputPin > SoilRequest1; // TArduinoSRFlipFlop } // Types namespace Instances { Types::SoilRequest1 SoilRequest1; // TArduinoSRFlipFlop } // Instances namespace Types { typedef Mitov::DetectEdge< Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default) Mitov::ConstantProperty<9, bool, false >, // FLastValue = False Mitov::ConstantProperty<11, bool, false >, // FStarted = False Mitov::ConstantProperty<7, bool, false >, // OnAnyChange = False (Default) Mitov::ConstantProperty<8, bool, true >, // OnEachSample = True Mitov::ClockPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive49 >, // OutputPin Mitov::ConstantProperty<6, bool, true > // Rising = True (Default) > DryEvent1; // TArduinoDetectEdge } // Types namespace Instances { Types::DryEvent1 DryEvent1; // TArduinoDetectEdge } // Instances namespace Types { typedef Mitov::DetectEdge< Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default) Mitov::ConstantProperty<9, bool, false >, // FLastValue = False Mitov::ConstantProperty<11, bool, false >, // FStarted = False Mitov::ConstantProperty<7, bool, false >, // OnAnyChange = False (Default) Mitov::ConstantProperty<8, bool, true >, // OnEachSample = True Mitov::ClockPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive50 >, // OutputPin Mitov::ConstantProperty<6, bool, true > // Rising = True (Default) > WetEvent1; // TArduinoDetectEdge } // Types namespace Instances { Types::WetEvent1 WetEvent1; // TArduinoDetectEdge } // Instances namespace Types { typedef Mitov::UnaryOperation_Param1< Mitov::MultiplyByValue, // BASE Mitov::ConstantProperty<5, bool, true >, // Enabled = True (Default) Mitov::TypedPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive51, uint32_t >, // OutputPin uint32_t, // TYPE Mitov::ConstantProperty<6, uint32_t, 100 > // Value = 100 > SoilProduct2; // TArduinoUnsignedMultiplyByValue } // Types namespace Instances { Types::SoilProduct2 SoilProduct2; // TArduinoUnsignedMultiplyByValue } // Instances namespace Types { typedef Mitov::CompareValue< Mitov::CompareType_Implementation_ctSmallerOrEqual, // CompareType = 5 Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default) Mitov::TypedVariable<8, bool, ::ComponentVariables::Variable25 >, // FStarted Mitov::DigitalPin_EmbeddedPinImplementation<5, ::PinCalls::PinCallerReceive52 >, // OutputPin uint32_t, // TYPE Mitov::ConstantProperty<7, uint32_t, 30690 > // Value = 30690 > SoilDry2; // TArduinoUnsignedCompareValue } // Types namespace Instances { Types::SoilDry2 SoilDry2 = Types::SoilDry2( 0 ); // TArduinoUnsignedCompareValue } // Instances namespace Types { typedef Mitov::CompareValue< Mitov::CompareType_Implementation_ctBiggerOrEqual, // CompareType = 4 Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default) Mitov::TypedVariable<8, bool, ::ComponentVariables::Variable26 >, // FStarted Mitov::DigitalPin_EmbeddedPinImplementation<5, ::PinCalls::PinCallerReceive53 >, // OutputPin uint32_t, // TYPE Mitov::ConstantProperty<7, uint32_t, 56265 > // Value = 56265 > SoilWet2; // TArduinoUnsignedCompareValue } // Types namespace Instances { Types::SoilWet2 SoilWet2 = Types::SoilWet2( 0 ); // TArduinoUnsignedCompareValue } // Instances namespace Types { typedef Mitov::SRFlipFlop< Mitov::TypedVariableValue<3, bool, ::ComponentVariables::Variable27, false >, // InitialValue = False (Default) Mitov::DigitalPin_NoImplementation<5 >, // InvertedOutputPin Mitov::DigitalPin_EmbeddedPinImplementation<4, ::PinCalls::PinCallerReceive54 > // OutputPin > SoilRequest2; // TArduinoSRFlipFlop } // Types namespace Instances { Types::SoilRequest2 SoilRequest2; // TArduinoSRFlipFlop } // Instances namespace Types { typedef Mitov::DetectEdge< Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default) Mitov::ConstantProperty<9, bool, false >, // FLastValue = False Mitov::ConstantProperty<11, bool, false >, // FStarted = False Mitov::ConstantProperty<7, bool, false >, // OnAnyChange = False (Default) Mitov::ConstantProperty<8, bool, true >, // OnEachSample = True Mitov::ClockPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive55 >, // OutputPin Mitov::ConstantProperty<6, bool, true > // Rising = True (Default) > DryEvent2; // TArduinoDetectEdge } // Types namespace Instances { Types::DryEvent2 DryEvent2; // TArduinoDetectEdge } // Instances namespace Types { typedef Mitov::DetectEdge< Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default) Mitov::ConstantProperty<9, bool, false >, // FLastValue = False Mitov::ConstantProperty<11, bool, false >, // FStarted = False Mitov::ConstantProperty<7, bool, false >, // OnAnyChange = False (Default) Mitov::ConstantProperty<8, bool, true >, // OnEachSample = True Mitov::ClockPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive56 >, // OutputPin Mitov::ConstantProperty<6, bool, true > // Rising = True (Default) > WetEvent2; // TArduinoDetectEdge } // Types namespace Instances { Types::WetEvent2 WetEvent2; // TArduinoDetectEdge } // Instances namespace Types { typedef Mitov::Button< Mitov::ConstantProperty<5, uint32_t, 40 >, // DebounceInterval = 40 Mitov::TypedVariable<6, bool, ::ComponentVariables::Variable28 >, // FLastValue Mitov::TypedVariable<8, bool, ::ComponentVariables::Variable29 >, // FValue Mitov::DigitalPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive57 > // OutputPin > ModeDebounce; // TArduinoButton } // Types namespace Instances { Types::ModeDebounce ModeDebounce; // TArduinoButton } // Instances namespace Types { typedef Mitov::Button< Mitov::ConstantProperty<5, uint32_t, 40 >, // DebounceInterval = 40 Mitov::TypedVariable<6, bool, ::ComponentVariables::Variable30 >, // FLastValue Mitov::TypedVariable<8, bool, ::ComponentVariables::Variable31 >, // FValue Mitov::DigitalPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive58 > // OutputPin > Manual1Debounce; // TArduinoButton } // Types namespace Instances { Types::Manual1Debounce Manual1Debounce; // TArduinoButton } // Instances namespace Types { typedef Mitov::Button< Mitov::ConstantProperty<5, uint32_t, 40 >, // DebounceInterval = 40 Mitov::TypedVariable<6, bool, ::ComponentVariables::Variable32 >, // FLastValue Mitov::TypedVariable<8, bool, ::ComponentVariables::Variable33 >, // FValue Mitov::DigitalPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive59 > // OutputPin > Manual2Debounce; // TArduinoButton } // Types namespace Instances { Types::Manual2Debounce Manual2Debounce; // TArduinoButton } // Instances namespace Types { typedef Mitov::Button< Mitov::ConstantProperty<5, uint32_t, 40 >, // DebounceInterval = 40 Mitov::TypedVariable<6, bool, ::ComponentVariables::Variable34 >, // FLastValue Mitov::TypedVariable<8, bool, ::ComponentVariables::Variable35 >, // FValue Mitov::DigitalPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive60 > // OutputPin > EmptyDebounce; // TArduinoButton } // Types namespace Instances { Types::EmptyDebounce EmptyDebounce; // TArduinoButton } // Instances namespace Types { typedef Mitov::DigitalSnapshot< Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default) Mitov::TypedVariable<7, bool, ::ComponentVariables::Variable36 >, // FData Mitov::DigitalPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive61 > // OutputPin > ModeSample; // TArduinoDigitalSnapshot } // Types namespace Instances { Types::ModeSample ModeSample; // TArduinoDigitalSnapshot } // Instances namespace Types { typedef Mitov::DigitalSnapshot< Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default) Mitov::TypedVariable<7, bool, ::ComponentVariables::Variable37 >, // FData Mitov::DigitalPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive62 > // OutputPin > Manual1Sample; // TArduinoDigitalSnapshot } // Types namespace Instances { Types::Manual1Sample Manual1Sample; // TArduinoDigitalSnapshot } // Instances namespace Types { typedef Mitov::DigitalSnapshot< Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default) Mitov::TypedVariable<7, bool, ::ComponentVariables::Variable38 >, // FData Mitov::DigitalPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive63 > // OutputPin > Manual2Sample; // TArduinoDigitalSnapshot } // Types namespace Instances { Types::Manual2Sample Manual2Sample; // TArduinoDigitalSnapshot } // Instances namespace Types { typedef Mitov::DigitalSnapshot< Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default) Mitov::TypedVariable<7, bool, ::ComponentVariables::Variable39 >, // FData Mitov::DigitalPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive64 > // OutputPin > EmptySample; // TArduinoDigitalSnapshot } // Types namespace Instances { Types::EmptySample EmptySample; // TArduinoDigitalSnapshot } // Instances namespace Types { typedef Mitov::Start< Mitov::ClockPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive65 > // OutputPin > BootStart; // TArduinoStart } // Types namespace Instances { Types::BootStart BootStart; // TArduinoStart } // Instances namespace Types { typedef Mitov::Delay< Mitov::ConstantProperty<9, bool, false >, // CanRestart = False Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default) Mitov::TypedVariable<10, bool, ::ComponentVariables::Variable40 >, // FValue Mitov::ConstantProperty<7, bool, false >, // InMicroSeconds = False Mitov::ConstantProperty<8, uint32_t, 100 >, // Interval = 100 Mitov::ClockPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive66 > // OutputPin > BootDelay; // TArduinoDelay } // Types namespace Instances { Types::BootDelay BootDelay; // TArduinoDelay } // Instances namespace Types { typedef Mitov::BooleanInverter< Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default) Mitov::DigitalPin_NoImplementation<3 > // OutputPin > ManualMode; // TArduinoBooleanInverter } // Types namespace Instances { Types::ManualMode ManualMode; // TArduinoBooleanInverter } // Instances namespace Types { typedef Mitov::BooleanInverter< Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default) Mitov::DigitalPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive67 > // OutputPin > Manual1Held; // TArduinoBooleanInverter } // Types namespace Instances { Types::Manual1Held Manual1Held; // TArduinoBooleanInverter } // Instances namespace Types { typedef Mitov::BooleanInverter< Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default) Mitov::DigitalPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive68 > // OutputPin > Manual2Held; // TArduinoBooleanInverter } // Types namespace Instances { Types::Manual2Held Manual2Held; // TArduinoBooleanInverter } // Instances namespace Types { typedef Mitov::BooleanInverter< Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default) Mitov::DigitalPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive69 > // OutputPin > SourceEmpty; // TArduinoBooleanInverter } // Types namespace Instances { Types::SourceEmpty SourceEmpty; // TArduinoBooleanInverter } // Instances namespace Types { typedef Mitov::SRFlipFlop< Mitov::TypedVariableValue<3, bool, ::ComponentVariables::Variable41, false >, // InitialValue = False (Default) Mitov::DigitalPin_NoImplementation<5 >, // InvertedOutputPin Mitov::DigitalPin_EmbeddedPinImplementation<4, ::PinCalls::PinCallerReceive70 > // OutputPin > BootElapsed; // TArduinoSRFlipFlop } // Types namespace Instances { Types::BootElapsed BootElapsed; // TArduinoSRFlipFlop } // Instances namespace Types { typedef Mitov::ClockSwitch< Mitov::TypedVariableValue<6, bool, ::ComponentVariables::Variable42, false >, // InitialEnabled = False (Default) Mitov::ClockPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive71 > // OutputPin > ScanReadyGate; // TArduinoClockSwitch } // Types namespace Instances { Types::ScanReadyGate ScanReadyGate; // TArduinoClockSwitch } // Instances namespace Types { typedef Mitov::SRFlipFlop< Mitov::TypedVariableValue<3, bool, ::ComponentVariables::Variable43, false >, // InitialValue = False (Default) Mitov::DigitalPin_NoImplementation<5 >, // InvertedOutputPin Mitov::DigitalPin_EmbeddedPinImplementation<4, ::PinCalls::PinCallerReceive72 > // OutputPin > InputsReady; // TArduinoSRFlipFlop } // Types namespace Instances { Types::InputsReady InputsReady; // TArduinoSRFlipFlop } // Instances namespace Types { typedef Mitov::SRFlipFlop< Mitov::TypedVariableValue<3, bool, ::ComponentVariables::Variable44, false >, // InitialValue = False (Default) Mitov::DigitalPin_NoImplementation<5 >, // InvertedOutputPin Mitov::DigitalPin_EmbeddedPinImplementation<4, ::PinCalls::PinCallerReceive73 > // OutputPin > ManualArmed; // TArduinoSRFlipFlop } // Types namespace Instances { Types::ManualArmed ManualArmed; // TArduinoSRFlipFlop } // Instances namespace Types { typedef Mitov::ClockSwitch< Mitov::TypedVariableValue<6, bool, ::ComponentVariables::Variable45, false >, // InitialEnabled = False (Default) Mitov::ClockPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive74 > // OutputPin > Release1Gate; // TArduinoClockSwitch } // Types namespace Instances { Types::Release1Gate Release1Gate; // TArduinoClockSwitch } // Instances namespace Types { typedef Mitov::ClockSwitch< Mitov::TypedVariableValue<6, bool, ::ComponentVariables::Variable46, false >, // InitialEnabled = False (Default) Mitov::ClockPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive75 > // OutputPin > Release2Gate; // TArduinoClockSwitch } // Types namespace Instances { Types::Release2Gate Release2Gate; // TArduinoClockSwitch } // Instances namespace Types { typedef Mitov::ClockSwitch< Mitov::TypedVariableValue<6, bool, ::ComponentVariables::Variable47, false >, // InitialEnabled = False (Default) Mitov::ClockPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive76 > // OutputPin > ReleaseSourceGate; // TArduinoClockSwitch } // Types namespace Instances { Types::ReleaseSourceGate ReleaseSourceGate; // TArduinoClockSwitch } // Instances namespace Types { typedef Mitov::DetectEdge< Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default) Mitov::TypedVariableValue<9, bool, ::ComponentVariables::Variable48, false >, // FLastValue = False Mitov::TypedVariableValue<11, bool, ::ComponentVariables::Variable49, false >, // FStarted = False Mitov::ConstantProperty<7, bool, true >, // OnAnyChange = True Mitov::ConstantProperty<8, bool, false >, // OnEachSample = False (Default) Mitov::ClockPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive77 >, // OutputPin Mitov::ConstantProperty<6, bool, true > // Rising = True (Default) > ModeChanged; // TArduinoDetectEdge } // Types namespace Instances { Types::ModeChanged ModeChanged; // TArduinoDetectEdge } // Instances namespace Types { typedef Mitov::DetectEdge< Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default) Mitov::ConstantProperty<9, bool, false >, // FLastValue = False Mitov::ConstantProperty<11, bool, false >, // FStarted = False Mitov::ConstantProperty<7, bool, false >, // OnAnyChange = False (Default) Mitov::ConstantProperty<8, bool, true >, // OnEachSample = True Mitov::ClockPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive78 >, // OutputPin Mitov::ConstantProperty<6, bool, true > // Rising = True (Default) > EmptyEvent; // TArduinoDetectEdge } // Types namespace Instances { Types::EmptyEvent EmptyEvent; // TArduinoDetectEdge } // Instances namespace Types { typedef Mitov::BooleanOperation< Mitov::BooleanAnd, // BASE 2, // COUNT_InputPins Mitov::TypedVariable<7, bool, ::ComponentVariables::Variable51 >, // FModified Mitov::DigitalPin_EmbeddedPinImplementation_ChangeOnly<3, ::PinCalls::PinCallerReceive79, Mitov::TypedVariable<0, bool, ::ComponentVariables::Variable50 > > // OutputPin > ManualDemand1; // TArduinoBooleanAnd } // Types namespace Instances { Types::ManualDemand1 ManualDemand1; // TArduinoBooleanAnd } // Instances namespace Types { typedef Mitov::BooleanOperation< Mitov::BooleanAnd, // BASE 2, // COUNT_InputPins Mitov::TypedVariable<7, bool, ::ComponentVariables::Variable53 >, // FModified Mitov::DigitalPin_EmbeddedPinImplementation_ChangeOnly<3, ::PinCalls::PinCallerReceive80, Mitov::TypedVariable<0, bool, ::ComponentVariables::Variable52 > > // OutputPin > ManualDemand2; // TArduinoBooleanAnd } // Types namespace Instances { Types::ManualDemand2 ManualDemand2; // TArduinoBooleanAnd } // Instances namespace Types { typedef Mitov::DigitalToggleSwitch< Mitov::TypedVariable<10, bool, ::ComponentVariables::Variable56 >, // FFalseValue Mitov::TypedVariable<8, bool, ::ComponentVariables::Variable55 >, // FTrueValue Mitov::TypedVariableValue<7, bool, ::ComponentVariables::Variable54, true >, // InitialSelectValue = True Mitov::DigitalPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive81 > // OutputPin > Demand1; // TArduinoDigitalToggleSwitch } // Types namespace Instances { Types::Demand1 Demand1; // TArduinoDigitalToggleSwitch } // Instances namespace Types { typedef Mitov::DigitalToggleSwitch< Mitov::TypedVariable<10, bool, ::ComponentVariables::Variable59 >, // FFalseValue Mitov::TypedVariable<8, bool, ::ComponentVariables::Variable58 >, // FTrueValue Mitov::TypedVariableValue<7, bool, ::ComponentVariables::Variable57, true >, // InitialSelectValue = True Mitov::DigitalPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive82 > // OutputPin > Demand2; // TArduinoDigitalToggleSwitch } // Types namespace Instances { Types::Demand2 Demand2; // TArduinoDigitalToggleSwitch } // Instances namespace Types { typedef Mitov::BooleanOperation< Mitov::BooleanAnd, // BASE 2, // COUNT_InputPins Mitov::TypedVariable<7, bool, ::ComponentVariables::Variable61 >, // FModified Mitov::DigitalPin_EmbeddedPinImplementation_ChangeOnly<3, ::PinCalls::PinCallerReceive83, Mitov::TypedVariable<0, bool, ::ComponentVariables::Variable60 > > // OutputPin > WaterInputsOK; // TArduinoBooleanAnd } // Types namespace Instances { Types::WaterInputsOK WaterInputsOK; // TArduinoBooleanAnd } // Instances namespace Types { typedef Mitov::BooleanOperation< Mitov::BooleanAnd, // BASE 2, // COUNT_InputPins Mitov::TypedVariable<7, bool, ::ComponentVariables::Variable62 >, // FModified Mitov::DigitalPin_NoImplementation<3 > // OutputPin > Eligible1; // TArduinoBooleanAnd } // Types namespace Instances { Types::Eligible1 Eligible1; // TArduinoBooleanAnd } // Instances namespace Types { typedef Mitov::BooleanOperation< Mitov::BooleanAnd, // BASE 2, // COUNT_InputPins Mitov::TypedVariable<7, bool, ::ComponentVariables::Variable63 >, // FModified Mitov::DigitalPin_NoImplementation<3 > // OutputPin > Eligible2; // TArduinoBooleanAnd } // Types namespace Instances { Types::Eligible2 Eligible2; // TArduinoBooleanAnd } // Instances namespace Types { typedef CustomCode::TIrrigationController1 IrrigationController; // TArduinoCustomCode } // Types namespace Instances { Types::IrrigationController IrrigationController; // TArduinoCustomCode } // Instances namespace Types { typedef CustomCode::TArduinoCustomCodeInputDigitalElement1 TArduinoCustomCodeInputDigitalElement1; } // Types namespace Instances { Types::TArduinoCustomCodeInputDigitalElement1 TArduinoCustomCodeInputDigitalElement1; } // Instances namespace Types { typedef CustomCode::TArduinoCustomCodeInputDigitalElement2 TArduinoCustomCodeInputDigitalElement2; } // Types namespace Instances { Types::TArduinoCustomCodeInputDigitalElement2 TArduinoCustomCodeInputDigitalElement2; } // Instances namespace Types { typedef CustomCode::TArduinoCustomCodeInputDigitalElement3 TArduinoCustomCodeInputDigitalElement3; } // Types namespace Instances { Types::TArduinoCustomCodeInputDigitalElement3 TArduinoCustomCodeInputDigitalElement3; } // Instances namespace Types { typedef CustomCode::TArduinoCustomCodeInputDigitalElement4 TArduinoCustomCodeInputDigitalElement4; } // Types namespace Instances { Types::TArduinoCustomCodeInputDigitalElement4 TArduinoCustomCodeInputDigitalElement4; } // Instances namespace Types { typedef CustomCode::TArduinoCustomCodeInputDigitalElement5 TArduinoCustomCodeInputDigitalElement5; } // Types namespace Instances { Types::TArduinoCustomCodeInputDigitalElement5 TArduinoCustomCodeInputDigitalElement5; } // Instances namespace Types { typedef CustomCode::TArduinoCustomCodeInputDigitalElement6 TArduinoCustomCodeInputDigitalElement6; } // Types namespace Instances { Types::TArduinoCustomCodeInputDigitalElement6 TArduinoCustomCodeInputDigitalElement6; } // Instances namespace Types { typedef CustomCode::TArduinoCustomCodeInputDigitalElement7 TArduinoCustomCodeInputDigitalElement7; } // Types namespace Instances { Types::TArduinoCustomCodeInputDigitalElement7 TArduinoCustomCodeInputDigitalElement7; } // Instances Mitov::CustomOutput< Mitov::DigitalPin_EmbeddedPinImplementation<2, ::PinCalls::PinCallerReceive84 >, // OutputPin bool // TYPE > &TArduinoCustomCodeOutputDigitalElement1 = Declarations::Instances::IrrigationController.Pump; Mitov::CustomOutput< Mitov::DigitalPin_EmbeddedPinImplementation<2, ::PinCalls::PinCallerReceive85 >, // OutputPin bool // TYPE > &TArduinoCustomCodeOutputDigitalElement2 = Declarations::Instances::IrrigationController.Valve1; Mitov::CustomOutput< Mitov::DigitalPin_EmbeddedPinImplementation<2, ::PinCalls::PinCallerReceive86 >, // OutputPin bool // TYPE > &TArduinoCustomCodeOutputDigitalElement3 = Declarations::Instances::IrrigationController.Valve2; Mitov::CustomOutput< Mitov::DigitalPin_EmbeddedPinImplementation<2, ::PinCalls::PinCallerReceive87 >, // OutputPin bool // TYPE > &TArduinoCustomCodeOutputDigitalElement4 = Declarations::Instances::IrrigationController.Timeout; Mitov::CustomOutput< Mitov::DigitalPin_EmbeddedPinImplementation<2, ::PinCalls::PinCallerReceive88 >, // OutputPin bool // TYPE > &TArduinoCustomCodeOutputDigitalElement5 = Declarations::Instances::IrrigationController.Rest; Mitov::CustomOutput< Mitov::DigitalPin_EmbeddedPinImplementation<2, ::PinCalls::PinCallerReceive89 >, // OutputPin bool // TYPE > &TArduinoCustomCodeOutputDigitalElement6 = Declarations::Instances::IrrigationController.Inhibit; namespace Types { typedef Mitov::Snapshot< float, // 0_TYPE Mitov::ConstantProperty<5, bool, true >, // Enabled = True (Default) Mitov::AnalogPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive90 > // OutputPin > OutsideLightSample; // TArduinoAnalogSnapshot } // Types namespace Instances { Types::OutsideLightSample OutsideLightSample = Types::OutsideLightSample( 0.0f ); // TArduinoAnalogSnapshot } // Instances namespace Types { typedef Mitov::Snapshot< float, // 0_TYPE Mitov::ConstantProperty<5, bool, true >, // Enabled = True (Default) Mitov::AnalogPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive91 > // OutputPin > InsideLightSample; // TArduinoAnalogSnapshot } // Types namespace Instances { Types::InsideLightSample InsideLightSample = Types::InsideLightSample( 0.0f ); // TArduinoAnalogSnapshot } // Instances namespace Types { typedef Mitov::AnalogToUnsigned< Mitov::ConstantProperty<7, bool, true >, // Constrain = True (Default) Mitov::TypedPin_EmbeddedPinImplementation<5, ::PinCalls::PinCallerReceive92, uint32_t >, // OutputPin Mitov::ConstantProperty<6, bool, false >, // Round = False Mitov::ConstantPropertyFloat<4, float, ::VisuinoConstants::FloatValue11 > // Scale = 1023 > OutsideLightADC; // TArduinoFloatToUnsigned } // Types namespace Instances { Types::OutsideLightADC OutsideLightADC; // TArduinoFloatToUnsigned } // Instances namespace Types { typedef Mitov::AnalogToUnsigned< Mitov::ConstantProperty<7, bool, true >, // Constrain = True (Default) Mitov::TypedPin_EmbeddedPinImplementation<5, ::PinCalls::PinCallerReceive93, uint32_t >, // OutputPin Mitov::ConstantProperty<6, bool, false >, // Round = False Mitov::ConstantPropertyFloat<4, float, ::VisuinoConstants::FloatValue11 > // Scale = 1023 > InsideLightADC; // TArduinoFloatToUnsigned } // Types namespace Instances { Types::InsideLightADC InsideLightADC; // TArduinoFloatToUnsigned } // Instances namespace Types { typedef Mitov::RTC_DS3231< TwoWire, // 0_I2C_TYPE_PIN Wire, // 1_I2C_NAME_PIN Mitov::ConstantProperty<33, uint8_t, 104 >, // Address = 104 (Default) Mitov::NestedProperty<21, Mitov::TArduinoRTCDS3231AlarmOne< Mitov::ClockPin_NoImplementation<13 >, // AlarmOutputPin Mitov::ConstantProperty<17, uint32_t, 1 >, // Date = 1 (Default) Mitov::ConstantProperty<12, bool, false >, // Enabled = False (Default) Mitov::ConstantProperty<16, uint32_t, 0 >, // Hour = 0 (Default) Mitov::ConstantProperty<14, bool, false >, // InterruptEnabled = False (Default) Mitov::ConstantProperty<15, uint32_t, 0 >, // Minute = 0 (Default) Mitov::ConstantProperty<20, Mitov::TArduinoRTCDS3231Alarm1Mode, Mitov::rtc3231a1mOnHoursMinutesSeconds >, // Mode = 3 (Default) Mitov::ConstantProperty<19, uint32_t, 0 >, // Second = 0 (Default) Mitov::ConstantProperty<18, uint32_t, 0 > // WeekDay = 0 (Default) > >, // AlarmOne Mitov::NestedProperty<31, Mitov::TArduinoRTCDS3231AlarmTwo< Mitov::ClockPin_NoImplementation<24 >, // AlarmOutputPin Mitov::ConstantProperty<28, uint32_t, 1 >, // Date = 1 (Default) Mitov::ConstantProperty<23, bool, false >, // Enabled = False (Default) Mitov::ConstantProperty<27, uint32_t, 0 >, // Hour = 0 (Default) Mitov::ConstantProperty<25, bool, false >, // InterruptEnabled = False (Default) Mitov::ConstantProperty<26, uint32_t, 0 >, // Minute = 0 (Default) Mitov::ConstantProperty<30, Mitov::TArduinoRTCDS3231Alarm2Mode, Mitov::rtc3231a2mOnHoursMinutes >, // Mode = 2 (Default) Mitov::ConstantProperty<29, uint32_t, 0 > // WeekDay = 0 (Default) > >, // AlarmTwo Mitov::ConstantProperty<6, bool, true >, // ClockInputPin_o_IsConnected = True Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default) Mitov::ConstantProperty<32, bool, false >, // Halt = False (Default) Mitov::TypedPin_EmbeddedPinImplementation_ChangeOnly<3, ::PinCalls::PinCallerReceive94, Mitov::TDateTime >, // OutputPin Mitov::AnalogPin_NoImplementation<10 > // TemperatureOutputPin > ProbeClock; // TArduinoRTCDS3231 } // Types namespace Instances { Types::ProbeClock ProbeClock; // TArduinoRTCDS3231 } // Instances namespace Types { typedef Mitov::ClockGenerator_Shared< Mitov::ConstantProperty<5, bool, true >, // Enabled = True (Default) Mitov::ConstantPropertyFloat<4, float, ::VisuinoConstants::FloatValue12 >, // Frequency = 1 (Default) Mitov::ClockPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive95 > // OutputPin > ProbeTick; // TArduinoClockGenerator } // Types namespace Instances { Types::ProbeTick ProbeTick; // TArduinoClockGenerator } // Instances namespace Types { typedef CustomCode::TLightingController1 LightingController; // TArduinoCustomCode } // Types namespace Instances { Types::LightingController LightingController; // TArduinoCustomCode } // Instances namespace Types { typedef CustomCode::TArduinoCustomCodeInputDateTimeElement1 TArduinoCustomCodeInputDateTimeElement1; } // Types namespace Instances { Types::TArduinoCustomCodeInputDateTimeElement1 TArduinoCustomCodeInputDateTimeElement1; } // Instances namespace Types { typedef CustomCode::TArduinoCustomCodeInputUnsignedElement1 TArduinoCustomCodeInputUnsignedElement1; } // Types namespace Instances { Types::TArduinoCustomCodeInputUnsignedElement1 TArduinoCustomCodeInputUnsignedElement1; } // Instances namespace Types { typedef CustomCode::TArduinoCustomCodeInputUnsignedElement2 TArduinoCustomCodeInputUnsignedElement2; } // Types namespace Instances { Types::TArduinoCustomCodeInputUnsignedElement2 TArduinoCustomCodeInputUnsignedElement2; } // Instances Mitov::CustomOutput< Mitov::DigitalPin_EmbeddedPinImplementation<2, ::PinCalls::PinCallerReceive96 >, // OutputPin bool // TYPE > &TArduinoCustomCodeOutputDigitalElement7 = Declarations::Instances::LightingController.Light; Mitov::CustomOutput< Mitov::DigitalPin_EmbeddedPinImplementation<2, ::PinCalls::PinCallerReceive97 >, // OutputPin bool // TYPE > &TArduinoCustomCodeOutputDigitalElement8 = Declarations::Instances::LightingController.ClockFault; namespace Types { typedef Mitov::BooleanOperation< Mitov::BooleanOr, // BASE 4, // COUNT_InputPins Mitov::TypedVariable<9, bool, ::ComponentVariables::Variable64 >, // FModified Mitov::DigitalPin_DirectBoardPinImplementation<13 > // OutputPin > FinalAlarm; // TArduinoBooleanOr } // Types namespace Instances { Types::FinalAlarm FinalAlarm; // TArduinoBooleanOr } // Instances namespace Types { typedef Mitov::LiquidCrystalDisplay< Mitov::LiquidCrystalDisplayI2C< TwoWire, // 0_I2C_TYPE_PIN Wire, // 1_I2C_NAME_PIN Mitov::ConstantProperty<24, uint8_t, 39 >, // Address = 39 (Default) Mitov::ConstantProperty<22, bool, true >, // Backlight = True (Default) Mitov::ConstantProperty<21, bool, true > // BacklightPositive = True (Default) >, // 0_IMPLEMENTATION Mitov::ConstantProperty<9, bool, false >, // AutoScroll = False (Default) Mitov::ConstantProperty<12, bool, false >, // Blink = False (Default) Mitov::ConstantProperty<17, uint32_t, 20 >, // Columns = 20 Mitov::ConstantProperty<3, bool, true >, // Enabled = True (Default) Mitov::TypedVariable<18, uint32_t, ::ComponentVariables::Variable66 >, // FCursorLine Mitov::TypedVariable<15, uint32_t, ::ComponentVariables::Variable65 >, // FCursorPos Mitov::ConstantProperty<13, bool, false >, // Hight10Pixels = False (Default) Mitov::ConstantProperty<10, bool, false >, // RightToLeft = False (Default) Mitov::ConstantProperty<20, uint32_t, 4 >, // Rows = 4 Mitov::ConstantProperty<11, bool, false > // ShowCursor = False (Default) > ProbeDisplay; // TArduinoLiquidCrystalDisplayI2C } // Types namespace Instances { Types::ProbeDisplay ProbeDisplay; // TArduinoLiquidCrystalDisplayI2C } // Instances namespace Types { typedef Mitov::LiquidCrystalElementTextField< Declarations::Types::ProbeDisplay, // 0_TYPE_OWNER Declarations::Instances::ProbeDisplay, // 1_NAME_OWNER Mitov::ConstantProperty<6, bool, true >, // AllignLeft = True (Default) Mitov::ConstantProperty<3, uint32_t, 0 >, // Column = 0 (Default) Mitov::ConstantProperty<7, char, ' ' >, // FillCharacter = ' ' (Default) Mitov::ConstantPropertyString<9, ::VisuinoConstants::TextValue0 >, // InitialValue = " " Mitov::ConstantProperty<4, uint32_t, 0 >, // Row = 0 (Default) Mitov::ConstantProperty<5, uint32_t, 20 > // Width = 20 > TArduinoLiquidCrystalElementTextField1; } // Types namespace Instances { Types::TArduinoLiquidCrystalElementTextField1 TArduinoLiquidCrystalElementTextField1; } // Instances namespace Types { typedef Mitov::LiquidCrystalDisplayFieldInput_String TArduinoLiquidCrystalElementTextField1_Input_IOWStringStream_1; } // Types namespace Instances { Types::TArduinoLiquidCrystalElementTextField1_Input_IOWStringStream_1 TArduinoLiquidCrystalElementTextField1_Input_IOWStringStream_1; } // Instances namespace Types { typedef Mitov::LiquidCrystalElementTextField< Declarations::Types::ProbeDisplay, // 0_TYPE_OWNER Declarations::Instances::ProbeDisplay, // 1_NAME_OWNER Mitov::ConstantProperty<6, bool, true >, // AllignLeft = True (Default) Mitov::ConstantProperty<3, uint32_t, 0 >, // Column = 0 (Default) Mitov::ConstantProperty<7, char, ' ' >, // FillCharacter = ' ' (Default) Mitov::ConstantPropertyString<9, ::VisuinoConstants::TextValue0 >, // InitialValue = " " Mitov::ConstantProperty<4, uint32_t, 1 >, // Row = 1 Mitov::ConstantProperty<5, uint32_t, 20 > // Width = 20 > TArduinoLiquidCrystalElementTextField2; } // Types namespace Instances { Types::TArduinoLiquidCrystalElementTextField2 TArduinoLiquidCrystalElementTextField2; } // Instances namespace Types { typedef Mitov::LiquidCrystalDisplayFieldInput_String TArduinoLiquidCrystalElementTextField2_Input_IOWStringStream_1; } // Types namespace Instances { Types::TArduinoLiquidCrystalElementTextField2_Input_IOWStringStream_1 TArduinoLiquidCrystalElementTextField2_Input_IOWStringStream_1; } // Instances namespace Types { typedef Mitov::LiquidCrystalElementTextField< Declarations::Types::ProbeDisplay, // 0_TYPE_OWNER Declarations::Instances::ProbeDisplay, // 1_NAME_OWNER Mitov::ConstantProperty<6, bool, true >, // AllignLeft = True (Default) Mitov::ConstantProperty<3, uint32_t, 0 >, // Column = 0 (Default) Mitov::ConstantProperty<7, char, ' ' >, // FillCharacter = ' ' (Default) Mitov::ConstantPropertyString<9, ::VisuinoConstants::TextValue0 >, // InitialValue = " " Mitov::ConstantProperty<4, uint32_t, 2 >, // Row = 2 Mitov::ConstantProperty<5, uint32_t, 20 > // Width = 20 > TArduinoLiquidCrystalElementTextField3; } // Types namespace Instances { Types::TArduinoLiquidCrystalElementTextField3 TArduinoLiquidCrystalElementTextField3; } // Instances namespace Types { typedef Mitov::LiquidCrystalDisplayFieldInput_String TArduinoLiquidCrystalElementTextField3_Input_IOWStringStream_1; } // Types namespace Instances { Types::TArduinoLiquidCrystalElementTextField3_Input_IOWStringStream_1 TArduinoLiquidCrystalElementTextField3_Input_IOWStringStream_1; } // Instances namespace Types { typedef Mitov::LiquidCrystalElementTextField< Declarations::Types::ProbeDisplay, // 0_TYPE_OWNER Declarations::Instances::ProbeDisplay, // 1_NAME_OWNER Mitov::ConstantProperty<6, bool, true >, // AllignLeft = True (Default) Mitov::ConstantProperty<3, uint32_t, 0 >, // Column = 0 (Default) Mitov::ConstantProperty<7, char, ' ' >, // FillCharacter = ' ' (Default) Mitov::ConstantPropertyString<9, ::VisuinoConstants::TextValue0 >, // InitialValue = " " Mitov::ConstantProperty<4, uint32_t, 3 >, // Row = 3 Mitov::ConstantProperty<5, uint32_t, 20 > // Width = 20 > TArduinoLiquidCrystalElementTextField4; } // Types namespace Instances { Types::TArduinoLiquidCrystalElementTextField4 TArduinoLiquidCrystalElementTextField4; } // Instances namespace Types { typedef Mitov::LiquidCrystalDisplayFieldInput_String TArduinoLiquidCrystalElementTextField4_Input_IOWStringStream_1; } // Types namespace Instances { Types::TArduinoLiquidCrystalElementTextField4_Input_IOWStringStream_1 TArduinoLiquidCrystalElementTextField4_Input_IOWStringStream_1; } // Instances namespace Types { typedef CustomCode::TStatusDisplay1 StatusDisplay; // TArduinoCustomCode } // Types namespace Instances { Types::StatusDisplay StatusDisplay; // TArduinoCustomCode } // Instances namespace Types { typedef CustomCode::TArduinoCustomCodeInputAnalogElement1 TArduinoCustomCodeInputAnalogElement1; } // Types namespace Instances { Types::TArduinoCustomCodeInputAnalogElement1 TArduinoCustomCodeInputAnalogElement1; } // Instances namespace Types { typedef CustomCode::TArduinoCustomCodeInputAnalogElement2 TArduinoCustomCodeInputAnalogElement2; } // Types namespace Instances { Types::TArduinoCustomCodeInputAnalogElement2 TArduinoCustomCodeInputAnalogElement2; } // Instances namespace Types { typedef CustomCode::TArduinoCustomCodeInputUnsignedElement3 TArduinoCustomCodeInputUnsignedElement3; } // Types namespace Instances { Types::TArduinoCustomCodeInputUnsignedElement3 TArduinoCustomCodeInputUnsignedElement3; } // Instances namespace Types { typedef CustomCode::TArduinoCustomCodeInputUnsignedElement4 TArduinoCustomCodeInputUnsignedElement4; } // Types namespace Instances { Types::TArduinoCustomCodeInputUnsignedElement4 TArduinoCustomCodeInputUnsignedElement4; } // Instances namespace Types { typedef CustomCode::TArduinoCustomCodeInputUnsignedElement5 TArduinoCustomCodeInputUnsignedElement5; } // Types namespace Instances { Types::TArduinoCustomCodeInputUnsignedElement5 TArduinoCustomCodeInputUnsignedElement5; } // Instances namespace Types { typedef CustomCode::TArduinoCustomCodeInputUnsignedElement6 TArduinoCustomCodeInputUnsignedElement6; } // Types namespace Instances { Types::TArduinoCustomCodeInputUnsignedElement6 TArduinoCustomCodeInputUnsignedElement6; } // Instances namespace Types { typedef CustomCode::TArduinoCustomCodeInputDateTimeElement2 TArduinoCustomCodeInputDateTimeElement2; } // Types namespace Instances { Types::TArduinoCustomCodeInputDateTimeElement2 TArduinoCustomCodeInputDateTimeElement2; } // Instances namespace Types { typedef CustomCode::TArduinoCustomCodeInputDigitalElement8 TArduinoCustomCodeInputDigitalElement8; } // Types namespace Instances { Types::TArduinoCustomCodeInputDigitalElement8 TArduinoCustomCodeInputDigitalElement8; } // Instances namespace Types { typedef CustomCode::TArduinoCustomCodeInputDigitalElement9 TArduinoCustomCodeInputDigitalElement9; } // Types namespace Instances { Types::TArduinoCustomCodeInputDigitalElement9 TArduinoCustomCodeInputDigitalElement9; } // Instances namespace Types { typedef CustomCode::TArduinoCustomCodeInputDigitalElement10 TArduinoCustomCodeInputDigitalElement10; } // Types namespace Instances { Types::TArduinoCustomCodeInputDigitalElement10 TArduinoCustomCodeInputDigitalElement10; } // Instances namespace Types { typedef CustomCode::TArduinoCustomCodeInputDigitalElement11 TArduinoCustomCodeInputDigitalElement11; } // Types namespace Instances { Types::TArduinoCustomCodeInputDigitalElement11 TArduinoCustomCodeInputDigitalElement11; } // Instances namespace Types { typedef CustomCode::TArduinoCustomCodeInputDigitalElement12 TArduinoCustomCodeInputDigitalElement12; } // Types namespace Instances { Types::TArduinoCustomCodeInputDigitalElement12 TArduinoCustomCodeInputDigitalElement12; } // Instances namespace Types { typedef CustomCode::TArduinoCustomCodeInputDigitalElement13 TArduinoCustomCodeInputDigitalElement13; } // Types namespace Instances { Types::TArduinoCustomCodeInputDigitalElement13 TArduinoCustomCodeInputDigitalElement13; } // Instances namespace Types { typedef CustomCode::TArduinoCustomCodeInputDigitalElement14 TArduinoCustomCodeInputDigitalElement14; } // Types namespace Instances { Types::TArduinoCustomCodeInputDigitalElement14 TArduinoCustomCodeInputDigitalElement14; } // Instances namespace Types { typedef CustomCode::TArduinoCustomCodeInputDigitalElement15 TArduinoCustomCodeInputDigitalElement15; } // Types namespace Instances { Types::TArduinoCustomCodeInputDigitalElement15 TArduinoCustomCodeInputDigitalElement15; } // Instances namespace Types { typedef CustomCode::TArduinoCustomCodeInputDigitalElement16 TArduinoCustomCodeInputDigitalElement16; } // Types namespace Instances { Types::TArduinoCustomCodeInputDigitalElement16 TArduinoCustomCodeInputDigitalElement16; } // Instances namespace Types { typedef CustomCode::TArduinoCustomCodeInputDigitalElement17 TArduinoCustomCodeInputDigitalElement17; } // Types namespace Instances { Types::TArduinoCustomCodeInputDigitalElement17 TArduinoCustomCodeInputDigitalElement17; } // Instances namespace Types { typedef CustomCode::TArduinoCustomCodeInputDigitalElement18 TArduinoCustomCodeInputDigitalElement18; } // Types namespace Instances { Types::TArduinoCustomCodeInputDigitalElement18 TArduinoCustomCodeInputDigitalElement18; } // Instances namespace Types { typedef CustomCode::TArduinoCustomCodeInputDigitalElement19 TArduinoCustomCodeInputDigitalElement19; } // Types namespace Instances { Types::TArduinoCustomCodeInputDigitalElement19 TArduinoCustomCodeInputDigitalElement19; } // Instances namespace Types { typedef CustomCode::TArduinoCustomCodeInputDigitalElement20 TArduinoCustomCodeInputDigitalElement20; } // Types namespace Instances { Types::TArduinoCustomCodeInputDigitalElement20 TArduinoCustomCodeInputDigitalElement20; } // Instances namespace Types { typedef CustomCode::TArduinoCustomCodeInputDigitalElement21 TArduinoCustomCodeInputDigitalElement21; } // Types namespace Instances { Types::TArduinoCustomCodeInputDigitalElement21 TArduinoCustomCodeInputDigitalElement21; } // Instances namespace Types { typedef CustomCode::TArduinoCustomCodeInputDigitalElement22 TArduinoCustomCodeInputDigitalElement22; } // Types namespace Instances { Types::TArduinoCustomCodeInputDigitalElement22 TArduinoCustomCodeInputDigitalElement22; } // Instances Mitov::CustomOutput< Mitov::TextPin_EmbeddedPinImplementation<2, ::PinCalls::PinCallerReceive98 >, // OutputPin Mitov::String // TYPE > &TArduinoCustomCodeOutputTextElement1 = Declarations::Instances::StatusDisplay.Line1; Mitov::CustomOutput< Mitov::TextPin_EmbeddedPinImplementation<2, ::PinCalls::PinCallerReceive99 >, // OutputPin Mitov::String // TYPE > &TArduinoCustomCodeOutputTextElement2 = Declarations::Instances::StatusDisplay.Line2; Mitov::CustomOutput< Mitov::TextPin_EmbeddedPinImplementation<2, ::PinCalls::PinCallerReceive100 >, // OutputPin Mitov::String // TYPE > &TArduinoCustomCodeOutputTextElement3 = Declarations::Instances::StatusDisplay.Line3; Mitov::CustomOutput< Mitov::TextPin_EmbeddedPinImplementation<2, ::PinCalls::PinCallerReceive101 >, // OutputPin Mitov::String // TYPE > &TArduinoCustomCodeOutputTextElement4 = Declarations::Instances::StatusDisplay.Line4; namespace Types { typedef CustomCode::TClimateOutputGuard1 ClimateOutputGuard; // TArduinoCustomCode } // Types namespace Instances { Types::ClimateOutputGuard ClimateOutputGuard; // TArduinoCustomCode } // Instances namespace Types { typedef CustomCode::TArduinoCustomCodeInputDigitalElement23 TArduinoCustomCodeInputDigitalElement23; } // Types namespace Instances { Types::TArduinoCustomCodeInputDigitalElement23 TArduinoCustomCodeInputDigitalElement23; } // Instances namespace Types { typedef CustomCode::TArduinoCustomCodeInputDigitalElement24 TArduinoCustomCodeInputDigitalElement24; } // Types namespace Instances { Types::TArduinoCustomCodeInputDigitalElement24 TArduinoCustomCodeInputDigitalElement24; } // Instances Mitov::CustomOutput< Mitov::DigitalPin_EmbeddedPinImplementation<2, ::PinCalls::PinCallerReceive102 >, // OutputPin bool // TYPE > &TArduinoCustomCodeOutputDigitalElement9 = Declarations::Instances::ClimateOutputGuard.Fan; Mitov::CustomOutput< Mitov::DigitalPin_EmbeddedPinImplementation<2, ::PinCalls::PinCallerReceive103 >, // OutputPin bool // TYPE > &TArduinoCustomCodeOutputDigitalElement10 = Declarations::Instances::ClimateOutputGuard.Heater; namespace Types { typedef FinnGreenhouse::CadencedDHT22< BoardDeclarations::Types::TArduinoAdditionalDigitalChannel2, // 2_INTERFACE_PIN0_TYPE BoardDeclarations::Instances::TArduinoAdditionalDigitalChannel2, // 2_INTERFACE_PIN1_NAME Mitov::ConstantProperty<8, bool, true >, // ClockInputPin_o_IsConnected = True Mitov::ConstantProperty<3, bool, true >, // Enabled = True (Default) Mitov::TypedVariable<13, bool, ::ComponentVariables::Variable68 >, // FLastResult Mitov::TypedVariable<11, uint32_t, ::ComponentVariables::Variable67 >, // FStartReadState Mitov::AnalogPin_EmbeddedPinImplementation<5, ::PinCalls::PinCallerReceive105 >, // HumidityOutputPin Mitov::ConstantProperty<6, bool, false >, // InFahrenheit = False (Default) Mitov::AnalogPin_EmbeddedPinImplementation<4, ::PinCalls::PinCallerReceive104 > // TemperatureOutputPin > QueuedDHT; // TArduinoFinnGreenhouseClockedDHT22 } // Types namespace Instances { Types::QueuedDHT QueuedDHT; // TArduinoFinnGreenhouseClockedDHT22 } // Instances } // Declarations // Custom Code Implementations namespace CustomCode { void TIrrigationController1::SystemStart() { Pump.Send(false); Valve1.Send(false); Valve2.Send(false); Timeout.Send(false); Rest.Send(false); Inhibit.Send(true); ghSentPump = ghSentValve1 = ghSentValve2 = false; } void TIrrigationController1::ClockInputPin_o_Receive( void * ) { const uint32_t now = (uint32_t)millis(); ghStep(now); if (ghSentPump && (!ghPump || ghSentValve1 != ghValve1 || ghSentValve2 != ghValve2)) { Pump.Send(false); ghSentPump = false; } Valve1.Send(ghValve1); Valve2.Send(ghValve2); Pump.Send(ghPump); ghSentValve1 = ghValve1; ghSentValve2 = ghValve2; ghSentPump = ghPump; Timeout.Send(ghTimeout); Rest.Send(ghRest); Inhibit.Send(ghManualInhibit); Serial.print(F("GH|")); Serial.print(now); Serial.print('|'); Serial.print(ghAuto); Serial.print('|'); Serial.print(ghSourceOK); Serial.print('|'); Serial.print(ghButton1); Serial.print('|'); Serial.print(ghButton2); Serial.print('|'); Serial.print(ghDry1); Serial.print('|'); Serial.print(ghDry2); Serial.print('|'); Serial.print(ghZone); Serial.print('|'); Serial.print(ghNextZone); Serial.print('|'); Serial.print(ghValve1); Serial.print('|'); Serial.print(ghValve2); Serial.print('|'); Serial.print(ghPump); Serial.print('|'); Serial.print(ghTimeout); Serial.print('|'); Serial.print(ghRest); Serial.print('|'); Serial.println(ghManualInhibit); } void TArduinoCustomCodeInputDigitalElement1::InputPin_o_Receive( void *_Data ) { Declarations::Instances::IrrigationController.__Inputs_o_0_o_Receive( *( bool *)_Data ); } void TArduinoCustomCodeInputDigitalElement2::InputPin_o_Receive( void *_Data ) { Declarations::Instances::IrrigationController.__Inputs_o_1_o_Receive( *( bool *)_Data ); } void TArduinoCustomCodeInputDigitalElement3::InputPin_o_Receive( void *_Data ) { Declarations::Instances::IrrigationController.__Inputs_o_2_o_Receive( *( bool *)_Data ); } void TArduinoCustomCodeInputDigitalElement4::InputPin_o_Receive( void *_Data ) { Declarations::Instances::IrrigationController.__Inputs_o_3_o_Receive( *( bool *)_Data ); } void TArduinoCustomCodeInputDigitalElement5::InputPin_o_Receive( void *_Data ) { Declarations::Instances::IrrigationController.__Inputs_o_4_o_Receive( *( bool *)_Data ); } void TArduinoCustomCodeInputDigitalElement6::InputPin_o_Receive( void *_Data ) { Declarations::Instances::IrrigationController.__Inputs_o_5_o_Receive( *( bool *)_Data ); } void TArduinoCustomCodeInputDigitalElement7::InputPin_o_Receive( void *_Data ) { Declarations::Instances::IrrigationController.__Inputs_o_6_o_Receive( *( bool *)_Data ); } void TLightingController1::SystemStart() { ghLight.start((uint32_t)millis()); Light.Send(false); ClockFault.Send(true); } void TLightingController1::ClockInputPin_o_Receive( void * ) { const uint32_t now=(uint32_t)millis(); ghClock.tick(now); const bool light=ghLight.scan(now,(uint16_t)ghInsideADC,ghClock.acquired,ghClock.secondOfDay); Light.Send(light); ClockFault.Send(!ghClock.acquired); Serial.print(F("GL|")); Serial.print(now); Serial.print('|'); Serial.print(ghOutsideADC); Serial.print('|'); Serial.print(ghInsideADC); Serial.print('|'); Serial.print(ghClock.acquired); Serial.print('|'); Serial.print(ghClock.secondOfDay); Serial.print('|'); Serial.print(ghLight.request); Serial.print('|'); Serial.println(light); } void TArduinoCustomCodeInputDateTimeElement1::InputPin_o_Receive( void *_Data ) { Declarations::Instances::LightingController.__Inputs_o_0_o_Receive( *( Mitov::TDateTime *)_Data ); } void TArduinoCustomCodeInputUnsignedElement1::InputPin_o_Receive( void *_Data ) { Declarations::Instances::LightingController.__Inputs_o_1_o_Receive( *( uint32_t *)_Data ); } void TArduinoCustomCodeInputUnsignedElement2::InputPin_o_Receive( void *_Data ) { Declarations::Instances::LightingController.__Inputs_o_2_o_Receive( *( uint32_t *)_Data ); } void TStatusDisplay1::SystemStart() { lastRender=(uint32_t)millis(); char rows[4][21]; view.render((uint32_t)millis(),rows); Line1.Send(rows[0]); Line2.Send(rows[1]); Line3.Send(rows[2]); Line4.Send(rows[3]); } void TStatusDisplay1::ClockInputPin_o_Receive( void * ) { const uint32_t now=(uint32_t)millis(); if(uint32_t(now-lastRender)<500UL) return; lastRender=now; char rows[4][21]; view.render((uint32_t)millis(),rows); Line1.Send(rows[0]); Line2.Send(rows[1]); Line3.Send(rows[2]); Line4.Send(rows[3]); } void TArduinoCustomCodeInputAnalogElement1::InputPin_o_Receive( void *_Data ) { Declarations::Instances::StatusDisplay.__Inputs_o_0_o_Receive( *( float *)_Data ); } void TArduinoCustomCodeInputAnalogElement2::InputPin_o_Receive( void *_Data ) { Declarations::Instances::StatusDisplay.__Inputs_o_1_o_Receive( *( float *)_Data ); } void TArduinoCustomCodeInputUnsignedElement3::InputPin_o_Receive( void *_Data ) { Declarations::Instances::StatusDisplay.__Inputs_o_2_o_Receive( *( uint32_t *)_Data ); } void TArduinoCustomCodeInputUnsignedElement4::InputPin_o_Receive( void *_Data ) { Declarations::Instances::StatusDisplay.__Inputs_o_3_o_Receive( *( uint32_t *)_Data ); } void TArduinoCustomCodeInputUnsignedElement5::InputPin_o_Receive( void *_Data ) { Declarations::Instances::StatusDisplay.__Inputs_o_4_o_Receive( *( uint32_t *)_Data ); } void TArduinoCustomCodeInputUnsignedElement6::InputPin_o_Receive( void *_Data ) { Declarations::Instances::StatusDisplay.__Inputs_o_5_o_Receive( *( uint32_t *)_Data ); } void TArduinoCustomCodeInputDateTimeElement2::InputPin_o_Receive( void *_Data ) { Declarations::Instances::StatusDisplay.__Inputs_o_6_o_Receive( *( Mitov::TDateTime *)_Data ); } void TArduinoCustomCodeInputDigitalElement8::InputPin_o_Receive( void *_Data ) { Declarations::Instances::StatusDisplay.__Inputs_o_7_o_Receive( *( bool *)_Data ); } void TArduinoCustomCodeInputDigitalElement9::InputPin_o_Receive( void *_Data ) { Declarations::Instances::StatusDisplay.__Inputs_o_8_o_Receive( *( bool *)_Data ); } void TArduinoCustomCodeInputDigitalElement10::InputPin_o_Receive( void *_Data ) { Declarations::Instances::StatusDisplay.__Inputs_o_9_o_Receive( *( bool *)_Data ); } void TArduinoCustomCodeInputDigitalElement11::InputPin_o_Receive( void *_Data ) { Declarations::Instances::StatusDisplay.__Inputs_o_10_o_Receive( *( bool *)_Data ); } void TArduinoCustomCodeInputDigitalElement12::InputPin_o_Receive( void *_Data ) { Declarations::Instances::StatusDisplay.__Inputs_o_11_o_Receive( *( bool *)_Data ); } void TArduinoCustomCodeInputDigitalElement13::InputPin_o_Receive( void *_Data ) { Declarations::Instances::StatusDisplay.__Inputs_o_12_o_Receive( *( bool *)_Data ); } void TArduinoCustomCodeInputDigitalElement14::InputPin_o_Receive( void *_Data ) { Declarations::Instances::StatusDisplay.__Inputs_o_13_o_Receive( *( bool *)_Data ); } void TArduinoCustomCodeInputDigitalElement15::InputPin_o_Receive( void *_Data ) { Declarations::Instances::StatusDisplay.__Inputs_o_14_o_Receive( *( bool *)_Data ); } void TArduinoCustomCodeInputDigitalElement16::InputPin_o_Receive( void *_Data ) { Declarations::Instances::StatusDisplay.__Inputs_o_15_o_Receive( *( bool *)_Data ); } void TArduinoCustomCodeInputDigitalElement17::InputPin_o_Receive( void *_Data ) { Declarations::Instances::StatusDisplay.__Inputs_o_16_o_Receive( *( bool *)_Data ); } void TArduinoCustomCodeInputDigitalElement18::InputPin_o_Receive( void *_Data ) { Declarations::Instances::StatusDisplay.__Inputs_o_17_o_Receive( *( bool *)_Data ); } void TArduinoCustomCodeInputDigitalElement19::InputPin_o_Receive( void *_Data ) { Declarations::Instances::StatusDisplay.__Inputs_o_18_o_Receive( *( bool *)_Data ); } void TArduinoCustomCodeInputDigitalElement20::InputPin_o_Receive( void *_Data ) { Declarations::Instances::StatusDisplay.__Inputs_o_19_o_Receive( *( bool *)_Data ); } void TArduinoCustomCodeInputDigitalElement21::InputPin_o_Receive( void *_Data ) { Declarations::Instances::StatusDisplay.__Inputs_o_20_o_Receive( *( bool *)_Data ); } void TArduinoCustomCodeInputDigitalElement22::InputPin_o_Receive( void *_Data ) { Declarations::Instances::StatusDisplay.__Inputs_o_21_o_Receive( *( bool *)_Data ); } void TClimateOutputGuard1::SystemStart() { guardFanDemand = true; guardHeatDemand = false; applyClimateOutputs(); } void TArduinoCustomCodeInputDigitalElement23::InputPin_o_Receive( void *_Data ) { Declarations::Instances::ClimateOutputGuard.__Inputs_o_0_o_Receive( *( bool *)_Data ); } void TArduinoCustomCodeInputDigitalElement24::InputPin_o_Receive( void *_Data ) { Declarations::Instances::ClimateOutputGuard.__Inputs_o_1_o_Receive( *( bool *)_Data ); } } // CustomCode // Call Chains namespace CallChains { void SendByte1::Call( uint8_t AValue ) { BoardDeclarations::Instances::TArduinoI2C1.SendByte( AValue ); } void RequestData1::Call() { BoardDeclarations::Instances::TArduinoI2C1.RequestData(); } void PeriodicCall1::Call() { Declarations::Instances::ProbeSample.PeriodicCall(); } void PeriodicCall2::Call() { Declarations::Instances::SoilClock.PeriodicCall(); } void PeriodicCall3::Call() { Declarations::Instances::ProbeTick.PeriodicCall(); } } // CallChains // Pin Call Implementations namespace PinCalls { void PinCallerReceive0::Notify( void *_Data ) { Declarations::Instances::ModeDebounce.InputPin_o_Receive( _Data ); } void PinCallerReceive1::Notify( void *_Data ) { Declarations::Instances::Manual1Debounce.InputPin_o_Receive( _Data ); } void PinCallerReceive2::Notify( void *_Data ) { Declarations::Instances::Manual2Debounce.InputPin_o_Receive( _Data ); } void PinCallerReceive3::Notify( void *_Data ) { Declarations::Instances::EmptyDebounce.InputPin_o_Receive( _Data ); } void PinCallerReceive4::Notify( void *_Data ) { Declarations::Instances::SoilSample1.InputPin_o_Receive( _Data ); } void PinCallerReceive5::Notify( void *_Data ) { Declarations::Instances::SoilSample2.InputPin_o_Receive( _Data ); } void PinCallerReceive6::Notify( void *_Data ) { Declarations::Instances::OutsideLightSample.InputPin_o_Receive( _Data ); } void PinCallerReceive7::Notify( void *_Data ) { Declarations::Instances::InsideLightSample.InputPin_o_Receive( _Data ); } void PinCallerReceive8::Notify( void *_Data ) { Declarations::Instances::QueuedDHT.ClockInputPin_o_Receive( _Data ); } void PinCallerReceive9::Notify( void *_Data ) { Declarations::Instances::TempGate.EnableInputPin_o_Receive( _Data ); Declarations::Instances::TempInvalid.InputPin_o_Receive( _Data ); } void PinCallerReceive10::Notify( void *_Data ) { Declarations::Instances::HumGate.EnableInputPin_o_Receive( _Data ); Declarations::Instances::HumInvalid.InputPin_o_Receive( _Data ); } void PinCallerReceive11::Notify( void *_Data ) { Declarations::Instances::HumGate.InputPin_o_Receive( _Data ); } void PinCallerReceive12::Notify( void *_Data ) { Declarations::Instances::ProbeFresh.StartInputPin_o_Receive( _Data ); Declarations::Instances::GoodPairs.InputPin_o_Receive( _Data ); } void PinCallerReceive13::Notify( void *_Data ) { Declarations::Instances::FreshInvalid.InputPin_o_Receive( _Data ); } void PinCallerReceive14::Notify( void *_Data ) { Declarations::Instances::InvalidClimate.InputPin_o_Receive( _Data ); Declarations::Instances::HeaterFinal.InputPins_o_Receive( 0, _Data ); } void PinCallerReceive15::Notify( void *_Data ) { Declarations::Instances::ProbeFresh.ResetInputPin_o_Receive( _Data ); Declarations::Instances::GoodPairs.ResetInputPin_o_Receive( _Data ); } void PinCallerReceive16::Notify( void *_Data ) { Declarations::Instances::ProbeFresh.ResetInputPin_o_Receive( _Data ); Declarations::Instances::GoodPairs.ResetInputPin_o_Receive( _Data ); } void PinCallerReceive17::Notify( void *_Data ) { Declarations::Instances::GoodPairs.ResetInputPin_o_Receive( _Data ); } void PinCallerReceive18::Notify( void *_Data ) { Declarations::Instances::HeatSetEvent.InputPin_o_Receive( _Data ); } void PinCallerReceive19::Notify( void *_Data ) { Declarations::Instances::HeatClearEvent.InputPin_o_Receive( _Data ); } void PinCallerReceive20::Notify( void *_Data ) { Declarations::Instances::HeaterFinal.InputPins_o_Receive( 1, _Data ); } void PinCallerReceive21::Notify( void *_Data ) { Declarations::Instances::HeatMemory.SetInputPin_o_Receive( _Data ); } void PinCallerReceive22::Notify( void *_Data ) { Declarations::Instances::HeatMemory.ResetInputPin_o_Receive( _Data ); } void PinCallerReceive23::Notify( void *_Data ) { Declarations::Instances::FanSetEvent.InputPin_o_Receive( _Data ); } void PinCallerReceive24::Notify( void *_Data ) { Declarations::Instances::FanClearEvent.InputPin_o_Receive( _Data ); } void PinCallerReceive25::Notify( void *_Data ) { Declarations::Instances::NotFanRequest.InputPin_o_Receive( _Data ); Declarations::Instances::FanFinal.InputPins_o_Receive( 1, _Data ); } void PinCallerReceive26::Notify( void *_Data ) { Declarations::Instances::FanMemory.SetInputPin_o_Receive( _Data ); } void PinCallerReceive27::Notify( void *_Data ) { Declarations::Instances::FanMemory.ResetInputPin_o_Receive( _Data ); } void PinCallerReceive28::Notify( void *_Data ) { Declarations::Instances::HotSetEvent.InputPin_o_Receive( _Data ); } void PinCallerReceive29::Notify( void *_Data ) { Declarations::Instances::HotClearEvent.InputPin_o_Receive( _Data ); } void PinCallerReceive30::Notify( void *_Data ) { Declarations::Instances::NotHot.InputPin_o_Receive( _Data ); Declarations::Instances::FanFinal.InputPins_o_Receive( 2, _Data ); Declarations::Instances::AlarmClimate.InputPins_o_Receive( 1, _Data ); Declarations::Instances::TArduinoCustomCodeInputDigitalElement11.InputPin_o_Receive( _Data ); } void PinCallerReceive31::Notify( void *_Data ) { Declarations::Instances::HotMemory.SetInputPin_o_Receive( _Data ); } void PinCallerReceive32::Notify( void *_Data ) { Declarations::Instances::HotMemory.ResetInputPin_o_Receive( _Data ); } void PinCallerReceive33::Notify( void *_Data ) { Declarations::Instances::FanFinal.InputPins_o_Receive( 0, _Data ); Declarations::Instances::AlarmClimate.InputPins_o_Receive( 0, _Data ); Declarations::Instances::TArduinoCustomCodeInputDigitalElement10.InputPin_o_Receive( _Data ); } void PinCallerReceive34::Notify( void *_Data ) { Declarations::Instances::HeaterFinal.InputPins_o_Receive( 2, _Data ); } void PinCallerReceive35::Notify( void *_Data ) { Declarations::Instances::HeaterFinal.InputPins_o_Receive( 3, _Data ); } void PinCallerReceive36::Notify( void *_Data ) { Declarations::Instances::NotFinalFan.InputPin_o_Receive( _Data ); Declarations::Instances::TArduinoCustomCodeInputDigitalElement23.InputPin_o_Receive( _Data ); } void PinCallerReceive37::Notify( void *_Data ) { Declarations::Instances::HeaterFinal.InputPins_o_Receive( 4, _Data ); } void PinCallerReceive38::Notify( void *_Data ) { Declarations::Instances::TArduinoCustomCodeInputDigitalElement24.InputPin_o_Receive( _Data ); } void PinCallerReceive39::Notify( void *_Data ) { Declarations::Instances::FinalAlarm.InputPins_o_Receive( 0, _Data ); } void PinCallerReceive40::Notify( void *_Data ) { Declarations::Instances::SoilSample1.SnapshotInputPin_o_Receive( _Data ); Declarations::Instances::SoilSample2.SnapshotInputPin_o_Receive( _Data ); Declarations::Instances::ModeSample.SnapshotInputPin_o_Receive( _Data ); Declarations::Instances::Manual1Sample.SnapshotInputPin_o_Receive( _Data ); Declarations::Instances::Manual2Sample.SnapshotInputPin_o_Receive( _Data ); Declarations::Instances::EmptySample.SnapshotInputPin_o_Receive( _Data ); Declarations::Instances::ScanReadyGate.InputPin_o_Receive( _Data ); Declarations::Instances::OutsideLightSample.SnapshotInputPin_o_Receive( _Data ); Declarations::Instances::InsideLightSample.SnapshotInputPin_o_Receive( _Data ); Declarations::Instances::LightingController.ClockInputPin_o_Receive( _Data ); Declarations::Instances::StatusDisplay.ClockInputPin_o_Receive( _Data ); } void PinCallerReceive41::Notify( void *_Data ) { Declarations::Instances::SoilADC1.InputPin_o_Receive( _Data ); } void PinCallerReceive42::Notify( void *_Data ) { Declarations::Instances::SoilADC2.InputPin_o_Receive( _Data ); } void PinCallerReceive43::Notify( void *_Data ) { Declarations::Instances::SerialPort0_Input_IOWCardinalStream_1.InputPin_o_Receive( _Data ); Declarations::Instances::SoilProduct1.InputPin_o_Receive( _Data ); Declarations::Instances::TArduinoCustomCodeInputUnsignedElement3.InputPin_o_Receive( _Data ); } void PinCallerReceive44::Notify( void *_Data ) { Declarations::Instances::SerialPort0_Input_IOWCardinalStream_1.InputPin_o_Receive( _Data ); Declarations::Instances::SoilProduct2.InputPin_o_Receive( _Data ); Declarations::Instances::TArduinoCustomCodeInputUnsignedElement4.InputPin_o_Receive( _Data ); } void PinCallerReceive45::Notify( void *_Data ) { Declarations::Instances::SoilDry1.InputPin_o_Receive( _Data ); Declarations::Instances::SoilWet1.InputPin_o_Receive( _Data ); } void PinCallerReceive46::Notify( void *_Data ) { Declarations::Instances::DryEvent1.InputPin_o_Receive( _Data ); } void PinCallerReceive47::Notify( void *_Data ) { Declarations::Instances::WetEvent1.InputPin_o_Receive( _Data ); } void PinCallerReceive48::Notify( void *_Data ) { Declarations::Instances::Demand1.TrueInputPin_o_Receive( _Data ); Declarations::Instances::TArduinoCustomCodeInputDigitalElement6.InputPin_o_Receive( _Data ); } void PinCallerReceive49::Notify( void *_Data ) { Declarations::Instances::SoilRequest1.SetInputPin_o_Receive( _Data ); } void PinCallerReceive50::Notify( void *_Data ) { Declarations::Instances::SoilRequest1.ResetInputPin_o_Receive( _Data ); } void PinCallerReceive51::Notify( void *_Data ) { Declarations::Instances::SoilDry2.InputPin_o_Receive( _Data ); Declarations::Instances::SoilWet2.InputPin_o_Receive( _Data ); } void PinCallerReceive52::Notify( void *_Data ) { Declarations::Instances::DryEvent2.InputPin_o_Receive( _Data ); } void PinCallerReceive53::Notify( void *_Data ) { Declarations::Instances::WetEvent2.InputPin_o_Receive( _Data ); } void PinCallerReceive54::Notify( void *_Data ) { Declarations::Instances::Demand2.TrueInputPin_o_Receive( _Data ); Declarations::Instances::TArduinoCustomCodeInputDigitalElement7.InputPin_o_Receive( _Data ); } void PinCallerReceive55::Notify( void *_Data ) { Declarations::Instances::SoilRequest2.SetInputPin_o_Receive( _Data ); } void PinCallerReceive56::Notify( void *_Data ) { Declarations::Instances::SoilRequest2.ResetInputPin_o_Receive( _Data ); } void PinCallerReceive57::Notify( void *_Data ) { Declarations::Instances::ModeSample.InputPin_o_Receive( _Data ); } void PinCallerReceive58::Notify( void *_Data ) { Declarations::Instances::Manual1Sample.InputPin_o_Receive( _Data ); } void PinCallerReceive59::Notify( void *_Data ) { Declarations::Instances::Manual2Sample.InputPin_o_Receive( _Data ); } void PinCallerReceive60::Notify( void *_Data ) { Declarations::Instances::EmptySample.InputPin_o_Receive( _Data ); } void PinCallerReceive61::Notify( void *_Data ) { Declarations::Instances::ManualMode.InputPin_o_Receive( _Data ); Declarations::Instances::ModeChanged.InputPin_o_Receive( _Data ); Declarations::Instances::Demand1.SelectInputPin_o_Receive( _Data ); Declarations::Instances::Demand2.SelectInputPin_o_Receive( _Data ); Declarations::Instances::TArduinoCustomCodeInputDigitalElement2.InputPin_o_Receive( _Data ); Declarations::Instances::TArduinoCustomCodeInputDigitalElement13.InputPin_o_Receive( _Data ); } void PinCallerReceive62::Notify( void *_Data ) { Declarations::Instances::Manual1Held.InputPin_o_Receive( _Data ); Declarations::Instances::Release1Gate.EnableInputPin_o_Receive( _Data ); } void PinCallerReceive63::Notify( void *_Data ) { Declarations::Instances::Manual2Held.InputPin_o_Receive( _Data ); Declarations::Instances::Release2Gate.EnableInputPin_o_Receive( _Data ); } void PinCallerReceive64::Notify( void *_Data ) { Declarations::Instances::SourceEmpty.InputPin_o_Receive( _Data ); Declarations::Instances::ReleaseSourceGate.EnableInputPin_o_Receive( _Data ); Declarations::Instances::WaterInputsOK.InputPins_o_Receive( 1, _Data ); Declarations::Instances::TArduinoCustomCodeInputDigitalElement3.InputPin_o_Receive( _Data ); } void PinCallerReceive65::Notify( void *_Data ) { Declarations::Instances::BootDelay.StartInputPin_o_Receive( _Data ); } void PinCallerReceive66::Notify( void *_Data ) { Declarations::Instances::BootElapsed.SetInputPin_o_Receive( _Data ); } void PinCallerReceive67::Notify( void *_Data ) { Declarations::Instances::ManualDemand1.InputPins_o_Receive( 0, _Data ); Declarations::Instances::TArduinoCustomCodeInputDigitalElement4.InputPin_o_Receive( _Data ); } void PinCallerReceive68::Notify( void *_Data ) { Declarations::Instances::ManualDemand2.InputPins_o_Receive( 0, _Data ); Declarations::Instances::TArduinoCustomCodeInputDigitalElement5.InputPin_o_Receive( _Data ); } void PinCallerReceive69::Notify( void *_Data ) { Declarations::Instances::EmptyEvent.InputPin_o_Receive( _Data ); Declarations::Instances::FinalAlarm.InputPins_o_Receive( 1, _Data ); Declarations::Instances::TArduinoCustomCodeInputDigitalElement9.InputPin_o_Receive( _Data ); } void PinCallerReceive70::Notify( void *_Data ) { Declarations::Instances::ScanReadyGate.EnableInputPin_o_Receive( _Data ); } void PinCallerReceive71::Notify( void *_Data ) { Declarations::Instances::InputsReady.SetInputPin_o_Receive( _Data ); Declarations::Instances::Release1Gate.InputPin_o_Receive( _Data ); Declarations::Instances::IrrigationController.ClockInputPin_o_Receive( _Data ); } void PinCallerReceive72::Notify( void *_Data ) { Declarations::Instances::WaterInputsOK.InputPins_o_Receive( 0, _Data ); Declarations::Instances::TArduinoCustomCodeInputDigitalElement1.InputPin_o_Receive( _Data ); Declarations::Instances::TArduinoCustomCodeInputDigitalElement22.InputPin_o_Receive( _Data ); } void PinCallerReceive73::Notify( void *_Data ) { Declarations::Instances::ManualDemand1.InputPins_o_Receive( 1, _Data ); Declarations::Instances::ManualDemand2.InputPins_o_Receive( 1, _Data ); } void PinCallerReceive74::Notify( void *_Data ) { Declarations::Instances::Release2Gate.InputPin_o_Receive( _Data ); } void PinCallerReceive75::Notify( void *_Data ) { Declarations::Instances::ReleaseSourceGate.InputPin_o_Receive( _Data ); } void PinCallerReceive76::Notify( void *_Data ) { Declarations::Instances::ManualArmed.SetInputPin_o_Receive( _Data ); } void PinCallerReceive77::Notify( void *_Data ) { Declarations::Instances::ManualArmed.ResetInputPin_o_Receive( _Data ); } void PinCallerReceive78::Notify( void *_Data ) { Declarations::Instances::ManualArmed.ResetInputPin_o_Receive( _Data ); } void PinCallerReceive79::Notify( void *_Data ) { Declarations::Instances::Demand1.FalseInputPin_o_Receive( _Data ); } void PinCallerReceive80::Notify( void *_Data ) { Declarations::Instances::Demand2.FalseInputPin_o_Receive( _Data ); } void PinCallerReceive81::Notify( void *_Data ) { Declarations::Instances::Eligible1.InputPins_o_Receive( 0, _Data ); } void PinCallerReceive82::Notify( void *_Data ) { Declarations::Instances::Eligible2.InputPins_o_Receive( 0, _Data ); } void PinCallerReceive83::Notify( void *_Data ) { Declarations::Instances::Eligible1.InputPins_o_Receive( 1, _Data ); Declarations::Instances::Eligible2.InputPins_o_Receive( 1, _Data ); } void PinCallerReceive84::Notify( void *_Data ) { BoardDeclarations::Instances::TArduinoAdditionalDigitalInterruptChannel1.DigitalInputPin_o_Receive( _Data ); Declarations::Instances::TArduinoCustomCodeInputDigitalElement16.InputPin_o_Receive( _Data ); } void PinCallerReceive85::Notify( void *_Data ) { BoardDeclarations::Instances::TArduinoAdditionalDigitalChannel3.DigitalInputPin_o_Receive( _Data ); Declarations::Instances::TArduinoCustomCodeInputDigitalElement14.InputPin_o_Receive( _Data ); } void PinCallerReceive86::Notify( void *_Data ) { BoardDeclarations::Instances::TArduinoBasicDigitalPWMChannel3.DigitalInputPin_o_Receive( _Data ); Declarations::Instances::TArduinoCustomCodeInputDigitalElement15.InputPin_o_Receive( _Data ); } void PinCallerReceive87::Notify( void *_Data ) { Declarations::Instances::FinalAlarm.InputPins_o_Receive( 2, _Data ); Declarations::Instances::TArduinoCustomCodeInputDigitalElement8.InputPin_o_Receive( _Data ); } void PinCallerReceive88::Notify( void *_Data ) { Declarations::Instances::TArduinoCustomCodeInputDigitalElement20.InputPin_o_Receive( _Data ); } void PinCallerReceive89::Notify( void *_Data ) { Declarations::Instances::TArduinoCustomCodeInputDigitalElement21.InputPin_o_Receive( _Data ); } void PinCallerReceive90::Notify( void *_Data ) { Declarations::Instances::OutsideLightADC.InputPin_o_Receive( _Data ); } void PinCallerReceive91::Notify( void *_Data ) { Declarations::Instances::InsideLightADC.InputPin_o_Receive( _Data ); } void PinCallerReceive92::Notify( void *_Data ) { Declarations::Instances::TArduinoCustomCodeInputUnsignedElement1.InputPin_o_Receive( _Data ); Declarations::Instances::TArduinoCustomCodeInputUnsignedElement5.InputPin_o_Receive( _Data ); } void PinCallerReceive93::Notify( void *_Data ) { Declarations::Instances::TArduinoCustomCodeInputUnsignedElement2.InputPin_o_Receive( _Data ); Declarations::Instances::TArduinoCustomCodeInputUnsignedElement6.InputPin_o_Receive( _Data ); } void PinCallerReceive94::Notify( void *_Data ) { Declarations::Instances::TArduinoCustomCodeInputDateTimeElement1.InputPin_o_Receive( _Data ); Declarations::Instances::TArduinoCustomCodeInputDateTimeElement2.InputPin_o_Receive( _Data ); } void PinCallerReceive95::Notify( void *_Data ) { Declarations::Instances::ProbeClock.ClockInputPin_o_Receive( _Data ); } void PinCallerReceive96::Notify( void *_Data ) { BoardDeclarations::Instances::TArduinoAdditionalDigitalSPI0Channel1.DigitalInputPin_o_Receive( _Data ); Declarations::Instances::TArduinoCustomCodeInputDigitalElement19.InputPin_o_Receive( _Data ); } void PinCallerReceive97::Notify( void *_Data ) { Declarations::Instances::FinalAlarm.InputPins_o_Receive( 3, _Data ); Declarations::Instances::TArduinoCustomCodeInputDigitalElement12.InputPin_o_Receive( _Data ); } void PinCallerReceive98::Notify( void *_Data ) { Declarations::Instances::TArduinoLiquidCrystalElementTextField1_Input_IOWStringStream_1.InputPin_o_Receive( _Data ); } void PinCallerReceive99::Notify( void *_Data ) { Declarations::Instances::TArduinoLiquidCrystalElementTextField2_Input_IOWStringStream_1.InputPin_o_Receive( _Data ); } void PinCallerReceive100::Notify( void *_Data ) { Declarations::Instances::TArduinoLiquidCrystalElementTextField3_Input_IOWStringStream_1.InputPin_o_Receive( _Data ); } void PinCallerReceive101::Notify( void *_Data ) { Declarations::Instances::TArduinoLiquidCrystalElementTextField4_Input_IOWStringStream_1.InputPin_o_Receive( _Data ); } void PinCallerReceive102::Notify( void *_Data ) { BoardDeclarations::Instances::TArduinoBasicDigitalPWMChannel4.DigitalInputPin_o_Receive( _Data ); Declarations::Instances::TArduinoCustomCodeInputDigitalElement17.InputPin_o_Receive( _Data ); } void PinCallerReceive103::Notify( void *_Data ) { BoardDeclarations::Instances::TArduinoBasicDigitalPWMSPI0Channel1.DigitalInputPin_o_Receive( _Data ); Declarations::Instances::TArduinoCustomCodeInputDigitalElement18.InputPin_o_Receive( _Data ); } void PinCallerReceive104::Notify( void *_Data ) { Declarations::Instances::SerialPort0_Input_IOWFloatStream_1.InputPin_o_Receive( _Data ); Declarations::Instances::TempRange.InputPin_o_Receive( _Data ); Declarations::Instances::HeatSet.InputPin_o_Receive( _Data ); Declarations::Instances::HeatClear.InputPin_o_Receive( _Data ); Declarations::Instances::FanSet.InputPin_o_Receive( _Data ); Declarations::Instances::FanClear.InputPin_o_Receive( _Data ); Declarations::Instances::HotSet.InputPin_o_Receive( _Data ); Declarations::Instances::HotClear.InputPin_o_Receive( _Data ); Declarations::Instances::TArduinoCustomCodeInputAnalogElement1.InputPin_o_Receive( _Data ); } void PinCallerReceive105::Notify( void *_Data ) { Declarations::Instances::HumRange.InputPin_o_Receive( _Data ); Declarations::Instances::TempGate.InputPin_o_Receive( _Data ); Declarations::Instances::TArduinoCustomCodeInputAnalogElement2.InputPin_o_Receive( _Data ); } } // PinCalls namespace ComponentsHardware { void SystemUpdateHardware() { } } // ComponentsHardware //The setup function is called once at startup of the sketch void setup() { BoardDeclarations::Instances::SerialPort0.SystemInit(); BoardDeclarations::Instances::TArduinoI2C1.SystemInit(); BoardDeclarations::Instances::TArduinoAdditionalDigitalInterruptChannel1.SystemInit(); BoardDeclarations::Instances::TArduinoBasicDigitalPWMInterruptChannel1.SystemInit(); BoardDeclarations::Instances::TArduinoAdditionalDigitalChannel1.SystemInit(); BoardDeclarations::Instances::TArduinoBasicDigitalPWMChannel1.SystemInit(); BoardDeclarations::Instances::TArduinoBasicDigitalPWMChannel2.SystemInit(); BoardDeclarations::Instances::TArduinoAdditionalDigitalChannel2.SystemInit(); BoardDeclarations::Instances::TArduinoAdditionalDigitalChannel3.SystemInit(); BoardDeclarations::Instances::TArduinoBasicDigitalPWMChannel3.SystemInit(); BoardDeclarations::Instances::TArduinoBasicDigitalPWMChannel4.SystemInit(); BoardDeclarations::Instances::TArduinoBasicDigitalPWMSPI0Channel1.SystemInit(); BoardDeclarations::Instances::TArduinoAdditionalDigitalSPI0Channel1.SystemInit(); BoardDeclarations::Instances::TArduinoAdditionalDigitalSPI0Channel2.SystemInit(); BoardDeclarations::Instances::TArduinoCombinedAnalogDigitalChannel1.SystemInit(); BoardDeclarations::Instances::TArduinoCombinedAnalogDigitalChannel2.SystemInit(); BoardDeclarations::Instances::TArduinoCombinedAnalogDigitalChannel3.SystemInit(); BoardDeclarations::Instances::TArduinoCombinedAnalogDigitalChannel4.SystemInit(); Declarations::Instances::GoodPairs.SystemInit(); Declarations::Instances::ProbeClock.SystemInit(); Declarations::Instances::ProbeDisplay.SystemInit(); Declarations::Instances::QueuedDHT.SystemInit(); BoardDeclarations::Instances::TArduinoBasicDigitalPWMInterruptChannel1.SystemStart(); BoardDeclarations::Instances::TArduinoAdditionalDigitalChannel1.SystemStart(); BoardDeclarations::Instances::TArduinoBasicDigitalPWMChannel1.SystemStart(); BoardDeclarations::Instances::TArduinoBasicDigitalPWMChannel2.SystemStart(); BoardDeclarations::Instances::TArduinoCombinedAnalogDigitalChannel1.SystemStart(); BoardDeclarations::Instances::TArduinoCombinedAnalogDigitalChannel2.SystemStart(); BoardDeclarations::Instances::TArduinoCombinedAnalogDigitalChannel3.SystemStart(); BoardDeclarations::Instances::TArduinoCombinedAnalogDigitalChannel4.SystemStart(); Declarations::Instances::ProbeSample.SystemStart(); Declarations::Instances::TempRange.SystemStart(); Declarations::Instances::HumRange.SystemStart(); Declarations::Instances::ProbeFresh.SystemStart(); Declarations::Instances::GoodPairs.SystemStart(); Declarations::Instances::HeatSet.SystemStart(); Declarations::Instances::HeatClear.SystemStart(); Declarations::Instances::HeatMemory.SystemStart(); Declarations::Instances::FanSet.SystemStart(); Declarations::Instances::FanClear.SystemStart(); Declarations::Instances::FanMemory.SystemStart(); Declarations::Instances::HotSet.SystemStart(); Declarations::Instances::HotClear.SystemStart(); Declarations::Instances::HotMemory.SystemStart(); Declarations::Instances::FanFinal.SystemStart(); Declarations::Instances::HeaterFinal.SystemStart(); Declarations::Instances::AlarmClimate.SystemStart(); Declarations::Instances::SoilClock.SystemStart(); Declarations::Instances::SoilDry1.SystemStart(); Declarations::Instances::SoilWet1.SystemStart(); Declarations::Instances::SoilRequest1.SystemStart(); Declarations::Instances::SoilDry2.SystemStart(); Declarations::Instances::SoilWet2.SystemStart(); Declarations::Instances::SoilRequest2.SystemStart(); Declarations::Instances::ModeDebounce.SystemStart(); Declarations::Instances::Manual1Debounce.SystemStart(); Declarations::Instances::Manual2Debounce.SystemStart(); Declarations::Instances::EmptyDebounce.SystemStart(); Declarations::Instances::BootStart.SystemStart(); Declarations::Instances::BootElapsed.SystemStart(); Declarations::Instances::InputsReady.SystemStart(); Declarations::Instances::ManualArmed.SystemStart(); Declarations::Instances::ManualDemand1.SystemStart(); Declarations::Instances::ManualDemand2.SystemStart(); Declarations::Instances::Demand1.SystemStart(); Declarations::Instances::Demand2.SystemStart(); Declarations::Instances::WaterInputsOK.SystemStart(); Declarations::Instances::Eligible1.SystemStart(); Declarations::Instances::Eligible2.SystemStart(); Declarations::Instances::IrrigationController.SystemStart(); Declarations::Instances::ProbeTick.SystemStart(); Declarations::Instances::LightingController.SystemStart(); Declarations::Instances::FinalAlarm.SystemStart(); Declarations::Instances::TArduinoLiquidCrystalElementTextField1.SystemStart(); Declarations::Instances::TArduinoLiquidCrystalElementTextField2.SystemStart(); Declarations::Instances::TArduinoLiquidCrystalElementTextField3.SystemStart(); Declarations::Instances::TArduinoLiquidCrystalElementTextField4.SystemStart(); Declarations::Instances::StatusDisplay.SystemStart(); Declarations::Instances::ClimateOutputGuard.SystemStart(); Declarations::Instances::QueuedDHT.SystemStart(); BoardDeclarations::SystemPeriodMicros_2000000.SystemStarted(); BoardDeclarations::SystemPeriodMicros_50000.SystemStarted(); BoardDeclarations::SystemPeriodMicros_1000000.SystemStarted(); } // The loop function is called in an endless loop void loop() { BoardDeclarations::SystemPeriodMicros_2000000.SystemLoopBegin(); BoardDeclarations::SystemPeriodMicros_50000.SystemLoopBegin(); BoardDeclarations::SystemPeriodMicros_1000000.SystemLoopBegin(); BoardDeclarations::Instances::TArduinoBasicDigitalPWMInterruptChannel1.SystemLoopBegin(); BoardDeclarations::Instances::TArduinoAdditionalDigitalChannel1.SystemLoopBegin(); BoardDeclarations::Instances::TArduinoBasicDigitalPWMChannel1.SystemLoopBegin(); BoardDeclarations::Instances::TArduinoBasicDigitalPWMChannel2.SystemLoopBegin(); BoardDeclarations::Instances::TArduinoCombinedAnalogDigitalChannel1.SystemLoopBegin(); BoardDeclarations::Instances::TArduinoCombinedAnalogDigitalChannel2.SystemLoopBegin(); BoardDeclarations::Instances::TArduinoCombinedAnalogDigitalChannel3.SystemLoopBegin(); BoardDeclarations::Instances::TArduinoCombinedAnalogDigitalChannel4.SystemLoopBegin(); Declarations::Instances::ProbeSample.SystemLoopBegin(); Declarations::Instances::ProbeFresh.SystemLoopBegin(); Declarations::Instances::SoilClock.SystemLoopBegin(); Declarations::Instances::ModeDebounce.SystemLoopBegin(); Declarations::Instances::Manual1Debounce.SystemLoopBegin(); Declarations::Instances::Manual2Debounce.SystemLoopBegin(); Declarations::Instances::EmptyDebounce.SystemLoopBegin(); Declarations::Instances::BootDelay.SystemLoopBegin(); Declarations::Instances::ProbeClock.SystemLoopBegin(); Declarations::Instances::ProbeTick.SystemLoopBegin(); Declarations::Instances::QueuedDHT.SystemLoopBegin(); Declarations::Instances::FanFinal.SystemLoopEnd(); Declarations::Instances::HeaterFinal.SystemLoopEnd(); Declarations::Instances::AlarmClimate.SystemLoopEnd(); Declarations::Instances::ManualDemand1.SystemLoopEnd(); Declarations::Instances::ManualDemand2.SystemLoopEnd(); Declarations::Instances::Demand1.SystemLoopEnd(); Declarations::Instances::Demand2.SystemLoopEnd(); Declarations::Instances::WaterInputsOK.SystemLoopEnd(); Declarations::Instances::Eligible1.SystemLoopEnd(); Declarations::Instances::Eligible2.SystemLoopEnd(); Declarations::Instances::FinalAlarm.SystemLoopEnd(); }