Skip to content

Commit

Permalink
remove MidiUsbHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
dromer committed Aug 31, 2023
1 parent 41a2f03 commit e6e817e
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 5 deletions.
3 changes: 1 addition & 2 deletions src/json2daisy/json2daisy.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,7 @@ def generate_header(board_description_dict: dict) -> 'tuple[str, dict]':
if 'defines' in target:
if target['defines'].get('OOPSY_TARGET_HAS_MIDI_INPUT'):
target['has_midi'] = True
replacements['midi'] = """daisy::MidiUartHandler midi;
daisy::MidiUsbHandler midiusb;"""
replacements['midi'] = """daisy::MidiUartHandler midi;"""

replacements['process'] = filter_map_template(
components, 'process', key_exclude='default', match_exclude=True)
Expand Down
1 change: 0 additions & 1 deletion tests/data/integration/expected_field.h
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,6 @@ struct DaisyField {
daisy::I2CHandle i2c;
daisy::OledDisplay<daisy::SSD130x4WireSpi128x64Driver> display;
daisy::MidiUartHandler midi;
daisy::MidiUsbHandler midiusb;

};

Expand Down
1 change: 0 additions & 1 deletion tests/data/integration/expected_patch.h
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,6 @@ struct DaisyPatch {
dsy_gpio gateout;
daisy::OledDisplay<daisy::SSD130x4WireSpi128x64Driver> display;
daisy::MidiUartHandler midi;
daisy::MidiUsbHandler midiusb;

};

Expand Down
1 change: 0 additions & 1 deletion tests/data/integration/expected_pod.h
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ struct DaisyPod {
daisy::Switch sw2;
daisy::OledDisplay<daisy::SSD130x4WireSpi128x64Driver> display;
daisy::MidiUartHandler midi;
daisy::MidiUsbHandler midiusb;

};

Expand Down

0 comments on commit e6e817e

Please sign in to comment.