|
|
|
@ -43,16 +43,12 @@
|
|
|
|
|
//|
|
|
|
|
|
//| .. class:: PortOut()
|
|
|
|
|
//|
|
|
|
|
|
//| Not currently dynamically supported.
|
|
|
|
|
//| You cannot create an instance of `usb_midi.PortOut`.
|
|
|
|
|
//|
|
|
|
|
|
//| PortOut objects are constructed for every corresponding entry in the USB descriptor and added
|
|
|
|
|
//| to the ``usb_midi.ports`` tuple.
|
|
|
|
|
//| PortOut objects are constructed for every corresponding entry in the USB
|
|
|
|
|
//| descriptor and added to the ``usb_midi.ports`` tuple.
|
|
|
|
|
//|
|
|
|
|
|
|
|
|
|
|
STATIC mp_obj_t usb_midi_portout_make_new(const mp_obj_type_t *type, size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args) {
|
|
|
|
|
return mp_const_none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// These are standard stream methods. Code is in py/stream.c.
|
|
|
|
|
//
|
|
|
|
|
//| .. method:: write(buf)
|
|
|
|
@ -102,7 +98,6 @@ STATIC const mp_stream_p_t usb_midi_portout_stream_p = {
|
|
|
|
|
const mp_obj_type_t usb_midi_portout_type = {
|
|
|
|
|
{ &mp_type_type },
|
|
|
|
|
.name = MP_QSTR_PortOut,
|
|
|
|
|
.make_new = usb_midi_portout_make_new,
|
|
|
|
|
.getiter = mp_identity_getiter,
|
|
|
|
|
.iternext = mp_stream_unbuffered_iter,
|
|
|
|
|
.protocol = &usb_midi_portout_stream_p,
|
|
|
|
|