@@ -38,25 +38,20 @@ AuxiliaryIOInterface::AuxiliaryIOInterface(std::shared_ptr<AuxiliaryIO> d, OnixS
3838 static int offset = 55 ;
3939 FontOptions font = FontOptions (" Fira Code" , " Bold" , 22 .0f );
4040
41- analogLabel = std::make_unique<Label>(" analogLabel " , " Analog IO" );
42- analogLabel ->setBounds (20 , 20 , 150 , 35 );
43- analogLabel ->setFont (font);
44- addAndMakeVisible (analogLabel .get ());
41+ analogDigitalLabel = std::make_unique<Label>(" analogDigitalLabel " , " Analog and Digital IO" );
42+ analogDigitalLabel ->setBounds (20 , 20 , 350 , 35 );
43+ analogDigitalLabel ->setFont (font);
44+ addAndMakeVisible (analogDigitalLabel .get ());
4545
4646 analogInterface = std::make_unique<AnalogIOInterface>(auxiliaryIO->getAnalogIO (), e, c);
4747 analogViewport = std::make_unique<CustomViewport>(analogInterface.get (), SettingsInterface::Width / 2 , SettingsInterface::Height);
4848 analogViewport->setBounds (0 , offset, SettingsInterface::Width / 2 , SettingsInterface::Height);
4949 addAndMakeVisible (analogViewport.get ());
5050
51- digitalLabel = std::make_unique<Label>(" digitalLabel" , " Digital IO" );
52- digitalLabel->setBounds (analogLabel->getX () + SettingsInterface::Width / 2 , analogLabel->getY (), analogLabel->getWidth (), analogLabel->getHeight ());
53- digitalLabel->setFont (font);
54- addAndMakeVisible (digitalLabel.get ());
55-
5651 digitalInterface = std::make_unique<DigitalIOInterface>(auxiliaryIO->getDigitalIO (), e, c);
5752 digitalViewport = std::make_unique<CustomViewport>(digitalInterface.get (), SettingsInterface::Width / 2 , SettingsInterface::Height);
5853 digitalViewport->setBounds (SettingsInterface::Width / 2 , offset, SettingsInterface::Width / 2 , SettingsInterface::Height);
59- addAndMakeVisible (digitalViewport.get ());
54+ // addAndMakeVisible(digitalViewport.get()); // NB: Hide digital interface for now, if the digitalIO UI gets updates that need to be displayed they can be shown here
6055 }
6156}
6257
@@ -74,8 +69,8 @@ void AuxiliaryIOInterface::saveParameters(XmlElement* xml)
7469
7570void AuxiliaryIOInterface::loadParameters (XmlElement* xml)
7671{
77- analogInterface->saveParameters (xml);
78- digitalInterface->saveParameters (xml);
72+ analogInterface->loadParameters (xml);
73+ digitalInterface->loadParameters (xml);
7974}
8075
8176void AuxiliaryIOInterface::updateInfoString ()
0 commit comments