uv_meter_app.hpp 735 B

123456789101112131415161718192021222324252627282930
  1. /**
  2. * @file uv_meter_app.hpp
  3. * @brief UV Meter Application for AS7331 UV Spectral Sensor
  4. *
  5. * This application interfaces with the AS7331 UV spectral sensor using I2C communication
  6. * to measure UV-A, UV-B, and UV-C irradiance. The measurements are displayed on the Flipper Zero's screen.
  7. *
  8. * Hardware Connections:
  9. * - SCL: C0 [pin 16]
  10. * - SDA: C1 [pin 15]
  11. * - 3V3: 3V3 [pin 9]
  12. * - GND: GND [pin 11 or 18]
  13. */
  14. #pragma once
  15. typedef struct UVMeterApp UVMeterApp;
  16. typedef enum {
  17. UVMeterI2CAddressAuto,
  18. UVMeterI2CAddress74,
  19. UVMeterI2CAddress75,
  20. UVMeterI2CAddress76,
  21. UVMeterI2CAddress77,
  22. } UVMeterI2CAddress;
  23. typedef enum {
  24. UVMeterUnituW_cm_2,
  25. UVMeterUnitW_m_2,
  26. UVMeterUnitmW_m_2,
  27. } UVMeterUnit;