[chronojump] cronopic-firmare for animation light with more suitable frequencies



commit 4d25c9a834900f652c6247fa56fc3286303ee130
Author: Xavier de Blas <xaviblas gmail com>
Date:   Mon Feb 13 12:59:20 2017 +0100

    cronopic-firmare for animation light with more suitable frequencies

 .../chronopic-firmware-multitest.c                 |   35 ++++++++++++++++++-
 1 files changed, 33 insertions(+), 2 deletions(-)
---
diff --git a/chronopic-firmware/chronopic-firmware-c/chronopic-firmware-multitest.c 
b/chronopic-firmware/chronopic-firmware-c/chronopic-firmware-multitest.c
index 6b6c3c8..4242d64 100644
--- a/chronopic-firmware/chronopic-firmware-c/chronopic-firmware-multitest.c
+++ b/chronopic-firmware/chronopic-firmware-c/chronopic-firmware-multitest.c
@@ -622,8 +622,9 @@ static void asm_ledon()
     MOVWF PORTC
     __endasm;
 }
-               
-static void animation_light_convert(char sentData)
+
+/*
+static void animation_light_convert_old(char sentData)
 {
        switch(sentData) {
                case 0:
@@ -652,6 +653,36 @@ static void animation_light_convert(char sentData)
                        break;
        }
 }
+*/
+static void animation_light_convert(char sentData)
+{
+       switch(sentData) {
+               case 0:
+                       animation_tick_n_times = 5;
+                       break;
+               case 1:
+                       animation_tick_n_times = 10;
+                       break;
+               case 2:
+                       animation_tick_n_times = 15;
+                       break;
+               case 3:
+                       animation_tick_n_times = 20;
+                       break;
+               case 4:
+                       animation_tick_n_times = 25;
+                       break;
+               case 5:
+                       animation_tick_n_times = 30;
+                       break;
+               case 6:
+                       animation_tick_n_times = 35;
+                       break;
+               case 7:
+                       animation_tick_n_times = 40;
+                       break;
+       }
+}
 static void flickr_light_convert(char sentData)
 {
        switch(sentData) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]