VRBoard_LED.h 975 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * AP_Notify Library.
  3. * based upon a prototype library by David "Buzz" Bussenschutt.
  4. */
  5. /*
  6. This program is free software: you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation, either version 3 of the License, or
  9. (at your option) any later version.
  10. This program is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. GNU General Public License for more details.
  14. You should have received a copy of the GNU General Public License
  15. along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. */
  17. #pragma once
  18. #include "RGBLed.h"
  19. #include "AP_BoardLED.h"
  20. class VRBoard_LED: public RGBLed {
  21. public:
  22. VRBoard_LED();
  23. protected:
  24. bool hw_init(void) override;
  25. bool hw_set_rgb(uint8_t r, uint8_t g, uint8_t b) override;
  26. };