func (bl *Blinkt) Show() *Blinkt {

	for i := 0; i < 4; i++ {
		bl.writeByte(0)
	}

	for p := range bl.pixels {
		brightness := bl.pixels[p][brightnessIndex]
		r := bl.pixels[p][redIndex]
		g := bl.pixels[p][greenIndex]
		b := bl.pixels[p][blueIndex]

		// 0b11100000 (224)
		bitwise := 224
		bl.writeByte(bitwise | brightness)
		bl.writeByte(b)
		bl.writeByte(g)
		bl.writeByte(r)
	}

	for i := 0; i < 4; i++ {
		bl.writeByte(0)
	}

	// Extra 4 bits for a total of 36
	gpio.DigitalWrite(DAT, 0)
	for i := 0; i < 4; i++ {
		gpio.DigitalWrite(CLK, 1)
		gpio.DigitalWrite(CLK, 0)
	}

	return bl
}
// Show updates the LEDs with the values from SetPixel/Clear.
Show updates the LEDs with the values from SetPixel/Clear.
// Show updates the LEDs with the values from SetPixel / Clear .
func (bl *Blinkt) Show() *Blinkt {
	for i := 0; i < 4; i++ {
		bl.writeByte(0)
	}
	for p := range bl.pixels {
		brightness := bl.pixels[p][brightnessIndex]
		r := bl.pixels[p][redIndex]
		g := bl.pixels[p][greenIndex]
		b := bl.pixels[p][blueIndex]
		bitwise := 224
		bl.writeByte(bitwise | brightness)
		bl.writeByte(b)
		bl.writeByte(g)
		bl.writeByte(r)
	}
	for i := 0; i < 4; i++ {
		bl.writeByte(0)
	}
	gpio.DigitalWrite(DAT, 0)
	for i := 0; i < 4; i++ {
		gpio.DigitalWrite(CLK, 1)
		gpio.DigitalWrite(CLK, 0)
	}
	return bl
}
func ( bl * Blinkt ) Show ( ) * Blinkt { for i := 0 ; i < 4 ; i ++ { bl . writeByte ( 0 ) } for p := range bl . pixels { brightness := bl . pixels [ p ] [ brightnessIndex ] r := bl . pixels [ p ] [ redIndex ] g := bl . pixels [ p ] [ greenIndex ] b := bl . pixels [ p ] [ blueIndex ] bitwise := 224 bl . writeByte ( bitwise | brightness ) bl . writeByte ( b ) bl . writeByte ( g ) bl . writeByte ( r ) } for i := 0 ; i < 4 ; i ++ { bl . writeByte ( 0 ) } gpio . DigitalWrite ( DAT , 0 ) for i := 0 ; i < 4 ; i ++ { gpio . DigitalWrite ( CLK , 1 ) gpio . DigitalWrite ( CLK , 0 ) } return bl }
Show updates the LEDs with the values from SetPixel/Clear.
Show updates the LEDs with the values from SetPixel / Clear .
// 0b11100000 (224) // Extra 4 bits for a total of 36