summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDave Hodder <dave.hodder@focusrite.com>2018-11-13 13:28:22 +0000
committerDave Hodder <dave.hodder@focusrite.com>2018-11-13 13:28:22 +0000
commit665a064c16e902344eaf3f1a1c62c8cea35bf22c (patch)
treea6c1cae573620415d647d496e32ade91e6f27f61 /include
parent165dddc42bf05b53f8e8ce4511681e289f043705 (diff)
downloadlaunchpad-polymaker-665a064c16e902344eaf3f1a1c62c8cea35bf22c.tar.gz
launchpad-polymaker-665a064c16e902344eaf3f1a1c62c8cea35bf22c.zip
implemented hal_read_led(), removed debug symbols bloating the library
Diffstat (limited to 'include')
-rw-r--r--include/app.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/app.h b/include/app.h
index 96801eb..b06f7a6 100644
--- a/include/app.h
+++ b/include/app.h
@@ -71,6 +71,19 @@
71void hal_plot_led(u8 type, u8 index, u8 red, u8 green, u8 blue); 71void hal_plot_led(u8 type, u8 index, u8 red, u8 green, u8 blue);
72 72
73/** 73/**
74 * Read the RGB value of an LED. This function is safe to call from any
75 * of the app functions below, at any time. Result is undefined if an invalid address is passed
76 * for any of the red, green or blue components.
77 *
78 * @param type - TYPEPAD to address any pad or button, TYPESETUP to address the Setup LED
79 * @param index - The index of the button, as above
80 * @param red - address to read red colour value, in [0, MAXLED].
81 * @param green - address to read green colour value, in [0, MAXLED]
82 * @param blue - address to read blue colour value, in [0, MAXLED]
83 */
84void hal_read_led(u8 type, u8 index, u8 *red, u8 *green, u8 *blue);
85
86/**
74 * Send a MIDI message to either USB port or to the DIN output. 87 * Send a MIDI message to either USB port or to the DIN output.
75 * 88 *
76 * @param port - which port to send the message to - can be USBSTANDALONE, USBMIDI or DINMIDI. 89 * @param port - which port to send the message to - can be USBSTANDALONE, USBMIDI or DINMIDI.