Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * piglow.h:
  3. * Easy access to the Pimoroni PiGlow board.
  4. *
  5. * Copyright (c) 2013 Gordon Henderson.
  6. ***********************************************************************
  7. * This file is part of wiringPi:
  8. * https://projects.drogon.net/raspberry-pi/wiringpi/
  9. *
  10. * wiringPi is free software: you can redistribute it and/or modify
  11. * it under the terms of the GNU Lesser General Public License as published by
  12. * the Free Software Foundation, either version 3 of the License, or
  13. * (at your option) any later version.
  14. *
  15. * wiringPi is distributed in the hope that it will be useful,
  16. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18. * GNU Lesser General Public License for more details.
  19. *
  20. * You should have received a copy of the GNU Lesser General Public License
  21. * along with wiringPi. If not, see <http://www.gnu.org/licenses/>.
  22. ***********************************************************************
  23. */
  24. #define PIGLOW_RED 0
  25. #define PIGLOW_ORANGE 1
  26. #define PIGLOW_YELLOW 2
  27. #define PIGLOW_GREEN 3
  28. #define PIGLOW_BLUE 4
  29. #define PIGLOW_WHITE 5
  30. #ifdef __cplusplus
  31. extern "C" {
  32. #endif
  33. extern void piGlow1 (const int leg, const int ring, const int intensity) ;
  34. extern void piGlowLeg (const int leg, const int intensity) ;
  35. extern void piGlowRing (const int ring, const int intensity) ;
  36. extern void piGlowSetup (int clear) ;
  37. #ifdef __cplusplus
  38. }
  39. #endif