Need help adjusting the draw lines on the oled display

Hello everyone! I'm creating an Arduino Nano Seismograph for my school project and I need some help figuring out how to adjust the height of the seismic waves (Draw Lines) display on the OLED Display. Currently, I'm using Visuino Software to code my project. PLEASE HELP US!

Video Link & Picture of what the seismic waves should look like:

//----------------------------------------------
//
// Sketch Generated by Visuino
// www.visuino.com
// Version 8.0.0.101
//
//------------------ Source --------------------
//
// Arduino+Simple+Project!+How+To+Make+A+Seismograph!+Earthquake+Detector! (5).visuino
//
//----------------------------------------------

#define VISUINO_ARDUINO_NANO
#define _MITOV_DISPLAY_SSD1306_I2C

#include <OpenWire.h>
#include <Mitov.h>
#include <Wire.h>
#include <Mitov_Basic_I2C.h>
#include <Mitov_Display_SSD1306_I2C.h>
#include <Mitov_Graphics.h>
#include <Mitov_Graphics_Monochrome.h>
#include <Mitov_Timing.h>
#include <Mitov_Counter.h>
#include <Mitov_Converters.h>
#include <Mitov_MPU6050.h>
#include <Mitov_Math.h>
#include <Mitov_SchmittTrigger.h>
#include <Mitov_LogicFlipFlops.h>
#include <Mitov_BinaryGenerators.h>

// Shared Component Member Variables

namespace ComponentVariables
{
class
{
public:
uint32_t Value2 : 8;
bool Value1 : 1;
bool Value3 : 1;
bool Value4 : 1;
bool Value5 : 1;
bool Value6 : 1;
bool Value7 : 1;
bool Value8 : 1;
bool Value9 : 1;
bool Value10 : 1;
bool Value11 : 1;
bool Value12 : 1;
bool Value13 : 1;

} BitFields;

class Variable2
{
public:
inline static uint32_t GetValue() { return BitFields.Value2; }
inline static void SetValue( uint32_t AValue ) { BitFields.Value2 = AValue; }

};

class Variable1
{
public:
inline static bool GetValue() { return BitFields.Value1; }
inline static void SetValue( bool AValue ) { BitFields.Value1 = 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 Variable6
{
public:
inline static bool GetValue() { return BitFields.Value6; }
inline static void SetValue( bool AValue ) { BitFields.Value6 = 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; }

};

} // ComponentVariables

// Arduino Constant Declarations

namespace VisuinoConstants
{
class FloatValue6
{
public:
inline static constexpr float GetValue() { return 100; }
};

class FloatValue4
{
public:
inline static constexpr float GetValue() { return 0; }
};

class FloatValue3
{
public:
inline static constexpr float GetValue() { return 1.25; }
};

class FloatValue2
{
public:
inline static constexpr float GetValue() { return 1; }
};

class FloatValue1
{
public:
inline static constexpr float GetValue() { return 3; }
};

class FloatValue7
{
public:
inline static constexpr float GetValue() { return 0.200000002980232; }
};

class FloatValue5
{
public:
inline static constexpr float GetValue() { return 64; }
};

class FloatValue0
{
public:
inline static constexpr float GetValue() { return 0.811999976634979; }
};

} // 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 );

};
} // PinCalls

// Call Chains

namespace CallChains
{
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 Render1
{
public:
inline static constexpr uint32_t Count() { return 0; }
static void Call();

};
class PeriodicCall1
{
public:
inline static constexpr uint32_t Count() { return 0; }
static void Call();

};
} // CallChains

// System Objects Declarations

namespace BoardDeclarations
{
Mitov::TPeriodMicros<333334, ::CallChains::PeriodicCall1> SystemPeriodMicros_333334;
} // BoardDeclarations

// Arduino Board Declarations

