gearmulator

Emulation of classic VA synths of the late 90s/2000s that are based on Motorola 56300 family DSPs
Log | Files | Refs | Submodules | README | LICENSE

mqLcd.cpp (917B)


      1 #include "mqLcd.h"
      2 
      3 #include "hardwareLib/lcdfonts.h"
      4 
      5 #include "jucePluginLib/pluginVersion.h"
      6 
      7 MqLcd::MqLcd(Component& _parent) : Lcd(_parent, 20, 2)
      8 {
      9 	postConstruct();
     10 }
     11 
     12 MqLcd::~MqLcd() = default;
     13 
     14 void MqLcd::setText(const std::array<uint8_t, 40>& _text)
     15 {
     16 	const std::vector<uint8_t> text{_text.begin(), _text.end()};
     17 	Lcd::setText(text);
     18 }
     19 
     20 void MqLcd::setCgRam(std::array<uint8_t, 64>& _data)
     21 {
     22 	Lcd::setCgRam(_data);
     23 }
     24 
     25 bool MqLcd::getOverrideText(std::vector<std::vector<uint8_t>>& _lines)
     26 {
     27 	const std::string lineA(std::string("Vavra v") + pluginLib::Version::getVersionString());
     28 	const std::string lineB = pluginLib::Version::getVersionDateTime();
     29 
     30 	_lines = 
     31 	{
     32 		std::vector<uint8_t>(lineA.begin(), lineA.end()),
     33 		std::vector<uint8_t>(lineB.begin(), lineB.end())
     34 	};
     35 
     36 	return true;
     37 }
     38 
     39 const uint8_t* MqLcd::getCharacterData(uint8_t _character) const
     40 {
     41 	return hwLib::getCharacterData(_character);
     42 }