tinygo.org/x/drivers@v0.27.1-0.20240509133757-7dbca2a54349/blinkm/registers.go (about)

     1  package blinkm
     2  
     3  // Constants/addresses used for BlinkM.
     4  
     5  // The I2C address which this device listens to.
     6  const Address = 0x09
     7  
     8  // Registers, which in the case of the BlinkM are actually commands.
     9  const (
    10  	TO_RGB            = 0x6e
    11  	FADE_TO_RGB       = 0x63
    12  	FADE_TO_HSB       = 0x68
    13  	FADE_TO_RND_RGB   = 0x43
    14  	FADE_TO_RND_HSB   = 0x48
    15  	PLAY_LIGHT_SCRIPT = 0x70
    16  	STOP_SCRIPT       = 0x6f
    17  	SET_FADE          = 0x66
    18  	SET_TIME          = 0x74
    19  	GET_RGB           = 0x67
    20  	GET_ADDRESS       = 0x61
    21  	SET_ADDRESS       = 0x41
    22  	GET_FIRMWARE      = 0x5a
    23  )