namespace BoardDeclarations
{
namespace Types
{
typedef Mitov::ArduinoDigitalInputChannel<
Mitov::ConstantProperty<51, bool, false >, // InitialValue = 0
Mitov::ConstantProperty<25, bool, false >, // IsOpenDrain = 0
Mitov::ConstantProperty<25, bool, true >, // IsOutput = -1
Mitov::ConstantProperty<20, bool, false >, // IsPullDown = 0
Mitov::ConstantProperty<5, bool, false >, // IsPullUp = False (Default)
Mitov::DigitalPin_NoImplementation<6 >, // OutputPin
11 // PIN_DIGITAL

ArduinoDigitalChannel_11;
} // Types

namespace Instances
{
Types::ArduinoDigitalChannel_11 ArduinoDigitalChannel_11;
} // Instances

namespace Types
{
typedef Mitov::ArduinoDigitalInputChannel<
Mitov::ConstantProperty<51, bool, false >, // InitialValue = 0
Mitov::ConstantProperty<25, bool, false >, // IsOpenDrain = 0
Mitov::ConstantProperty<25, bool, true >, // IsOutput = -1
Mitov::ConstantProperty<20, bool, false >, // IsPullDown = 0
Mitov::ConstantProperty<5, bool, false >, // IsPullUp = False (Default)
Mitov::DigitalPin_NoImplementation<6 >, // OutputPin
12 // PIN_DIGITAL

ArduinoDigitalChannel_12;
} // Types

namespace Instances
{
Types::ArduinoDigitalChannel_12 ArduinoDigitalChannel_12;
} // Instances

namespace Types
{
typedef Mitov::ArduinoDigitalInputChannel<
Mitov::ConstantProperty<51, bool, false >, // InitialValue = 0
Mitov::ConstantProperty<25, bool, false >, // IsOpenDrain = 0
Mitov::ConstantProperty<25, bool, true >, // IsOutput = -1
Mitov::ConstantProperty<20, bool, false >, // IsPullDown = 0
Mitov::ConstantProperty<5, bool, false >, // IsPullUp = False (Default)
Mitov::DigitalPin_NoImplementation<6 >, // OutputPin
13 // PIN_DIGITAL

ArduinoDigitalChannel_13;
} // Types

namespace Instances
{
Types::ArduinoDigitalChannel_13 ArduinoDigitalChannel_13;
} // Instances

namespace Types
{
typedef ::Mitov::ArduinoI2C<
Wire, // 1_I2C
Mitov::ConstantProperty<6, uint32_t, 0 >, // Address = 0 (Default)
Mitov::EmbeddedCallChain<CallChains::RequestData1 >, // INSTANCE_RequestData
Mitov::EmbeddedCallChain<CallChains::SendByte1 >, // 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

// Declarations

namespace Declarations
{
namespace Types
{
typedef Mitov::DisplaySSD1306<
Mitov::Display_odtSSD_I2C<
TwoWire, // 0_I2C_TYPE_PIN
Wire, // 1_I2C_NAME_PIN
Mitov::ConstantProperty<28, uint8_t, 60 > // Address = 60 (Default)
>, // 0_IMPLEMENTATION
Mitov::DisplaySSD1306Buffered<
64, // Height
128 // Width
>, // 0_IMPLEMENTATION_BUFFER
Mitov::DisplayOrientationUp, // 0_IMPLEMENTATION_ORIENTATION
Mitov::ConstantProperty<16, Mitov::TArduinoMonochromeColor, Mitov::tmcBlack >, // BackgroundColor = tmcBlack (Default)
Mitov::ConstantPropertyFloat<11, float, ::VisuinoConstants::FloatValue0 >, // Contrast = 0.811999976634979 (Default)
Mitov::EmbeddedCallChain<CallChains::Render1 >, // Elements_Render
Mitov::ConstantProperty<29, uint32_t, 0 >, // FCursorX = 0
Mitov::ConstantProperty<31, uint32_t, 0 >, // FCursorY = 0
Mitov::ConstantProperty<8, Mitov::TArduinoGraphicsOrientation, Mitov::goUp >, // Orientation = goUp (Default)
Mitov::ConstantProperty<25, bool, true >, // PowerOn = True (Default)
Mitov::NestedProperty<15, Mitov::TArduinoDisplaySSD1306PreChargePeriod<
Mitov::ConstantProperty<13, uint32_t, 1 >, // Phase1 = 1 (Default)
Mitov::ConstantProperty<14, uint32_t, 15 > // Phase2 = 15 (Default)
> >, // PreChargePeriod
Mitov::DisplaySSD1306NoReset<Mitov::DigitalPin_NoImplementation<4 > >, // ResetOutputPin
Mitov::NestedProperty<24, Mitov::TGraphicsTextSettings<
Mitov::ConstantProperty<23, Mitov::TArduinoMonochromeColor, Mitov::tmcNone >, // BackgroundColor = tmcNone (Default)
Mitov::ConstantProperty<22, Mitov::TArduinoMonochromeColor, Mitov::tmcWhite >, // Color = tmcWhite (Default)
Mitov::NoFont, // Font
Mitov::ConstantProperty<19, uint32_t, 1 >, // Size = 1 (Default)
Mitov::ConstantProperty<21, bool, false >, // UseCodePage437Symbols = False (Default)
Mitov::ConstantProperty<20, bool, true > // Wrap = True (Default)
> >, // Text
Mitov::ConstantProperty<27, Mitov::TArduinoDisplayOLEDType, Mitov::odtSSD1306 >, // Type = 0 (Default)
Mitov::ConstantProperty<10, bool, false > // UseChargePump = False (Default)

DisplayOLED1; // TArduinoDisplaySSD1306I2C
} // Types

namespace Instances
{
Types::DisplayOLED1 DisplayOLED1; // TArduinoDisplaySSD1306I2C
} // Instances

namespace Types
{
typedef Mitov::GraphicsElementFillScreen<
Declarations::Types::DisplayOLED1, // 0_TYPE_OWNER
Declarations::Instances::DisplayOLED1, // 1_NAME_OWNER
Mitov::ConstantProperty<4, Mitov::TArduinoMonochromeColor, Mitov::tmcBlack >, // Color = tmcBlack (Default)
Mitov::ConstantProperty<2, bool, true >, // Enabled = True (Default)
Mitov::MonochromeColorOperations // OPERATIONS

TArduinoMonochromeGraphicsElementFillScreen1;
} // Types

namespace Instances
{
Types::TArduinoMonochromeGraphicsElementFillScreen1 TArduinoMonochromeGraphicsElementFillScreen1;
} // Instances

namespace Types
{
typedef Mitov::GraphicsElementDrawLine<
Declarations::Types::DisplayOLED1, // 0_TYPE_OWNER
Declarations::Instances::DisplayOLED1, // 1_NAME_OWNER
Mitov::ConstantProperty<4, Mitov::TArduinoMonochromeColor, Mitov::tmcWhite >, // Color = tmcWhite (Default)
Mitov::ConstantProperty<2, bool, true >, // Enabled = True (Default)
Mitov::VariableProperty<8, uint32_t, 3 >, // Height = 3
Mitov::MonochromeColorOperations, // OPERATIONS
Mitov::ConstantProperty<7, uint32_t, 0 >, // Width = 0
Mitov::VariableProperty<5, int32_t, 5 >, // X = 5
Mitov::ConstantProperty<6, int32_t, 28 > // Y = 28

TArduinoMonochromeGraphicsDrawLine1;
} // Types

namespace Instances
{
Types::TArduinoMonochromeGraphicsDrawLine1 TArduinoMonochromeGraphicsDrawLine1;
} // Instances

namespace Types
{
typedef Mitov::ClockGenerator_Shared<
Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default)
Mitov::ConstantPropertyFloat<5, float, ::VisuinoConstants::FloatValue1 >, // Frequency = 3
Mitov::ClockPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive0 > // OutputPin

ClockGenerator1; // TArduinoClockGenerator
} // Types

namespace Instances
{
Types::ClockGenerator1 ClockGenerator1; // TArduinoClockGenerator
} // Instances

namespace Types
{
typedef Mitov::UpDownCounter<
Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default)
Mitov::TypedVariableMinMax<22, int32_t, ::ComponentVariables::Variable2, 0, 128 >, // FCount = 0
Mitov::ConstantProperty<6, int32_t, 0 >, // InitialValue = 0 (Default)
Mitov::NestedProperty<11, Mitov::GenericValueLimit<
Mitov::DigitalPin_NoImplementation<8 >, // ReachedOutputPin
Mitov::ConstantProperty<10, bool, true >, // RollOver = True (Default)
Mitov::ConstantProperty<9, int32_t, 128 > // Value = 128
> >, // Value_Max
Mitov::NestedProperty<16, Mitov::GenericValueLimit<
Mitov::DigitalPin_NoImplementation<13 >, // ReachedOutputPin
Mitov::ConstantProperty<15, bool, true >, // RollOver = True (Default)
Mitov::ConstantProperty<14, int32_t, 0 > // Value = 0
> >, // Value_Min
Mitov::TypedVariable<20, bool, ::ComponentVariables::Variable1 >, // NeedsUpdate = 0
Mitov::TypedPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive1, int32_t > // OutputPin

UpDownCounter1; // TArduinoUpDownCounter
} // Types

namespace Instances
{
Types::UpDownCounter1 UpDownCounter1; // TArduinoUpDownCounter
} // Instances

namespace Types
{
typedef Mitov::AnalogToUnsigned<
Mitov::ConstantProperty<7, bool, true >, // Constrain = True (Default)
Mitov::TypedPin_EmbeddedPinImplementation<5, ::PinCalls::PinCallerReceive2, uint32_t >, // OutputPin
Mitov::ConstantProperty<6, bool, true >, // Round = True (Default)
Mitov::ConstantPropertyFloat<4, float, ::VisuinoConstants::FloatValue2 > // Scale = 1 (Default)

AnalogToUnsigned1; // TArduinoFloatToUnsigned
} // Types

namespace Instances
{
Types::AnalogToUnsigned1 AnalogToUnsigned1; // TArduinoFloatToUnsigned
} // Instances

namespace Types
{
typedef Mitov::MPU6050I2C<
TwoWire, // 0_I2C_TYPE_PIN
Wire, // 1_I2C_NAME_PIN
Mitov::NestedProperty<28, Mitov::MPUAccelerometer<
Mitov::ConstantProperty<15, Mitov::TArduinoMPU9250AccelerometerRange, Mitov::ar2g >, // FullScaleRange = 0 (Default)
Mitov::AnalogPin_NoImplementation<12 >, // OutputPins_0
Mitov::AnalogPin_NoImplementation<13 >, // OutputPins_1
Mitov::AnalogPin_NoImplementation<14 >, // OutputPins_2
Mitov::NestedProperty<19, Mitov::MPUOptionalSelfTestSensor<
Mitov::ConstantProperty<17, bool, true >, // Enabled = True (Default)
Mitov::ConstantProperty<18, bool, false > // SelfTest = False (Default)
> >, // X
Mitov::NestedProperty<23, Mitov::MPUOptionalSelfTestSensor<
Mitov::ConstantProperty<21, bool, true >, // Enabled = True (Default)
Mitov::ConstantProperty<22, bool, false > // SelfTest = False (Default)
> >, // Y
Mitov::NestedProperty<27, Mitov::MPUOptionalSelfTestSensor<
Mitov::ConstantProperty<25, bool, true >, // Enabled = True (Default)
Mitov::ConstantProperty<26, bool, false > // SelfTest = False (Default)
> > // Z
> >, // Accelerometer
Mitov::ConstantProperty<9, uint8_t, 104 >, // Address = 104 (Default)
Mitov::ConstantProperty<5, bool, false >, // ClockInputPin_o_IsConnected = False
Mitov::ConstantProperty<8, Mitov::TArduinoMPUClockSource, Mitov::mcsAutoSelect >, // ClockSource = 0 (Default)
Mitov::ConstantProperty<3, bool, true >, // Enabled = True (Default)
Mitov::ConstantProperty<71, Mitov::TArduinoMPU6050Filter, Mitov::f_AB_260Hz_GB_256Hz_F_8KHz >, // Filter = 0 (Default)
Mitov::NestedProperty<66, Mitov::MPUFrameSynchronization<
Mitov::ConstantProperty<64, bool, false >, // EnableInterrupt = False (Default)
Mitov::ConstantProperty<65, bool, false >, // InterruptOnLowLevel = False (Default)
Mitov::ConstantProperty<63, Mitov::TArduinoMPU9250FrameSynchronizationLocation, Mitov::fslDisabled >, // Location = 0 (Default)
Mitov::ClockPin_NoImplementation<62 > // OutputPin
> >, // FrameSynchronization
Mitov::NestedProperty<48, Mitov::MPUGyroscope<
Mitov::ConstantProperty<34, Mitov::TArduinoMPU9250GyroscopeRange, Mitov::gr250dps >, // FullScaleRange = 0 (Default)
Mitov::AnalogPin_EmbeddedPinImplementation<31, ::PinCalls::PinCallerReceive3 >, // OutputPins_0
Mitov::AnalogPin_EmbeddedPinImplementation<32, ::PinCalls::PinCallerReceive4 >, // OutputPins_1
Mitov::AnalogPin_EmbeddedPinImplementation<33, ::PinCalls::PinCallerReceive5 >, // OutputPins_2
Mitov::ConstantProperty<35, Mitov::TArduinoAngleUnits, Mitov::auDegree >, // Units = auDegree (Default)
Mitov::NestedProperty<39, Mitov::MPUOptionalSelfTestSensor<
Mitov::ConstantProperty<37, bool, true >, // Enabled = True (Default)
Mitov::ConstantProperty<38, bool, false > // SelfTest = False (Default)
> >, // X
Mitov::NestedProperty<43, Mitov::MPUOptionalSelfTestSensor<
Mitov::ConstantProperty<41, bool, true >, // Enabled = True (Default)
Mitov::ConstantProperty<42, bool, false > // SelfTest = False (Default)
> >, // Y
Mitov::NestedProperty<47, Mitov::MPUOptionalSelfTestSensor<
Mitov::ConstantProperty<45, bool, true >, // Enabled = True (Default)
Mitov::ConstantProperty<46, bool, false > // SelfTest = False (Default)
> > // Z
> >, // Gyroscope
Mitov::NestedProperty<60, Mitov::MPUInterrupt<
Mitov::ConstantProperty<55, bool, false >, // Inverted = False (Default)
Mitov::ConstantProperty<57, bool, true >, // Latch = True (Default)
Mitov::ConstantProperty<58, bool, false >, // OnFrameSync = False (Default)
Mitov::ConstantProperty<59, bool, false >, // OnRawReady = False (Default)
Mitov::ConstantProperty<56, bool, false > // OpenDrain = False (Default)
> >, // Interrupt
Mitov::NestedProperty<70, Mitov::MPU6050LowPowerMode<
Mitov::ConstantProperty<68, bool, false >, // Enabled = False (Default)
Mitov::ConstantPropertyFloat<69, float, ::VisuinoConstants::FloatValue3 > // SampleFrequency = 1.25 (Default)
> >, // LowPowerMode
Mitov::ConstantProperty<72, uint32_t, 1 >, // SampleRateDivider = 1 (Default)
Mitov::NestedProperty<53, Mitov::TArduinoBasicEnabledThermometer<
Mitov::ConstantProperty<50, bool, true >, // Enabled = True (Default)
Mitov::ConstantProperty<52, bool, false >, // InFahrenheit = False (Default)
Mitov::AnalogPin_NoImplementation<51 > // OutputPin
> > // Thermometer

AccelerometerGyroscope1; // TArduinoMPU6050I2C
} // Types

namespace Instances
{
Types::AccelerometerGyroscope1 AccelerometerGyroscope1; // TArduinoMPU6050I2C
} // Instances

namespace Types
{
typedef Mitov::MultiInputMathOperation<
Mitov::Multiply, // BASE
3, // COUNT_InputPins
Mitov::TypedVariable<9, bool, ::ComponentVariables::Variable3 >, // FModified = 0
Mitov::AnalogPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive6 >, // OutputPin
float // TYPE

Multiply1; // TArduinoMultiply
} // Types

namespace Instances
{
Types::Multiply1 Multiply1; // TArduinoMultiply
} // Instances

namespace Types
{
typedef Mitov::MapRange<
Mitov::ConstantProperty<5, bool, true >, // Enabled = True (Default)
Mitov::NestedProperty<9, Mitov::ValueRange<
Mitov::ConstantPropertyFloat<8, float, ::VisuinoConstants::FloatValue2 >, // Value_Max = 1 (Default)
Mitov::ConstantPropertyFloat<7, float, ::VisuinoConstants::FloatValue4 > // Value_Min = 0 (Default)
> >, // InputRange
Mitov::AnalogPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive7 >, // OutputPin
Mitov::NestedProperty<13, Mitov::ValueRange<
Mitov::ConstantPropertyFloat<12, float, ::VisuinoConstants::FloatValue5 >, // Value_Max = 64
Mitov::ConstantPropertyFloat<11, float, ::VisuinoConstants::FloatValue4 > // Value_Min = 0 (Default)
> > // OutputRange

MapRange1; // TArduinoMapRange
} // Types

namespace Instances
{
Types::MapRange1 MapRange1; // TArduinoMapRange
} // Instances

namespace Types
{
typedef Mitov::CompareValue<
Mitov::CompareType_Implementation_ctEqual, // CompareType = 0 (Default)
Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default)
Mitov::TypedVariable<9, bool, ::ComponentVariables::Variable4 >, // FStarted = 0
Mitov::ConstantProperty<8, bool, true >, // OnlyChanged = True (Default)
Mitov::DigitalPin_EmbeddedPinImplementation<5, ::PinCalls::PinCallerReceive8 >, // OutputPin
int32_t, // TYPE
Mitov::ConstantProperty<6, int32_t, 1 > // Value = 1

CompareValue1; // TArduinoIntegerCompareValue
} // Types

