How can I send a color value to my BlueTooth class? For instance, in the code below, how could I send the hex value of a text1 color attribute? I'm using
- Github.com/harrygoodwin/arduino-android-sensor
- Github.com/trevorshannon/arduinocolor
Code:
private void updateTextAreas(int col) {
int[] colBits = {Color.red(col),Color.green(col),Color.blue(col)};
//set the text & color background
text1.setBackgroundColor(col);
if (isDarkColor(colBits)) {
text1.setTextColor(Color.WHITE); }
else {
text1.setTextColor(Color.BLACK); }
}