arduino - Getting wrong display using concatentation -


i'm using lcd library , custom characters on arduino.

the line

lcd.print(char(0) + char(1) + char(6) + char(1) + char(1) + char(2) + ' ' + char(0) + char(1) + char(1) + ' ' + char(0) + char(1) + char(1) + char(2) + ' ' + char(0) + char(1) + char(1) + char(2)); 

should display series of custom characters, instead shows

117 

what have done wrong. i'm new c/c++ have used c# lot.

ok, solved dint of creating array of chars, , passing function calls lcd.write() in loop using each element of array. not ideal, works.


Comments

Popular posts from this blog

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -

recursion - Can every recursive algorithm be improved with dynamic programming? -