WProgram.h 643 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef WProgram_h
  2. #define WProgram_h
  3. #include <stdlib.h>
  4. #include <string.h>
  5. #include <math.h>
  6. #include <avr/interrupt.h>
  7. #include "wiring.h"
  8. #ifdef __cplusplus
  9. #include "HardwareSerial.h"
  10. uint16_t makeWord(uint16_t w);
  11. uint16_t makeWord(byte h, byte l);
  12. #define word(...) makeWord(__VA_ARGS__)
  13. unsigned long pulseIn(uint8_t pin, uint8_t state, unsigned long timeout = 1000000L);
  14. void tone(uint8_t _pin, unsigned int frequency, unsigned long duration = 0);
  15. void noTone(uint8_t _pin);
  16. // WMath prototypes
  17. long random(long);
  18. long random(long, long);
  19. void randomSeed(unsigned int);
  20. long map(long, long, long, long, long);
  21. #endif
  22. #endif