]> www.fi.muni.cz Git - bike-lights.git/commit
patterns: fibonacci-scaled step duration
authorJan "Yenya" Kasprzak <kas@fi.muni.cz>
Tue, 4 Jun 2013 16:04:35 +0000 (18:04 +0200)
committerJan "Yenya" Kasprzak <kas@fi.muni.cz>
Tue, 4 Jun 2013 16:04:35 +0000 (18:04 +0200)
commit29b27abe6adedf08f1067a76c8785cd8fe5d3296
treeaadc3476a013a3c7feb802bd7a7ee16bf6243561
parent4728997cb5f6eff94c8a9d9e253d1675b7516987
patterns: fibonacci-scaled step duration

We have only three bits for pattern duration now,
use Fibonacci-compressed values: instead of 0-7,
use 0, 1, 2, 3, 5, 8, 13, and 21.
firmware/control.c
firmware/lights.h
firmware/pattern.c