This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if let hexBackgroundColor = colorsToUse.background.toHex() { | |
print("BACKGROUND: \(hexBackgroundColor)") | |
let backgroundRed = self.getRed(forColor: colorsToUse.background) | |
let backgroundGreen = self.getGreen(forColor: colorsToUse.background) | |
let backgroundBlue = self.getBlue(forColor: colorsToUse.background) | |
print("RED: \(backgroundRed)") | |
if let red = backgroundRed, let blue = backgroundBlue, let green = backgroundGreen { | |
let redBackgroundStr = self.stringForRGBValue(value: red) | |
print("RED STR: \(redBackgroundStr)") | |
let greenBackgroundStr = self.stringForRGBValue(value: green) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Adafruit IO Subscription Example | |
// | |
// Adafruit invests time and resources providing this open source code. | |
// Please support Adafruit and open source hardware by purchasing | |
// products from Adafruit! | |
// | |
// Written by Todd Treece for Adafruit Industries | |
// Copyright (c) 2016 Adafruit Industries | |
// Licensed under the MIT license. | |
// |