IN202 — Arduino Mega simulation

An interactive Arduino Mega circuit simulation you can run free in your browser on Velxio, by marche10022004.

Components

Sketch code

#include"UART.hpp"
#include "Component.hpp"
#include "Led.hpp"
#include "Button.hpp"
#include "LedButton.hpp"
#include "DimmableLed.hpp"


DimmableLed TestLED(9,"Test");
LedButton<2> TestLedButton(TestLED);
void setup() {
  Serial.begin(115200);
  TestLedButton.StartMonitorEvents();
}

void loop() {
  TestLedButton.IsPressed();
  delay(1000);

  /*
  while(TestLED.IncreaseLight()){Serial.println(TestLED.IsSwitchedOn());Serial.println(TestLED.GetIntensity());delay(100);};
  delay(1000);
  while(TestLED.DecreaseLight()){Serial.println(TestLED.IsSwitchedOn());Serial.println(TestLED.GetIntensity());delay(100);};
  delay(1000);
  TestLED.SwitchOn();
  delay(10000);
  TestLED.SwitchOff();
  delay(10000);*/
}

More projects by marche10022004