-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7d4c2c2
commit 25e2b76
Showing
2 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# SPDX-FileCopyrightText: 2024 Matthew Badeau | ||
# | ||
# SPDX-License-Identifier: MIT | ||
|
||
""" | ||
`adafruit_midi.active_sensing` | ||
================================================================================ | ||
Active Sensing MIDI message. | ||
* Author(s): Matthew Badeau | ||
Implementation Notes | ||
-------------------- | ||
""" | ||
|
||
from .midi_message import MIDIMessage | ||
|
||
__version__ = "0.0.0+auto.0" | ||
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_MIDI.git" | ||
|
||
|
||
class ActiveSensing(MIDIMessage): | ||
"""Active Sensing MIDI message. | ||
Active Sensing message is a keepalive message sent every 300 milliseconds | ||
to tell the bus that the session is still good and alive. | ||
""" | ||
|
||
_STATUS = 0xFE | ||
_STATUSMASK = 0xFF | ||
LENGTH = 1 | ||
_slots = [] | ||
|
||
|
||
ActiveSensing.register_message_type() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,3 +51,6 @@ | |
|
||
.. automodule:: adafruit_midi.timing_clock | ||
:members: | ||
|
||
.. automodule:: adafruit_midi.active_sensing | ||
:members: |