furi_hal_light.h 427 B

1234567891011121314151617181920212223242526272829
  1. /**
  2. * @file furi_hal_light.h
  3. * Light control HAL API
  4. */
  5. #pragma once
  6. #include <stdbool.h>
  7. #include <stdint.h>
  8. #include <furi_hal_resources.h>
  9. #ifdef __cplusplus
  10. extern "C" {
  11. #endif
  12. /** Init light driver
  13. */
  14. void furi_hal_light_init();
  15. /** Set light value
  16. *
  17. * @param light Light
  18. * @param value light brightness [0-255]
  19. */
  20. void furi_hal_light_set(Light light, uint8_t value);
  21. #ifdef __cplusplus
  22. }
  23. #endif