Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
015babaa3This file is pinned to the selected release. Download the original to open it in your design tool.
/*
########## Copyright (C) 2016 Vincenzo Pacella
## ## Distributed under MIT license, see file LICENSE
## ## or <http://opensource.org/licenses/MIT>
## ##
########## ############################################################# shaduzlabs.com #####*/
#pragma once
#include "ui/UserInterface.h"
#include <nmws/WebSocketServer.hpp>
#include <future>
#include <mutex>
#include <string>
#include <thread>
// -------------------------------------------------------------------------------------------------
namespace sl
{
namespace pi
{
// -------------------------------------------------------------------------------------------------
class UserInterfaceCHIPPro : public UserInterface
{
public:
UserInterfaceCHIPPro(std::shared_ptr<Pink> /*pink_*/);
~UserInterfaceCHIPPro() override;
void statusChanged(bool /*enabled_*/) override;
void tempoChanged(double /*t_*/) override;
void loopLengthChanged(double /*t_*/) override;
void numPeersChanged(std::size_t /*n_*/) override;
void runStatusChanged(bool /*playing_*/) override;
void clockMultiplierChanged(const std::string& /*cm_*/) override;
private:
void setOutputPin(uint8_t pin_, bool status_);
uint8_t* m_memoryMap;
};
// -------------------------------------------------------------------------------------------------
} // namespace pi
} // namespace sl