BlynkSimpleTinyDuino.h 939 B

123456789101112131415161718192021222324252627282930313233
  1. /**
  2. * @file BlynkSimpleTinyDuino.h
  3. * @author Volodymyr Shymanskyy
  4. * @license This project is released under the MIT License (MIT)
  5. * @copyright Copyright (c) 2015 Volodymyr Shymanskyy
  6. * @date Mar 2015
  7. * @brief
  8. */
  9. #ifndef BlynkSimpleTinyDuino_h
  10. #define BlynkSimpleTinyDuino_h
  11. #ifndef BLYNK_INFO_DEVICE
  12. #define BLYNK_INFO_DEVICE "TinyDuino"
  13. #endif
  14. #include <Adapters/BlynkCC3000.h>
  15. #include <Adafruit_CC3000.h>
  16. // Pin definitions for the TinyCircuits WiFi TinyShield
  17. #define ADAFRUIT_CC3000_IRQ 2
  18. #define ADAFRUIT_CC3000_VBAT A3
  19. #define ADAFRUIT_CC3000_CS 8
  20. // Use hardware SPI for the remaining pins (on an UNO, SCK = 13, MISO = 12, and MOSI = 11)
  21. Adafruit_CC3000 cc3000 = Adafruit_CC3000(ADAFRUIT_CC3000_CS, ADAFRUIT_CC3000_IRQ, ADAFRUIT_CC3000_VBAT, SPI_CLOCK_DIVIDER);
  22. static BlynkTransportCC3000 _blynkTransport(cc3000);
  23. BlynkCC3000 Blynk(cc3000, _blynkTransport);
  24. #include <BlynkWidgets.h>
  25. #endif