2008-09-15 14:09:13 -07:00
|
|
|
#ifndef WProgram_h
|
|
|
|
#define WProgram_h
|
|
|
|
|
2006-04-14 04:53:56 -07:00
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
2007-09-23 09:06:28 -07:00
|
|
|
#include <math.h>
|
2006-04-14 04:53:56 -07:00
|
|
|
|
|
|
|
#include <avr/interrupt.h>
|
2005-09-25 07:11:32 -07:00
|
|
|
|
|
|
|
#include "wiring.h"
|
2006-08-13 02:59:06 -07:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
2006-03-23 06:16:00 -08:00
|
|
|
#include "HardwareSerial.h"
|
2005-09-25 07:11:32 -07:00
|
|
|
|
2008-03-08 13:30:00 -08:00
|
|
|
unsigned long pulseIn(uint8_t pin, uint8_t state, unsigned long timeout = 1000000L);
|
|
|
|
|
2007-11-21 09:08:07 -08:00
|
|
|
// WMath prototypes
|
2006-08-13 02:59:06 -07:00
|
|
|
long random(long);
|
|
|
|
long random(long, long);
|
|
|
|
void randomSeed(unsigned int);
|
2007-11-21 09:08:07 -08:00
|
|
|
long map(long, long, long, long, long);
|
2007-04-20 16:17:38 -07:00
|
|
|
#endif
|
2008-09-15 14:09:13 -07:00
|
|
|
|
|
|
|
#endif
|