Skip to content
Snippets Groups Projects
Commit b862580c authored by jsiegle's avatar jsiegle
Browse files

Add output message to PulsePalOutput

parent 3d75a80c
Branches
Tags
No related merge requests found
......@@ -37,7 +37,7 @@ PulsePalOutput::PulsePalOutput()
pulsePal.updateDisplay("GUI Connected"," Click for menu");
// doesn't seem to do anything:
pulsePal.setPhase1Duration(2, 20000)
pulsePal.setPhase1Duration(2, 20000);
// check to make sure it's running
// doesn't seem to do anything yet
......@@ -62,6 +62,7 @@ void PulsePalOutput::handleEvent(int eventType, MidiMessage& event, int sampleNu
{
if (eventType == TTL)
{
std::cout << "Received an event!" << std::endl;
// do something cool
}
......
......@@ -272,7 +272,8 @@ uint8_t PulsePal::voltageToByte(float voltage)
void PulsePal::triggerChannel(uint8_t chan)
{
uint8_t bytesToWrite[2] = {84, chan};
// trigger all channels for now
uint8_t bytesToWrite[2] = {84, 15}; //chan};
serial.writeBytes(bytesToWrite, 2);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment