| 137 | } |
| 138 | |
| 139 | void Push2Control::Exit() |
| 140 | { |
| 141 | for (int i = 0; i < 128; ++i) |
| 142 | { |
| 143 | SetLed(kMidiMessage_Note, i, 0); |
| 144 | SetLed(kMidiMessage_Control, i, 0); |
| 145 | } |
| 146 | |
| 147 | if (mPixels != nullptr) |
| 148 | { |
| 149 | memset(mPixels, 0, sizeof(unsigned char) * GetNumDisplayPixels()); |
| 150 | ThePushBridge.Flip(mPixels); |
| 151 | } |
| 152 | |
| 153 | mDevice.DisconnectInput(); |
| 154 | mDevice.DisconnectOutput(); |
| 155 | } |
| 156 | |
| 157 | void Push2Control::CreateUIControls() |
| 158 | { |
nothing calls this directly
no test coverage detected