Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

WProgram.h 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. #ifndef WProgram_h
  2. #define WProgram_h
  3. #include <stdlib.h>
  4. #include <string.h>
  5. #include <math.h>
  6. // some libraries and sketches depend on this
  7. // AVR stuff, assuming Arduino.h or WProgram.h
  8. // automatically includes it...
  9. #include <avr/pgmspace.h>
  10. #include <avr/interrupt.h>
  11. #include "avr_functions.h"
  12. #include "wiring.h"
  13. #include "HardwareSerial.h"
  14. #define DMAMEM __attribute__ ((section(".dmabuffers"), used))
  15. #ifdef __cplusplus
  16. #include "avr_emulation.h"
  17. #include "usb_serial.h"
  18. #include "usb_seremu.h"
  19. #include "usb_keyboard.h"
  20. #include "usb_mouse.h"
  21. #include "usb_joystick.h"
  22. #include "usb_midi.h"
  23. #include "usb_rawhid.h"
  24. #include "usb_flightsim.h"
  25. //#include "WCharacter.h"
  26. #include "WString.h"
  27. #include "elapsedMillis.h"
  28. #include "IntervalTimer.h"
  29. uint16_t makeWord(uint16_t w);
  30. uint16_t makeWord(byte h, byte l);
  31. #define word(...) makeWord(__VA_ARGS__)
  32. unsigned long pulseIn(uint8_t pin, uint8_t state, unsigned long timeout = 1000000L);
  33. void tone(uint8_t pin, uint16_t frequency, uint32_t duration = 0);
  34. void noTone(uint8_t pin);
  35. // WMath prototypes
  36. uint32_t random(void);
  37. uint32_t random(uint32_t howbig);
  38. int32_t random(int32_t howsmall, int32_t howbig);
  39. void randomSeed(uint32_t newseed);
  40. void srandom(uint32_t newseed);
  41. long map(long, long, long, long, long);
  42. #include "pins_arduino.h"
  43. #endif // __cplusplus
  44. #endif // WProgram_h