Launchpad double buffering example
Test for Launchpads double buffering controls
Derived from info in the launchpad programmers manual, tested on LP S only. Little test program developed to gain insight on the functionality of the double-buffering functions of the device. Use this to learn what codes to send exactly for double buffering and blinking lights (eg. recording, or "about to launch this as next clip").
Reset button resets all lights to off.
Buttons with color names set button number 4 (first row, fifth column) to red, LP's 'amber', and green, always with color flag 0.
Switch button turns display buffer to 1 if on, 0 when off.
Paint button turns the 'paint' aka update buffer to 1 if on, 0 when off.
Flash flips the launchpads flash mode on or off. Because the LP will now alternate every ~.4 sec between display buffers, the colors set in paint buffers 0 and 1 will alternate.