i need to print this char "?" what should i do ?
Learn to do a Google search.
It would have taken less than 10 seconds to find an extended ASCII code table and pull out 0xDB.
i know the code which is 219 but i dont know how to print it in arduino
Maybe:
Serial.write (219);
thanks i was using lcd.print instead of lcd. write .
can you explain me the differnce please ?
Try lcd.print('\xDB') and lcd.print("\xDB")
If you are using ad HD44780 character display, you should read its character map. The black box is probably near the end of the map, not 219. Hint: the very last couple of characters.
I figured it out with a simple program, have it cycle thru the characters printing the nu,ber below the actual character, then just use the number you found
I figured it out with a simple program,
Or read the datasheet for the device you're using.
That only works with non ebay cheapo who knows what kinda stuff, can't hurt as a one time exercise for a 2$ piece lol
winner10920:
That only works with non ebay cheapo who knows what kinda stuff, can't hurt as a one time exercise for a 2$ piece lol
I don't know what you meant by that only works or not but if a spec sheet says it works then a normal product should work. So what is your point?
Well assuming the supplier gives you a spec sheet, I remember one lcd shield I got with a mega2560 gave no details on pinouts or info on the lcd driver version so it took a little time and playing around to know how to use it
Got it. I go with the cheapest WITH spec
I figured it out with a simple program, have it cycle thru the characters printing the nu,ber below the actual character, then just use the number you found
Can you post that tool (as simple as it might be)
I don't have the exact one I used but im pretty sure it went similiar to this untested code
for(int i=0; i < 256; i++){
lcd.clear();
lcd.print(i);
lcd.setCursor(0,1);
lcd.print(i,DEC);
delay(500);
[code]
It helps if attach two buttons and make yourself away to go up and down manually, especially since its easy to turn on two pullups and attach two switches to ground then some code like this does it
[code]
Currentnumber = currentnumber + (digitalRead(up)) - (digitalRead(down));
delay(25);
Up and down would be the pin you attach a push button to, the delay will prevent you from flying up and down the numbers
and some code to contrain current number to >0 and <255 might be useful, unless you have extended ascii and like one lcd I had the extended was in the -range of numbers instead of > 255[/code][/code]