Commit 4c9c54e5 authored by Sven Greiner's avatar Sven Greiner

Make beacon brightness adjustable

Costs 8 bytes of flash.
parent de750863
......@@ -43,6 +43,7 @@
#define RAMP_SIZE sizeof(ramp_values)
#define RAMP_VALUES 5,5,5,5,5,6,6,6,6,7,7,8,8,9,10,11,12,13,14,15,17,18,20,22,23,25,28,30,32,35,38,41,44,47,51,55,59,63,67,71,76,81,86,92,97,103,109,116,122,129,136,144,151,159,167,176,185,194,203,213,223,233,244,255
#define TURBO_PWM 255
#define BEACON_PWM 5
#define FIXED_SIZE sizeof(fixed_values)
#define FIXED_VALUES 5,35,118,255
......@@ -518,7 +519,8 @@ int main(void) {
case kBeacon:
set_pwm(TURBO_PWM);
blink(2, 3);
set_level(1);
set_pwm(BEACON_PWM);
enable_output();
delay_s();
delay_s();
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment