diff options
author | fauxpark <fauxpark@gmail.com> | 2021-02-25 16:04:53 +1100 |
---|---|---|
committer | fauxpark <fauxpark@gmail.com> | 2021-02-25 16:04:53 +1100 |
commit | 23fd1aee00c762b1e9496795ad595325be82a956 (patch) | |
tree | 4b6a68d6015f6a730f8c15baf7103010f0f8ad56 /tmk_core/common/avr/sleep_led.c | |
parent | 23ef327e118307d276677d30e3fda064ace6713b (diff) | |
parent | 39694d5eb0b7e48e06f9544600041fbbedfff956 (diff) |
Merge remote-tracking branch 'upstream/master' into develop
Diffstat (limited to 'tmk_core/common/avr/sleep_led.c')
-rw-r--r-- | tmk_core/common/avr/sleep_led.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tmk_core/common/avr/sleep_led.c b/tmk_core/common/avr/sleep_led.c index 63dcc2afd9..9a3b52abe5 100644 --- a/tmk_core/common/avr/sleep_led.c +++ b/tmk_core/common/avr/sleep_led.c @@ -90,7 +90,7 @@ void sleep_led_toggle(void) { * * (64[steps] * 4[duration]) / 64[PWM periods/s] = 4 second breath cycle * - * http://www.wolframalpha.com/input/?i=%28sin%28+x%2F64*pi%29**8+*+255%2C+x%3D0+to+63 + * https://www.wolframalpha.com/input/?i=sin%28x%2F64*pi%29**8+*+255%2C+x%3D0+to+63 * (0..63).each {|x| p ((sin(x/64.0*PI)**8)*255).to_i } */ static const uint8_t breathing_table[64] PROGMEM = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 4, 6, 10, 15, 23, 32, 44, 58, 74, 93, 113, 135, 157, 179, 199, 218, 233, 245, 252, 255, 252, 245, 233, 218, 199, 179, 157, 135, 113, 93, 74, 58, 44, 32, 23, 15, 10, 6, 4, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; |