namespace Instances
{
Types::CompareValue1 CompareValue1 = Types::CompareValue1( 0 ); // TArduinoIntegerCompareValue
} // Instances

namespace Types
{
typedef Mitov::SchmittTrigger<
Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default)
Mitov::TypedVariableValue<8, bool, ::ComponentVariables::Variable5, false >, // InitialValue = False (Default)
Mitov::ConstantProperty<9, bool, false >, // Inverted = False (Default)
Mitov::DigitalPin_EmbeddedPinImplementation<5, ::PinCalls::PinCallerReceive9 >, // OutputPin
float, // TYPE
Mitov::ConstantPropertyFloat<7, float, ::VisuinoConstants::FloatValue2 >, // Threshold = 1
Mitov::ConstantPropertyFloat<6, float, ::VisuinoConstants::FloatValue6 > // Value = 100

SchmittTrigger1; // TArduinoAnalogSchmittTrigger
} // Types

namespace Instances
{
Types::SchmittTrigger1 SchmittTrigger1; // TArduinoAnalogSchmittTrigger
} // Instances

namespace Types
{
typedef Mitov::SRFlipFlop<
Mitov::TypedVariableValue<5, bool, ::ComponentVariables::Variable6, false >, // InitialValue = False (Default)
Mitov::DigitalPin_EmbeddedPinImplementation<4, ::PinCalls::PinCallerReceive11 >, // InvertedOutputPin
Mitov::DigitalPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive10 > // OutputPin

SRFlipFlop1; // TArduinoSRFlipFlop
} // Types

