api-hal-light.h 355 B

1234567891011121314151617181920212223
  1. #pragma once
  2. #include <stdbool.h>
  3. #include <stdint.h>
  4. #include <api-hal-resources.h>
  5. #ifdef __cplusplus
  6. extern "C" {
  7. #endif
  8. /** Init light driver */
  9. void api_hal_light_init();
  10. /**
  11. * Set light value
  12. * @param light - Light
  13. * @param value - light brightness [0-255]
  14. */
  15. void api_hal_light_set(Light light, uint8_t value);
  16. #ifdef __cplusplus
  17. }
  18. #endif