]> www.fi.muni.cz Git - tinyboard.git/blobdiff - projects/step-up/lights.h
pwm.c: modified for ATtiny45/step-up
[tinyboard.git] / projects / step-up / lights.h
index 772613ac513b34943450c4182a64302f545d5f6e..986ffcb7ec935eac3ae6faef0881b26d844e0cb7 100644 (file)
@@ -4,7 +4,7 @@
 #define TESTING_FW 1
 
 #define N_LEDS 7
-#define N_PWMLEDS 3
+#define N_PWMLEDS 2
 #define N_PWMLED_MODES 4
 
 #define N_BUTTONS 2
@@ -36,7 +36,7 @@ void timer_start_slow_adcs();
  * A/D converter frequency (125 kHz). Note that this is not the Top
  * value of T/C 1, it is shifted by PWM_STEP_SHIFT as described in pwm.c
  */
-#define PWM_MAX 0x780
+#define PWM_MAX 0x340
 void init_pwm();
 void susp_pwm();
 void pwm_off(unsigned char n);