mirror of
https://github.com/switchbrew/switch-examples.git
synced 2025-07-01 09:12:14 +02:00
[hid] change globalMiniCycleDuration to baseMiniCycleDuration
This commit is contained in:
parent
13618c7d85
commit
8b26ef7a79
@ -57,7 +57,7 @@ int main(int argc, char* argv[])
|
|||||||
memset(&pattern, 0, sizeof(pattern));
|
memset(&pattern, 0, sizeof(pattern));
|
||||||
|
|
||||||
// Setup Breathing effect pattern data.
|
// Setup Breathing effect pattern data.
|
||||||
pattern.globalMiniCycleDuration = 0x8; // 100ms.
|
pattern.baseMiniCycleDuration = 0x8; // 100ms.
|
||||||
pattern.totalMiniCycles = 0x2; // 3 mini cycles. Last one 12.5ms.
|
pattern.totalMiniCycles = 0x2; // 3 mini cycles. Last one 12.5ms.
|
||||||
pattern.totalFullCycles = 0x0; // Repeat forever.
|
pattern.totalFullCycles = 0x0; // Repeat forever.
|
||||||
pattern.startIntensity = 0x2; // 13%.
|
pattern.startIntensity = 0x2; // 13%.
|
||||||
@ -73,7 +73,7 @@ int main(int argc, char* argv[])
|
|||||||
memset(&pattern, 0, sizeof(pattern));
|
memset(&pattern, 0, sizeof(pattern));
|
||||||
|
|
||||||
// Setup Heartbeat effect pattern data.
|
// Setup Heartbeat effect pattern data.
|
||||||
pattern.globalMiniCycleDuration = 0x1; // 12.5ms.
|
pattern.baseMiniCycleDuration = 0x1; // 12.5ms.
|
||||||
pattern.totalMiniCycles = 0xF; // 16 mini cycles.
|
pattern.totalMiniCycles = 0xF; // 16 mini cycles.
|
||||||
pattern.totalFullCycles = 0x0; // Repeat forever.
|
pattern.totalFullCycles = 0x0; // Repeat forever.
|
||||||
pattern.startIntensity = 0x0; // 0%.
|
pattern.startIntensity = 0x0; // 0%.
|
||||||
|
Loading…
Reference in New Issue
Block a user