From 92ec11b505a5b68c33e6158dbc68cea1d23cbd35 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Tue, 10 Feb 2015 12:33:58 +0100 Subject: Reduce CPU frequency Also reduces PWM frequency. The speakers resonance frequency is 2kHz, with 1MHz clock speed and prescaler 256 we get pretty close. --- common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common.h') diff --git a/common.h b/common.h index 42737eb..5730f47 100644 --- a/common.h +++ b/common.h @@ -2,7 +2,7 @@ #define COMMON_H /* cpu runs at n mhz */ -#define F_CPU 8000000 +#define F_CPU 1000000 #define sleepwhile(cond) \ sleep_enable (); \ -- cgit v1.2.3