AwesomeStudioPedal
A programmable, multi-profile foot controller for DAWs, score readers, and studio automation
Loading...
Searching...
No Matches
serial_action.cpp
Go to the documentation of this file.
1#include "serial_action.h"
2#ifndef HOST_TEST_BUILD
3#include <Arduino.h>
4#else
5#include <iostream>
6#endif
7
11SerialOutputAction::SerialOutputAction(std::string message) : message(std::move(message)) {}
12
23{
24#ifndef HOST_TEST_BUILD
25 Serial.print("ACTION: ");
26 Serial.println(message.c_str());
27#else
28 std::cout << "ACTION: " << message << '\n';
29#endif
30}
SerialOutputAction(std::string message)
Constructs a SerialOutputAction.
void execute() override
Executes the serial output action.