]> www.fi.muni.cz Git - bike-lights.git/blobdiff - firmware/control.c
pattern: laser diodes as gpio 4
[bike-lights.git] / firmware / control.c
index 384edc87123994e84d52f75c045401c7f70a1fd1..eeeca84cb1ba5565a384a7a216f26a9ffdfc433b 100644 (file)
@@ -213,3 +213,10 @@ pattern_t *illumination_led_pattern_select()
        }
 }
 
+pattern_t *laser_pattern_select()
+{
+       if (!dim_mode && ambient_zone <= 1)
+               return number_pattern(2, 1);
+       else
+               return NULL;
+}