Saving hex (color codes)
hi everyone,
i have been using arduinos years, have limited knowledge on how write own programs them. modify other programs find online. got strip of addressable leds radioshack price couldn't turn down. program have written works good, want modify it. uses large paragraphs of code this
i want similar, instead of having hex values numbers, want have name of color in place of hex value color. need way of telling arduino blue 0x00ff00 can refer while reading paragraph.
i have done decent amount of reading , experimenting trying work, college student , don't have ton of time figure out. tell me how this? possible want to, or need hex values there?
thanks!
i have been using arduinos years, have limited knowledge on how write own programs them. modify other programs find online. got strip of addressable leds radioshack price couldn't turn down. program have written works good, want modify it. uses large paragraphs of code this
code: [select]
progmem const unsigned long pattern_test_red[10][10]={
{0xff0000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000},
{0x000000,0xff0000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000},
{0x000000,0x000000,0xff0000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000},
{0x000000,0x000000,0x000000,0xff0000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000},
{0x000000,0x000000,0x000000,0x000000,0xff0000,0x000000,0x000000,0x000000,0x000000,0x000000},
{0x000000,0x000000,0x000000,0x000000,0x000000,0xff0000,0x000000,0x000000,0x000000,0x000000},
{0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0xff0000,0x000000,0x000000,0x000000},
{0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0xff0000,0x000000,0x000000},
{0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0xff0000,0x000000},
{0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0xff0000},
};
i want similar, instead of having hex values numbers, want have name of color in place of hex value color. need way of telling arduino blue 0x00ff00 can refer while reading paragraph.
i have done decent amount of reading , experimenting trying work, college student , don't have ton of time figure out. tell me how this? possible want to, or need hex values there?
thanks!
Arduino Forum > Using Arduino > Programming Questions > Saving hex (color codes)
arduino
Comments
Post a Comment