From 665a064c16e902344eaf3f1a1c62c8cea35bf22c Mon Sep 17 00:00:00 2001 From: Dave Hodder Date: Tue, 13 Nov 2018 13:28:22 +0000 Subject: implemented hal_read_led(), removed debug symbols bloating the library --- include/app.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'include') diff --git a/include/app.h b/include/app.h index 96801eb..b06f7a6 100644 --- a/include/app.h +++ b/include/app.h @@ -70,6 +70,19 @@ */ void hal_plot_led(u8 type, u8 index, u8 red, u8 green, u8 blue); +/** + * Read the RGB value of an LED. This function is safe to call from any + * of the app functions below, at any time. Result is undefined if an invalid address is passed + * for any of the red, green or blue components. + * + * @param type - TYPEPAD to address any pad or button, TYPESETUP to address the Setup LED + * @param index - The index of the button, as above + * @param red - address to read red colour value, in [0, MAXLED]. + * @param green - address to read green colour value, in [0, MAXLED] + * @param blue - address to read blue colour value, in [0, MAXLED] + */ +void hal_read_led(u8 type, u8 index, u8 *red, u8 *green, u8 *blue); + /** * Send a MIDI message to either USB port or to the DIN output. * -- cgit v1.2.1