Hey, I've been working on a project for school

the project: make an LCD Counter using push button, 2 buttons.. one for counting (increment +1), and the other one for resetting.
i have made it already, but for a bonus task, showing Arabic letters instead of English letters.
For Example:
In English:
Counter: 1
In Arabic:
عداد: 1

I tried using the U8b library, but my teacher says i can do it with a code instead of searching for a certain library..
How can i do that, if it's possible.

He is right but it's a bit like working out your sine tables rather than pushing a button on the calculator.
If you open the library with notepad ++, you'll probably see a lookup table of characters in hex, which are actually bitmaps in binary. I think it will be damn hard in an eastern language - as much an art as a science.

My advice - if that is a task you have been set for bonus points, forget it. You have beter things to spend your time on.
Too much effort for too little return

What LCD display do you use?

Maybe true, but if you don't say what LCD display you're using is not an easy task...
Example, if you have a regular 16x2 characters LCD you could program some custom letters (up to 8) to draw arabic ones. If you have a graphical LCD the things are a bit more complex, so if your teacher said you can do that without a library, I suppose you're using a 16x2 LCD: in this case just search for "arduino custom characters LCD 16x2" and you'll find tons of examples.

EDIT: just as an example:
http://idea-arabic.blogspot.com/2018/04/arduino-writing-arabic-font-how-to.html

You only have numbers 0-9 to use , just have a look up table to translate the numbers or increment your way through them

Based on the example given, he doesn't want to translate the numbers, but just the word "Counter". If he needs to translate the numbers, he simpy can't do it due to the 8 custom char limit (he needs 10).

Ho hum ..

Does the U8b library tell us this guy is using a graphic display?

I read the U8b library is "A graphics library with support for many different monochrome displays." but we don't know what LCD he has.

I apologize i took to long to reply, i wasnt home..
i have 16x2 LCD QAPASS

Maybe custom characters?

As I recall watching a signature being written on a check in Arabic, it is written right to left. Is that true for your project?

Yes! But it's what I already suggested on post #5 (with an example video)... :wink:

My iPad wouldn't open your link. It gave me warnings.

I was just trying to help by offering alternative information. My apologies if my action offended you. I'll be more careful if I ever attempt to help again.

Kidding? I'm absolutely not offended, but, if you think so, I suppose your iPad can't show emoticons also, so I apologise if my smiling face at the end of my sentence has not been shown... Like this: :wink: C'm on, take it easy, pal!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.