16 Commits

Author SHA1 Message Date
5979eddc21 Setup project with SMX linked. 2023-06-16 18:51:30 -05:00
Glenn Maynard
102fe2f9f9 Make the platform lights slider update directly when dragged, so we can delay config updates.
This is just a safeguard to prevent hammering the EEPROM erase cycles.  It also
makes the platform slider update more smoothly (previously it would only update
at a few FPS since it was using config changes).
2019-10-03 20:27:37 -05:00
Glenn Maynard
baf9b47fe9 Add an internal API to assign serial numbers. 2019-09-17 23:40:47 -05:00
Glenn Maynard
672541015f Add SMX_SetOnlySendLightsOnChange for smx-panel-test. 2019-07-18 20:25:47 -05:00
Glenn Maynard
69b2239922 Refactor SMXManager::SendLightUpdates to queue multiple lights commands if possible.
This also fixes a memory leak if lights are queued too quickly.
2019-07-18 20:25:47 -05:00
Glenn Maynard
c53c3d45c6 Make sure we don't send lights commands before we have a config packet, and adjust the V3 command timing. 2019-07-18 20:25:47 -05:00
Glenn Maynard
ce261c1ecb Add internal support for panel test modes, and rename "test mode" to "sensor test mode" to make the distinction clearer. 2019-02-06 20:01:06 -06:00
Glenn Maynard
3d5be3017b Add support for 25 light panels (SDK side). 2018-12-09 16:11:12 -06:00
Glenn Maynard
f4e60ef2e0 Clarify comment. 2018-12-09 16:11:12 -06:00
Glenn Maynard
cb7feb626e Separate out scaleLight. 2018-12-09 16:11:12 -06:00
Glenn Maynard
cf02b97fe6 Rename m_aPendingCommands -> m_aPendingLightsCommands.
This only buffers lights commands, not all commands.
2018-12-09 16:11:12 -06:00
Glenn Maynard
39cfc8cee0 Add support for uploading animations to the panel, if it supports it. 2018-12-09 16:11:12 -06:00
Glenn Maynard
303283624a Add SMX_SetLights2.
This is the same as SMX_SetLights, but instead of taking one buffer with a
fixed size, it takes a separate buffer for each pad, and explicitly includes
the size of the buffer rather than assuming it's 864 bytes.  SMX_SetLights
and SMX_SetLights2 call into the same underlying update.
2018-12-09 16:10:45 -06:00
Glenn Maynard
a7cb6ad51d Replace SMXHelperThread::GetThreadId() with SMXHelperThread::IsCurrentThread(). 2018-12-09 16:10:45 -06:00
Glenn Maynard
2c07942478 Move the SMXManager from SMX to SMXManager. 2018-11-08 19:13:35 -06:00
Glenn Maynard
57379383c0 Import for release. 2017-12-15 02:55:34 -06:00