namespace Instances
{
Types::SRFlipFlop1 SRFlipFlop1; // TArduinoSRFlipFlop
} // Instances

namespace Types
{
typedef Mitov::PulseGenerator<
Mitov::ConstantPropertyFloat<8, float, ::VisuinoConstants::FloatValue4 >, // Asymmetry = 0 (Default)
Mitov::ConstantProperty<4, bool, true >, // Enabled = True (Default)
Mitov::ConstantPropertyFloat<17, float, ::VisuinoConstants::FloatValue4>, // FPhase = 0
Mitov::TypedVariable<15, bool, ::ComponentVariables::Variable7 >, // FValue = 0
Mitov::ConstantPropertyFloat<7, float, ::VisuinoConstants::FloatValue7 >, // Frequency = 0.200000002980232
Mitov::ConstantProperty<5, bool, false >, // InitialValue = False (Default)
Mitov::DigitalPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive12 >, // OutputPin
Mitov::ConstantPropertyFloat<9, float, ::VisuinoConstants::FloatValue4 >, // Phase = 0 (Default)
Mitov::NestedProperty<14, Mitov::TArduinoGeneratorWhenDisabled<
Mitov::ConstantProperty<13, bool, false >, // CompleteCycle = False (Default)
Mitov::ConstantProperty<12, bool, true >, // FCycleCompleted = True
Mitov::ConstantProperty<11, bool, false > // Reset = False (Default)
> > // WhenDisabled

PulseGenerator1; // TArduinoPulseGenerator
} // Types

