FUT091PacketFormatter.h 600 B

1234567891011121314151617181920212223242526
  1. #include <V2PacketFormatter.h>
  2. #ifndef _FUT091_PACKET_FORMATTER_H
  3. #define _FUT091_PACKET_FORMATTER_H
  4. enum class FUT091Command {
  5. ON_OFF = 0x01,
  6. BRIGHTNESS = 0x2,
  7. KELVIN = 0x03
  8. };
  9. class FUT091PacketFormatter : public V2PacketFormatter {
  10. public:
  11. FUT091PacketFormatter()
  12. : V2PacketFormatter(REMOTE_TYPE_FUT091, 0x21, 4) // protocol is 0x21, and there are 4 groups
  13. { }
  14. virtual void updateBrightness(uint8_t value);
  15. virtual void updateTemperature(uint8_t value);
  16. virtual void enableNightMode();
  17. virtual BulbId parsePacket(const uint8_t* packet, JsonObject result);
  18. };
  19. #endif