# RGB value 0 to 255 value

**URL:** <https://forum.arduino.cc/t/rgb-value-0-to-255-value/356007>\
**Category:** Programming\
**Created:** [January 2, 2016, 2:57pm UTC](https://forum.arduino.cc/t/rgb-value-0-to-255-value/356007 "2016-01-02T14:57:32Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![shell\_traywnd](https://avatars.discourse-cdn.com/v4/letter/s/f08c70/32.png) [@shell\_traywnd](https://forum.arduino.cc/u/shell_traywnd)\
**Post date:** [January 2, 2016, 2:57pm UTC](https://forum.arduino.cc/t/rgb-value-0-to-255-value/356007/1 "2016-01-02T14:57:32Z")

</div>

hi guys

i use thisapplication in my smartphone:

> <https://play.google.com/store/apps/details?id=com.techbitar.android.Andruino>
>
> ArduDroid: A simple 2-Way Bluetooth-based Android Controller for Arduino UN...

and in my arduino i use this code:

```cpp
const int redPin = 3;
const int greenPin = 5;
const int bluePin = 6;

void setup() {
  // initialize serial:
  Serial.begin(9600);
  // make the pins outputs:
  pinMode(redPin, OUTPUT);
  pinMode(greenPin, OUTPUT);
  pinMode(bluePin, OUTPUT);

}

void loop() {
  // if there's any serial available, read it:
  if (Serial.available() > 0) 
  {
    int red = Serial.parseInt();

      analogWrite(redPin, red);
      analogWrite(greenPin, 0);
      analogWrite(bluePin, 0);

  }
  Serial.println(Serial.parseInt());
  delay(100);
}

```

i get never 1,2,3,4,5,6,7,8,9,10,11,12,13..................,255

somtimes i get 10 or 100 or 240... but never 1,2,3,4,5,6,7,8,9,10,11,12,13..................,255 with my bluetooth HC-05

what ill change in my arduino code ? thanks

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [January 2, 2016, 3:06pm UTC](https://forum.arduino.cc/t/rgb-value-0-to-255-value/356007/2 "2016-01-02T15:06:36Z")

</div>

> what ill change in my arduino code ? thanks

Look at that code. If there is serial data to read, you read the next int, and assign the result to red, and to a pin.

Then, you read the next int, even if there isn't anything, and pretend that that is useful information to send back to the phone.

Please explain WHY you do that.

How are you using the app to send data?

---

<div class="post-metadata">

**Author:** ![BulldogLowell](https://avatars.discourse-cdn.com/v4/letter/b/22d042/32.png) [@BulldogLowell](https://forum.arduino.cc/u/BulldogLowell)\
**Post date:** [January 2, 2016, 3:06pm UTC](https://forum.arduino.cc/t/rgb-value-0-to-255-value/356007/3 "2016-01-02T15:06:56Z")

</div>

> shell\_traywnd:  
> what ill change in my arduino code ? thanks

you need to know how data is being transmitted to the bluetooth device in order to build a parsing algorithm.

there is a whole parsing sketch on the website, did you start with that?

---

<div class="post-metadata">

**Author:** ![shell\_traywnd](https://avatars.discourse-cdn.com/v4/letter/s/f08c70/32.png) [@shell\_traywnd](https://forum.arduino.cc/u/shell_traywnd)\
**Post date:** [January 2, 2016, 3:35pm UTC](https://forum.arduino.cc/t/rgb-value-0-to-255-value/356007/4 "2016-01-02T15:35:21Z")

</div>

hi

relax guys am already tested this code:

```cpp
int R = 6;
int G = 5;
int B = 3;

int number = 0;

void setup() {
  pinMode(R, OUTPUT);
  pinMode(G, OUTPUT);
  pinMode(B, OUTPUT);  
  Serial.begin(9600);     
}
void loop() {
while(Serial.available() > 0)
{
number = Serial.read();
Serial.println(number);
delay(10);
}
analogWrite(R, number);
analogWrite(G, 0);
analogWrite(B, 0);

  delay(100); 
}

```

without any result 😕

i want turn on the red color from number 1 then 2 then3... then 255 with the seekbar not with a simple button

[http://tr1.cbsistatic.com/hub/i/2015/05/07/e90584b3-f4ab-11e4-940f-14feb5cc3d2a/seekbar\_2.png](http://tr1.cbsistatic.com/hub/i/2015/05/07/e90584b3-f4ab-11e4-940f-14feb5cc3d2a/seekbar_2.png)

---

<div class="post-metadata">

**Author:** ![anon85221860](https://avatars.discourse-cdn.com/v4/letter/a/59ef9b/32.png) [@anon85221860](https://forum.arduino.cc/u/anon85221860)\
**Post date:** [January 2, 2016, 3:52pm UTC](https://forum.arduino.cc/t/rgb-value-0-to-255-value/356007/5 "2016-01-02T15:52:38Z")

</div>

> shell\_traywnd:  
> relax guys am already tested this code... without any result 😕

**No** result - at all?

```arduino
byte R = 6;
byte G = 5;
byte B = 3;
byte number = 0;
void setup() 
{
  pinMode(R, OUTPUT);
  pinMode(G, OUTPUT);
  pinMode(B, OUTPUT);  
  Serial.begin(9600);     
}
void loop() 
{
  if (Serial.available() > 0)
  {
    number = Serial.read();
    Serial.println(number, DEC);
    analogWrite(R, number);
    analogWrite(G, 0);
    analogWrite(B, 0);
  }
}

```

---

<div class="post-metadata">

**Author:** ![Johnny010](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/johnny010/32/1099305_2.png) [@Johnny010](https://forum.arduino.cc/u/Johnny010)\
**Post date:** [January 2, 2016, 4:00pm UTC](https://forum.arduino.cc/t/rgb-value-0-to-255-value/356007/6 "2016-01-02T16:00:53Z")

</div>

Please dump what the phone sends here so we can see what the phone actually "sends".

Use this code:

```cpp
void setup(){
Serial.begin(115200);
}

void loop(){

if (Serial.available){

Serial.println(Serial.read());

}

```

It may not be just sending a single byte...it may have some other protocol stuff...

---

<div class="post-metadata">

**Author:** ![Johnny010](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/johnny010/32/1099305_2.png) [@Johnny010](https://forum.arduino.cc/u/Johnny010)\
**Post date:** [January 2, 2016, 4:05pm UTC](https://forum.arduino.cc/t/rgb-value-0-to-255-value/356007/7 "2016-01-02T16:05:12Z")

</div>

Are you 100% sure of the baudrates btw?

---

<div class="post-metadata">

**Author:** ![ShapeShifter](https://avatars.discourse-cdn.com/v4/letter/s/bbce88/32.png) [@ShapeShifter](https://forum.arduino.cc/u/ShapeShifter)\
**Post date:** [January 2, 2016, 4:35pm UTC](https://forum.arduino.cc/t/rgb-value-0-to-255-value/356007/8 "2016-01-02T16:35:49Z")

</div>

> Johnny010:  
> It may not be just sending a single byte...it may have some other protocol stuff...

It sure looks like that's correct. The code in this post looks nothing like the example code: [TechBitar - Home](http://www.techbitar.com/ardudroid-simple-bluetooth-control-for-arduino-and-android.html)

Just a quick look at the example shows that the code is first looking for a start character, then a command character, and then more data. That's not happening in this sketch.

shell\_traywnd: Have you read the documentation about the code that runs on the Arduino side? Do you understand it? If not, it's too early to be trying to write a sketch, you need to understand what's going on before you get to that point.

---

<div class="post-metadata">

**Author:** ![Johnny010](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/johnny010/32/1099305_2.png) [@Johnny010](https://forum.arduino.cc/u/Johnny010)\
**Post date:** [January 2, 2016, 4:50pm UTC](https://forum.arduino.cc/t/rgb-value-0-to-255-value/356007/9 "2016-01-02T16:50:18Z")

</div>

> Johnny010:  
> Please dump what the phone sends here so we can see what the phone actually "sends".
> 
> Use this code:
> 
> ```arduino
> void setup(){
> 
> ```

Serial.begin(115200);  
}

void loop(){

if (Serial.available){

Serial.println(Serial.read(),HEX);

}

> ```arduino
> 
> It may not be just sending a single byte...it may have some other protocol stuff...
> 
> ```

Quick edit...I hate whitespace.

---

<div class="post-metadata">

**Author:** ![Johnny010](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/johnny010/32/1099305_2.png) [@Johnny010](https://forum.arduino.cc/u/Johnny010)\
**Post date:** [January 2, 2016, 4:53pm UTC](https://forum.arduino.cc/t/rgb-value-0-to-255-value/356007/10 "2016-01-02T16:53:52Z")

</div>

Anyway, the app the guy has written sends multiple bytes.

IMHO, it is a bit messy in a way...but it works. You may need more experience first before trying a protocol based comms system.

Try just learning about sending a simple 1 byte via the bluetooth first....before dealing with "strings" of bytes.

---

<div class="post-metadata">

**Author:** ![lloyddean](https://avatars.discourse-cdn.com/v4/letter/l/439d5e/32.png) [@lloyddean](https://forum.arduino.cc/u/lloyddean)\
**Post date:** [January 2, 2016, 5:00pm UTC](https://forum.arduino.cc/t/rgb-value-0-to-255-value/356007/11 "2016-01-02T17:00:32Z")

</div>

Really? Notice anything wrong?

```cpp
void setup(){Serial.begin(115200);}void loop(){if(Serial.available){Serial.println(Serial.read(),HEX);}

```

How about now?

```cpp
void setup()
{
    Serial.begin(115200);
}

void loop()
{
    if ( Serial.available )
    {
        Serial.println(Serial.read(), HEX);
    }

```

---

<div class="post-metadata">

**Author:** ![Johnny010](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/johnny010/32/1099305_2.png) [@Johnny010](https://forum.arduino.cc/u/Johnny010)\
**Post date:** [January 2, 2016, 5:40pm UTC](https://forum.arduino.cc/t/rgb-value-0-to-255-value/356007/12 "2016-01-02T17:40:37Z")

</div>

Ok....good mess up.

```cpp
#include <SoftwareSerial.h>

// Connect bluetooth module on pins 9 and 10 (Rx Tx)
SoftwareSerial bluetoothser(9,10);

void setup()
{
    Serial.begin(115200);
    bluetoothser.begin(9600);
   
}

void loop()
{
  
    if ( bluetoothser.available() )
    {
        Serial.println(bluetoothser.read(), HEX);
    }
}

```

---

<div class="post-metadata">

**Author:** ![shell\_traywnd](https://avatars.discourse-cdn.com/v4/letter/s/f08c70/32.png) [@shell\_traywnd](https://forum.arduino.cc/u/shell_traywnd)\
**Post date:** [January 2, 2016, 8:25pm UTC](https://forum.arduino.cc/t/rgb-value-0-to-255-value/356007/13 "2016-01-02T20:25:44Z")

</div>

i do a video on youtube guys

[![](https://europe1.discourse-cdn.com/arduino/original/4X/2/1/6/216df1af1085d0cf9504d5d89bb71129a87ac19d.jpeg "video test") ](https://www.youtube.com/watch?v=h0HF9Y_3l48)

i still dosn't know why i havent the values 😕

thanks

---

<div class="post-metadata">

**Author:** ![Johnny010](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/johnny010/32/1099305_2.png) [@Johnny010](https://forum.arduino.cc/u/Johnny010)\
**Post date:** [January 2, 2016, 9:15pm UTC](https://forum.arduino.cc/t/rgb-value-0-to-255-value/356007/14 "2016-01-02T21:15:01Z")

</div>

> shell\_traywnd:  
> i do a video on youtube guys
> 
> [https://youtu.be/h0HF9Y\_3l48](https://youtu.be/h0HF9Y_3l48)
> 
> i still dosn't know why i havent the values 😕
> 
> thanks

Probably because you still have not made the necessary code corrections.

---

<div class="post-metadata">

**Author:** ![shell\_traywnd](https://avatars.discourse-cdn.com/v4/letter/s/f08c70/32.png) [@shell\_traywnd](https://forum.arduino.cc/u/shell_traywnd)\
**Post date:** [January 2, 2016, 9:29pm UTC](https://forum.arduino.cc/t/rgb-value-0-to-255-value/356007/15 "2016-01-02T21:29:45Z")

</div>

thanks for your reply

i copy and past your code

```cpp
#include <SoftwareSerial.h>

// Connect bluetooth module on pins 9 and 10 (Rx Tx)
SoftwareSerial bluetoothser(9,10);

void setup()
{
    Serial.begin(115200);
    bluetoothser.begin(9600);
   
}

void loop()
{
  
    if ( bluetoothser.available() )
    {
        Serial.println(bluetoothser.read(), HEX);
    }
}

```

I connect the bluetooth module on

RX to pin ~9  
TX to pin ~10

and still have no nombers 😢

---

<div class="post-metadata">

**Author:** ![shell\_traywnd](https://avatars.discourse-cdn.com/v4/letter/s/f08c70/32.png) [@shell\_traywnd](https://forum.arduino.cc/u/shell_traywnd)\
**Post date:** [January 2, 2016, 11:04pm UTC](https://forum.arduino.cc/t/rgb-value-0-to-255-value/356007/16 "2016-01-02T23:04:16Z")

</div>

i get nombres now but there is no 0,1,2,3,4,5,6,7......255 still the same problem with this code:

```cpp
#include <SoftwareSerial.h>

const int redPin = 3;
const int greenPin = 5;
const int bluePin = 6;

// Connect bluetooth module on pins 9 and 10 (Rx Tx)
SoftwareSerial bluetoothser(9,10);

void setup()
{
    Serial.begin(115200);
    bluetoothser.begin(9600);
   
}

void loop()
{
  
    if ( bluetoothser.available() )
    {
        Serial.println(bluetoothser.read(), DEC);

      analogWrite(redPin, bluetoothser.read());
      analogWrite(greenPin, 0);
      analogWrite(bluePin, 0);
    }
}

```

i record a video here:

[![](https://europe1.discourse-cdn.com/arduino/original/4X/7/0/1/701234e9e8e13d8f2522219119af388b20f40272.jpeg "20160101 223833") ](https://www.youtube.com/watch?v=vULB7-FnYpQ)

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [January 2, 2016, 11:07pm UTC](https://forum.arduino.cc/t/rgb-value-0-to-255-value/356007/17 "2016-01-02T23:07:56Z")

</div>

You check to see if there's at least one character to read, and then read two characters.  
Don't do that.

---

<div class="post-metadata">

**Author:** ![ShapeShifter](https://avatars.discourse-cdn.com/v4/letter/s/bbce88/32.png) [@ShapeShifter](https://forum.arduino.cc/u/ShapeShifter)\
**Post date:** [January 2, 2016, 11:13pm UTC](https://forum.arduino.cc/t/rgb-value-0-to-255-value/356007/18 "2016-01-02T23:13:58Z")

</div>

The numbers that are being printed looks like ASCII codes, but you are treating them as raw binary values. Furthermore, you code is reading a character and printing it as a decimal number, then reading ANOTHER character and passing that value to AnalogWrite(). That's going to go one of two ways: either another character is not yet ready, in which case AnalogWrite() will receive a value of -1, or a character will be available, in which case it won't get echoed to the screen so you won't be sure what you're actually getting.

PLEASE load and run the sketch that Johnny010 provided. Then, copy the text from the Serial Monitor window and post it. Don't take a video of it, don't attach a screen capture. Just copy and paste the text.

We already know that you are slowly sliding the slider. We need to see the exact data that is being received, character for character, and then we can tell you what you are getting. I have my suspicions on what is being sent, but I can't be sure until we can clearly see _all_ of the data.

---

<div class="post-metadata">

**Author:** ![shell\_traywnd](https://avatars.discourse-cdn.com/v4/letter/s/f08c70/32.png) [@shell\_traywnd](https://forum.arduino.cc/u/shell_traywnd)\
**Post date:** [January 2, 2016, 11:57pm UTC](https://forum.arduino.cc/t/rgb-value-0-to-255-value/356007/19 "2016-01-02T23:57:44Z")

</div>

thank you for your reply, i get this:  
(code tags added by moderator who got tired of scrolling thru this long list)

```cpp
2A
31
31
7C
30
33
7C
31
35
23
2A
31
31
7C
30
33
7C
31
36
23
2A
31
31
7C
30
33
7C
31
37
23
2A
31
1
35

2A

31

33

1
36

2A

31
7C
30
33
7C
31
38
23
2A
31
31
7C
30
33
7C
31
39
23
2A
31
31
7C
30
33
7C
32
30
23
2A
31
31
7C
30
33
7C
32
32
23
2A
31
31
7C
30
33
7C
32
33
23
2A
31
31
7C
30
33
7C
32
35
23
2A
31
31
7C
30
33
7C
32
36
23
2A
31
31
7C
30
33
7C
32
37
23
2A
31
31
7C
30
33
7C
32
38
23
2A
31
31
7C
30
33
7C
32
39
23
2A
31
31
7C
30
33
7C
23
31
7C
33
32
2A
31
30
7C
23
31
7C
33
34
2A
31
7C
30
33
7C
33
35
23
2A
31
31
7C
33
33
23
31
30
7C
37
31
7C
33
33
23
31
30
7C
39
31
7C
30
33
7C
34
30
23
2A
31
31
7C
30
7C
31
2A
31
31
7C
30
33
7C
34
32
23
2A
31
31
7C
30
33
7C
34
33
23
2A
31
31
7C
30
33
7C
34
35
23
2A
31
31
7C
30
33
7C
34
36
23
2A
31
31
7C
30
33
7C
34
38
23
2A
31
31
7C
30
33
7C
34
39
23
2A
31
31
7C
30
33
7C
35
32
23
2A
31
31
7C
30
33
7C
35
33
23
2A
31
31
7C
30
33
7C
35
34
23
2A
31
31
7C
30
33
7C
35
35
23
2A
31
31
7C
30
33
7C
35
38
23
2A
31
31
7C
30
33
7C
36
30
23
2A
31
31
7C
30
33
7C
36
33
23
2A
31
31
7C
30
33
7C
36
36
23
2A
31
31
7C
30
33
7C
36
38
23
2A
31
31
7C
30
33
7C
36
39
23
2A
31
31
7C
30
33
7C
37
30
23
2A
31
31
7C
30
33
7C
37
31
23
2A
31
31
7C
30
33
7C
37
32
23
2A
31
31
7C
30
33
7C
37
33
23
2A
31
31
7C
30
33
7C
37
34
23
2A
31
31
7C
30
33
7C
37
35
23
2A
31
31
7C
30
33
7C
37
36
23
2A
31
31
7C
30
33
7C
37
37
23
2A
31
31
7C
30
33
7C
37
38
23
2A
31
31
7C
30
33
7C
37
39
23
2A
31
31
7C
30
33
7C
38
30
23
2A
31
31
7C
30
33
7C
38
31
23
2A
31
31
7C
30
33
7C
38
32
23
2A
31
31
7C
30
33
7C
38
33
23
2A
31
31
7C
30
33
7C
38
35
23
2A
31
31
7C
30
33
7C
38
36
23
2A
31
31
7C
30
33
7C
38
37
23
2A
31
31
7C
30
33
7C
38
38
23
2A
31
31
7C
30
33
7C
38
39
23
2A
31
31
7C
30
33
7C
39
30
23
2A
31
31
7C
30
33
7C
39
31
23
2A
31
31
7C
30
33
7C
39
32
23
2A
31
31
7C
30
33
7C
39
33
23
2A
31
31
7C
30
33
7C
39
34
23
2A
31
31
7C
30
33
7C
39
35
23
2A
31
31
7C
30
33
7C
39
36
23
2A
31
31
7C
30
33
7C
39
38
23
2A
31
31
7C
30
33
7C
39
39
23
2A
31
31
7C
30
33
7C
31
30
30
23
2A
31
31
7C
30
33
7C
31
30
31
23
2A
31
31
7C
30
33
7C
31
30
32
23
2A
31
31
7C
30
33
7C
31
30
33
23
2A
31
31
7C
30
33
7C
31
30
34
23
2A
31
31
7C
30
33
7C
31
30
35
23
2A
31
31
7C
30
33
7C
31
30
36
23
2A
31
31
7C
30
33
7C
31
30
37
23
2A
31
31
7C
30
33
7C
31
30
39
23
2A
31
31
7C
30
33
7C
31
31
31
23
2A
31
31
7C
30
33
7C
31
31
32
23
2A
31
31
7C
30
33
7C
31
31
34
23
2A
31
31
7C
30
33
7C
31
31
35
23
2A
31
31
7C
30
33
7C

1
31
7C
30
33
7C
31
31
35
23

1
31

0
33

31
31
36
23
2A
31
31
7C
30
33
7C
31
31
38
23
2A
31
31
7C
30
33
7C
31
32
31
23
2A
31
31
7C
30
33
7C
31
32
32
23
2A
31
31
7C
30
33
7C
31
32
33
23
2A
31
31
7C
30
33
7C
31
32
34
23
2A
31
31
7C
30
33
7C
31
32
36
23
2A
31
31
7C
30
33
7C
31
32
38
23
2A
31
31
7C
30
33
7C
31
32
39
23
2A
31
31
7C
30
33
7C
31
33
32
23
2A
31
31
7C
30
33
7C
31
33
33
23
2A
31
31
7C
30
33
7C
31
33
35
23
2A
31
31
7C
30
33
7C
31
33
36
23
2A
31
31
7C
30
33
7C
31
33
37
23
2A
31
31
7C
30
33
7C
31
33
38
23
2A
31
31
7C
30
33
7C
31
33
39
23
2A
31
31
7C
30
33
7C
31
34
30
23
2A
31
31
7C
30
33
7C
31
34
31
23
2A
31
31
7C
30
33
7C
31
34
32
23
2A
31
31
7C
30
33
7C
31
34
33
23
2A
31
31
7C
30
33
7C
31
34
34
23
2A
31
31
7C
30
33
7C
31
34
36
23
2A
31
31
7C
30
33
7C
31
34
37
23
2A
31
31
7C
30
33
7C
31
34
38
23
2A
31
31
7C
30
33
7C
31
35
30
23
2A
31
31
7C
30
33
7C
31
35
31
23
2A
31
31
7C
30
33
7C
31
35
34
23
2A
31
31
7C
30
33
7C
31
35
37
23
2A
31
31
7C
30
33
7C
31
35
38
23
2A
31
31
7C
30
33
7C
31
36
31
23
2A
31
31
7C
30
33
7C
31
36
32
23
2A
31
31
7C
30
33
7C
31
36
36
23
2A
31
31
7C
30
33
7C
31
36
37
23
2A
31
31
7C
30
33
7C
31
36
38
23
2A
31
31
7C
30
33
7C
31
36
39
23
2A
31
31
7C
30
33
7C
31
37
30
23
2A
31
31
7C
30
33
7C
31
37
32
23
2A
31
31
7C
30
33
7C
31
37
33
23
2A
31
31
7C
30
33
7C
31
37
36
23
2A
31
31
7C
30
33
7C
31
37
37
23
2A
31
31
7C
30
33
7C
31
37
38
23
2A
31
31
7C
30
33
7C
31
38
31
23
2A
31
31
7C
30
33
7C
31
38
34
23
2A
31
31
7C
30
33
7C
31
38
36
23
2A
31
31
7C
30
33
7C
31
38
39
23
2A
31
31
7C
30
33
7C
31
39
32
23
2A
31
31
7C
30
33
7C
31
39
33
23
2A
31
31
7C
30
33
7C
31
39
36
23
2A
31
31
7C
30
33
7C
31
39
37
23
2A
31
31
7C
30
33
7C
32
30
30
23
2A
31
31
7C
30
33
7C
32
30
32
23
2A
31
31
7C
30
33
7C
32
30
33
23
2A
31
31
7C
30
33
7C
32
30
34
23
2A
31
31
7C
30
33
7C
32
30
35
23
2A
31
31
7C
30
33
7C
32
30
36
23
2A
31
31
7C
30
33
7C
32
30
38
23
2A
31
31
7C
30
33
7C
32
31
30
23
2A
31
31
7C
30
33
7C
32
31
31
23
2A
31
31
7C
30
33
7C
32
31
34
23
2A
31
31
7C
30
33
7C
32
31
36
23
2A
31
31
7C
30
33
7C
32
32
34
23
2A
31
31
7C
30
33
7C
32
32
37
23
2A
31
31
7C
30
33
7C
32
32
38
23
2A
31
31
7C
30
33
7C
32
33
30
23
2A
31
31
7C
30
33
7C
32
33
31
23
2A
31
31
7C
30
33
7C
32
33
33
23
2A
31
31
7C
30
33
7C
32
33
34
23
2A
31
31
7C
30
33
7C
32
33
35
23
2A
31
31
7C
30
33
7C
32
33
37
23
2A
31
31
7C
30
33
7C
32
33
38
23

1
31

0
33

33
37

31

33

33
38

2A
31
31
7C
30
33
7C
32
33
39
23
2A
31
31
7C
30
33
7C
32
34
30
23
2A
31
31
7C
30
33
7C
32
34
31
23
2A
31
31
7C
30
33
7C
32
34
32
23
2A
31
31
7C
30
33
7C
32
34
34
23
2A
31
31
7C
30
33
7C
32
34
35
23
2A
31
31
7C
30
33
7C
32
34
37
23
2A
31
31
7C
30
33
7C
32
34
38
23
2A
31
31
7C
30
33
7C
32
34
39
23
2A
31
31
7C
30
33
7C
32
35
30
23
2A
31
31
7C
30
33
7C
32
35
32
23
2A
31
31
7C
30
33
7C
32
35
33
23
2A
31
31
7C
30
33
7C
32
35
35
23

```

---

<div class="post-metadata">

**Author:** ![LarryD](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/larryd/32/215550_2.png) [@LarryD](https://forum.arduino.cc/u/LarryD)\
**Post date:** [January 3, 2016, 12:19am UTC](https://forum.arduino.cc/t/rgb-value-0-to-255-value/356007/20 "2016-01-03T00:19:03Z")

</div>

@OP  
Pasting 1800 lines into a thread is not smart!  
Edit: Code tags is more responsible, thanks to the moderator.

[Next page](https://forum.arduino.cc/t/rgb-value-0-to-255-value/356007.md?page=2)