namespace Instances
{
Types::PulseGenerator1 PulseGenerator1; // TArduinoPulseGenerator
} // Instances

namespace Types
{
typedef Mitov::PulseGenerator<
Mitov::ConstantPropertyFloat<8, float, ::VisuinoConstants::FloatValue4 >, // Asymmetry = 0 (Default)
Mitov::TypedVariableValue<4, bool, ::ComponentVariables::Variable8, true >, // Enabled = True (Default)
Mitov::ConstantPropertyFloat<17, float, ::VisuinoConstants::FloatValue4>, // FPhase = 0
Mitov::TypedVariable<15, bool, ::ComponentVariables::Variable9 >, // FValue = 0
Mitov::ConstantPropertyFloat<7, float, ::VisuinoConstants::FloatValue1 >, // Frequency = 3
Mitov::ConstantProperty<5, bool, false >, // InitialValue = False (Default)
Mitov::DigitalPin_EmbeddedPinImplementation<3, ::PinCalls::PinCallerReceive13 >, // OutputPin
Mitov::ConstantPropertyFloat<9, float, ::VisuinoConstants::FloatValue4 >, // Phase = 0 (Default)
Mitov::NestedProperty<14, Mitov::TArduinoGeneratorWhenDisabled<
Mitov::ConstantProperty<13, bool, false >, // CompleteCycle = False (Default)
Mitov::ConstantProperty<12, bool, true >, // FCycleCompleted = True
Mitov::ConstantProperty<11, bool, false > // Reset = False (Default)
> > // WhenDisabled

PulseGenerator2; // TArduinoPulseGenerator
} // Types

