From 888f15f2a62d2a55ee53eed77fbf5984f6cfffc4 Mon Sep 17 00:00:00 2001 From: "David A. Mellis" Date: Tue, 12 May 2009 10:55:26 +0000 Subject: Optimizing the timer0 overflow handler (for millis()), based on work by WestFW and help from mikalhart. Increasing precision of math constants. --- cores/arduino/wiring.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'cores/arduino/wiring.h') diff --git a/cores/arduino/wiring.h b/cores/arduino/wiring.h index 9600a0f..2f84f78 100755 --- a/cores/arduino/wiring.h +++ b/cores/arduino/wiring.h @@ -41,11 +41,11 @@ extern "C"{ #define true 0x1 #define false 0x0 -#define PI 3.14159265 -#define HALF_PI 1.57079 -#define TWO_PI 6.283185 -#define DEG_TO_RAD 0.01745329 -#define RAD_TO_DEG 57.2957786 +#define PI 3.1415926535897932384626433832795 +#define HALF_PI 1.5707963267948966192313216916398 +#define TWO_PI 6.283185307179586476925286766559 +#define DEG_TO_RAD 0.017453292519943295769236907684886 +#define RAD_TO_DEG 57.295779513082320876798154814105 #define SERIAL 0x0 #define DISPLAY 0x1 -- cgit v1.2.3-18-g5258