//----------------------------------------------
//
// Sketch Generated by Visuino
// www.visuino.com
//
//----------------------------------------------
#define VISUINO_ARDUINO_UNO
#include <Mitov.h>
#include <OpenWire.h>
#include <Wire.h>
#include <LiquidCrystal.h> // The LCD library https://bitbucket.org/fmalpartida/new-liquidcrystal/wiki/Home needs to be installed trough the Arduino IDE for this Scetch to compile!
#include <Mitov_LiquidCrystalDisplay.h>
#include <Mitov_Snapshot.h>
#include <Mitov_BinaryGenerators.h>
#include <Mitov_Math.h>
// Arduino Board DeclarationsArduino Board Declarations
namespace BoardDeclarations
{
Mitov::ArduinoAnalogInputChannel ArduinoAnalogInputChannel_0( 0 );
Mitov::ArduinoDigitalChannel ArduinoDigitalChannel_4( 4, true, false, false, false, true );
Mitov::ArduinoDigitalChannel ArduinoDigitalChannel_5( 5, true, false, false, false, true );
Mitov::ArduinoDigitalChannel ArduinoDigitalChannel_6( 6, true, false, false, false, true );
Mitov::ArduinoDigitalChannel ArduinoDigitalChannel_7( 7, true, false, false, false, true );
Mitov::ArduinoDigitalChannel ArduinoDigitalChannel_8( 8, true, false, false, false, true );
Mitov::ArduinoDigitalChannel ArduinoDigitalChannel_9( 9, true, false, false, false, true );
} // BoardDeclarations
// Arduino Board DeclarationsDeclarations
namespace Declarations
{
Mitov::LiquidCrystalDisplay LiquidCrystalDisplay1( new LiquidCrystal( 8, 9, 4, 5, 6, 7 ), 16, 2 );
Mitov::LiquidCrystalElementTextField TArduinoLiquidCrystalElementTextField1( LiquidCrystalDisplay1 );
Mitov::LiquidCrystalElementTextField TArduinoLiquidCrystalElementTextField2( LiquidCrystalDisplay1 );
Mitov::LiquidCrystalElementTextField TArduinoLiquidCrystalElementTextField3( LiquidCrystalDisplay1 );
Mitov::LiquidCrystalDisplayInput<Mitov::LiquidCrystalElementTextField, &TArduinoLiquidCrystalElementTextField3, float> TArduinoLiquidCrystalElementTextField3_InputFloat_1;
Mitov::Snapshot<float> AnalogSnapshot1( 0.0f );
Mitov::PulseGenerator PulseGenerator1;
Mitov::MultiplyByValue MultiplyByValue1;
Mitov::AddValue AddValue1;
} // Declarations
//The setup function is called once at startup of the sketch
void setup()
{
BoardDeclarations::ArduinoAnalogInputChannel_0.OutputPin.Connect( Declarations::MultiplyByValue1.InputPin );
Declarations::TArduinoLiquidCrystalElementTextField1.InitialValue = "www.visuino.com";
Declarations::TArduinoLiquidCrystalElementTextField2.InitialValue = "Temp: ";
Declarations::TArduinoLiquidCrystalElementTextField2.Row = 1;
Declarations::TArduinoLiquidCrystalElementTextField3.Column = 6;
Declarations::TArduinoLiquidCrystalElementTextField3.Row = 1;
Declarations::AnalogSnapshot1.OutputPin.Connect( Declarations::TArduinoLiquidCrystalElementTextField3_InputFloat_1.InputPin );
Declarations::PulseGenerator1.Frequency = 3;
Declarations::PulseGenerator1.OutputPin.Connect( Declarations::AnalogSnapshot1.SnapshotInputPin );
Declarations::MultiplyByValue1.Value = 100;
Declarations::MultiplyByValue1.OutputPin.Connect( Declarations::AddValue1.InputPin );
Declarations::AddValue1.Value = 10;
Declarations::AddValue1.OutputPin.Connect( Declarations::AnalogSnapshot1.InputPin );
OpenWire::Component::_SystemInit();
}
// The loop function is called in an endless loop
void loop()
{
OpenWire::Component::_SystemLoop();
}
Comments