namespace Instances
{
Types::PulseGenerator2 PulseGenerator2; // TArduinoPulseGenerator
} // Instances

} // Declarations

// Type Converters

namespace TypeConverters
{
Mitov::Convert_BinaryToClock<Mitov::TypedVariable<0, bool, ::ComponentVariables::Variable10 > > Converter0;
Mitov::Convert_BinaryToClock<Mitov::TypedVariable<0, bool, ::ComponentVariables::Variable11 > > Converter1;
Mitov::Convert_BinaryToClock<Mitov::TypedVariable<0, bool, ::ComponentVariables::Variable12 > > Converter2;
Mitov::Convert_BinaryToClock<Mitov::TypedVariable<0, bool, ::ComponentVariables::Variable13 > > Converter3;
} // TypeConverters

// Bindings

namespace Bindings
{
inline void PulseGenerator2_EnabledInputPin_o_Receive( void * PTR, bool AOriginalValue )
{
bool A_VALUE = *(bool *)PTR;
if( AOriginalValue == A_VALUE )
return;

Declarations::Instances::PulseGenerator2.Enabled() = A_VALUE;
Declarations::Instances::PulseGenerator2.UpdateEnabled();
}

} // Bindings

// Call Chains

namespace CallChains
{
void SendByte1::Call( uint8_t AValue )
{
BoardDeclarations::Instances::TArduinoI2C1.SendByte( AValue );
}

void RequestData1::Call()
{
BoardDeclarations::Instances::TArduinoI2C1.RequestData();
}

void Render1::Call()
{
}

void PeriodicCall1::Call()
{
Declarations::Instances::ClockGenerator1.PeriodicCall();
}

} // CallChains

