Flic Home

    Community

    • Login
    • Search
    • Popular
    • Users

    API: Color values

    Developers
    2
    3
    661
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • martinm
      martinm last edited by

      Hi!

      Python documentation for get_button_info(self, bd_addr, callback): states:

      	The server will send back its information directly and the callback will be called
              once the response arrives. Responses will arrive in the same order as requested.
      	
      	The callback takes three parameters:
                  bd_addr, 
                  uuid (hex string of 32 characters), 
                  color (string and None if unknown).
      

      What are the possible values for color ? are they "official" colors name, such as HTML color names?

      1 Reply Last reply Reply Quote 0
      • Emil
        Emil FlicTeam last edited by

        Yes, yellow is also valid. See the documentation at https://github.com/50ButtonsEach/fliclib-linux-hci/blob/master/ProtocolDocumentation.md#evtgetbuttoninforesponse.

        1 Reply Last reply Reply Quote 0
        • martinm
          martinm last edited by

          Is there some developers from Flic in there ?
          I had to buy more buttons to find out, here is the answer

          • White button : "white"
          • Black button: "black"
          • Green button: "green"
          • Mint turquoise button: "turquoise"
          • Glow in the dark button: "gitd"

          I suspect there are also Pale Yellow "yellow" buttons in the wild.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post