Skip to content

cuesdk v0.3.0

Choose a tag to compare

@intrueder intrueder released this 17 Apr 11:19
· 52 commits to master since this release

Changelog

  • Use Python 3.5 as a minimum supported version (95b917f)
  • Make Corsair* enums hashable and sortable (17a786f)
  • LED colors and positions are dicts now. Affected api: get_led_colors_by_device_index, get_led_positions_by_device_index and set_led_colors_buffer_by_device_index. (fa14c9b)
  • Add cuesdk.helpers submodule with ColorRgb helper class (134a2ba)
    • Usage:
      from cuesdk.helpers import ColorRgb
      import colorsys
      
      # parse hex string and return tuple to use in sdk
      rgb_tuple = ColorRgb.from_hexstr("aa22ff").rgb
      
      # convert vector of floats in range [0, 1] to rgb range in [0, 255] and print as hex
      print(ColorRgb.from_vec3(1.0, 0.5, 0))
      
      # work with colorsys color converters
      hue = 0.14
      print(ColorRgb.from_vec3(*colorsys.hls_to_rgb(hue, .5, .7)))
  • doc: Add type hints and improve docstrings (fa14c9b)
  • doc: Add api_reference.md (fa14c9b)
  • fix: Fix issue with TypeError when using get_led_id_for_key_name function (816ad06)