// Pin Call Declarations

namespace PinCalls
{
void PinCallerConverterReceive1( void *_Data );
void PinCallerConverterReceive2( void *_Data );
void PinCallerConverterReceive3( void *_Data );
void PinCallerConverterReceive4( void *_Data );
} // PinCalls

// Pin Call Implementations

namespace PinCalls
{
void PinCallerReceive0::Notify( void *_Data )
{
Declarations::Instances::UpDownCounter1.UpInputPin_o_Receive( _Data );
}

void PinCallerReceive1::Notify( void *_Data )
{
Declarations::Instances::TArduinoMonochromeGraphicsDrawLine1.X().InputPin_o_Receive( _Data );
Declarations::Instances::TArduinoMonochromeGraphicsDrawLine1.ClockInputPin_o_Receive( _Data );
Declarations::Instances::CompareValue1.InputPin_o_Receive( _Data );
}

void PinCallerReceive2::Notify( void *_Data )
{
Declarations::Instances::TArduinoMonochromeGraphicsDrawLine1.Height().InputPin_o_Receive( _Data );
}

void PinCallerReceive3::Notify( void *_Data )
{
Declarations::Instances::Multiply1.InputPins_o_Receive( 0, _Data );
}

void PinCallerReceive4::Notify( void *_Data )
{
Declarations::Instances::Multiply1.InputPins_o_Receive( 1, _Data );
}

void PinCallerReceive5::Notify( void *_Data )
{
Declarations::Instances::Multiply1.InputPins_o_Receive( 2, _Data );
}

void PinCallerReceive6::Notify( void *_Data )
{
Declarations::Instances::MapRange1.InputPin_o_Receive( _Data );
Declarations::Instances::SchmittTrigger1.InputPin_o_Receive( _Data );
}

void PinCallerReceive7::Notify( void *_Data )
{
Declarations::Instances::AnalogToUnsigned1.InputPin_o_Receive( _Data );
}

void PinCallerReceive8::Notify( void *_Data )
{
TypeConverters::Converter0.Convert( _Data, PinCallerConverterReceive1 );
}

void PinCallerConverterReceive1( void *_Data )
{
Declarations::Instances::TArduinoMonochromeGraphicsElementFillScreen1.ClockInputPin_o_Receive( _Data );
}
void PinCallerReceive9::Notify( void *_Data )
{
TypeConverters::Converter1.Convert( _Data, PinCallerConverterReceive2 );
}

void PinCallerConverterReceive2( void *_Data )
{
Declarations::Instances::SRFlipFlop1.SetInputPin_o_Receive( _Data );
Declarations::Instances::PulseGenerator1.ResetInputPin_o_Receive( _Data );
}
void PinCallerReceive10::Notify( void *_Data )
{
bool Value_PulseGenerator2_EnabledInputPin = Declarations::Instances::PulseGenerator2.Enabled().GetValue();
::Bindings::PulseGenerator2_EnabledInputPin_o_Receive( _Data, Value_PulseGenerator2_EnabledInputPin );
}

void PinCallerReceive11::Notify( void *_Data )
{
TypeConverters::Converter2.Convert( _Data, PinCallerConverterReceive3 );
}

void PinCallerConverterReceive3( void *_Data )
{
Declarations::Instances::PulseGenerator2.ResetInputPin_o_Receive( _Data );
}
void PinCallerReceive12::Notify( void *_Data )
{
TypeConverters::Converter3.Convert( _Data, PinCallerConverterReceive4 );
}

void PinCallerConverterReceive4( void *_Data )
{
Declarations::Instances::SRFlipFlop1.ResetInputPin_o_Receive( _Data );
}
void PinCallerReceive13::Notify( void *_Data )
{
BoardDeclarations::Instances::ArduinoDigitalChannel_13.DigitalInputPin_o_Receive( _Data );
BoardDeclarations::Instances::ArduinoDigitalChannel_12.DigitalInputPin_o_Receive( _Data );
BoardDeclarations::Instances::ArduinoDigitalChannel_11.DigitalInputPin_o_Receive( _Data );
}

} // PinCalls

