Double arithmetic [SOLVED]


hi,

i'm beginner can work way trough... need though.

on arduino uno want control rgb led hsv. have found library https://github.com/mathertel/onebutton looks working.
i want dim led via v value in hsv convert rgb analogwrite.

problem library wants double variable v.
and code not working.

code: [select]
for (double x = 0.00; x <= hsv[3]; x + 0.01){
serialprint(x);


the program never exit loop , x never increases... print out 0.00

i appreciate help!

it might work better this:
code: [select]
for (double x = 0.00; x <= hsv[3]; x += 0.01){

pete


Arduino Forum > Using Arduino > Programming Questions > Double arithmetic [SOLVED]


arduino

Comments

Popular posts from this blog

opencv3, tbb and rasp pi 2 - Raspberry Pi Forums

small ethernet problem - Raspberry Pi Forums

Multithumb configuration params not working? - Joomla! Forum - community, help and support