Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 
 

46 linhas
1.4 KiB

  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://github.com/WiringPi/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