namespace ComponentsHardware
{
void SystemUpdateHardware()
{
}
} // ComponentsHardware

//The setup function is called once at startup of the sketch
void setup()
{
BoardDeclarations::SystemPeriodMicros_333334.SystemStarted();
BoardDeclarations::Instances::TArduinoI2C1.SystemInit();
BoardDeclarations::Instances::ArduinoDigitalChannel_11.SystemInit();
BoardDeclarations::Instances::ArduinoDigitalChannel_12.SystemInit();
BoardDeclarations::Instances::ArduinoDigitalChannel_13.SystemInit();
Declarations::Instances::DisplayOLED1.SystemInit();
Declarations::Instances::UpDownCounter1.SystemInit();
Declarations::Instances::AccelerometerGyroscope1.SystemInit();
BoardDeclarations::Instances::ArduinoDigitalChannel_11.SystemStart();
BoardDeclarations::Instances::ArduinoDigitalChannel_12.SystemStart();
BoardDeclarations::Instances::ArduinoDigitalChannel_13.SystemStart();
Declarations::Instances::DisplayOLED1.SystemStart();
Declarations::Instances::ClockGenerator1.SystemStart();
Declarations::Instances::UpDownCounter1.SystemStart();
Declarations::Instances::AccelerometerGyroscope1.SystemStart();
Declarations::Instances::Multiply1.SystemStart();
Declarations::Instances::CompareValue1.SystemStart();
Declarations::Instances::SchmittTrigger1.SystemStart();
Declarations::Instances::SRFlipFlop1.SystemStart();
Declarations::Instances::PulseGenerator1.SystemStart();
Declarations::Instances::PulseGenerator2.SystemStart();
}

// The loop function is called in an endless loop
void loop()
{
BoardDeclarations::SystemPeriodMicros_333334.SystemLoopBegin();
BoardDeclarations::Instances::ArduinoDigitalChannel_11.SystemLoopBegin();
BoardDeclarations::Instances::ArduinoDigitalChannel_12.SystemLoopBegin();
BoardDeclarations::Instances::ArduinoDigitalChannel_13.SystemLoopBegin();
Declarations::Instances::ClockGenerator1.SystemLoopBegin();
Declarations::Instances::AccelerometerGyroscope1.SystemLoopBegin();
Declarations::Instances::PulseGenerator1.SystemLoopBegin();
Declarations::Instances::PulseGenerator2.SystemLoopBegin();
Declarations::Instances::DisplayOLED1.SystemLoopEnd();
Declarations::Instances::Multiply1.SystemLoopEnd();
}

Welcome to the forum

Please follow the advice given in the link below when posting code, in particular the section entitled 'Posting code and common code problems'

Use code tags (the < CODE/ > icon above the compose window) to make it easier to read and copy for examination

https://forum.arduino.cc/t/how-to-get-the-best-out-of-this-forum

Hi enzojugo,

You should make the changes in Visuino.
You also posted here the automatically generated Arduino code, not the Visuino project. The changes should be done in the Visuino project.
It is also better to post the question in the Visuino communities, as there are more experienced with Visuino people there :wink:
As example here:

With best regards,
Boian

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.