I am trying to make a spelling checker to see if a word is typed correct to the spelling of the actual word.
my idea is by using a few variables; 'TypedWord', 'MidTypedWord', 'RandomWord'.
TypedWord = MidTypedWord when enter is pressed so that the word typed is not always spellchecked constantly.
RandomWord is the word with correct spelling, so that later I can check by writing:
if TypedWord = RandomWord{
...
}
else {
...
}
However my issue is I want the LCD to constantly display the text typed while at the same time have MidTypedWord constantly store what is typed at itself, so when enter is pressed then it will transfer the data and check it.
Sorry I am new to arduino, so if this is a dumb or easy question that is why.
It is possible to display partial character strings at the same time they are being input. Sending a string to be printed or displayed does not change it.
You should be using C-strings (zero terminated character arrays) for input rather than Strings, as Strings cause AVR-based Arduinos to misbehave and often crash.
Make sure that a C-string always has the terminating zero byte, and you will be fine.
I'd guess you have a two stage process. In the first stage the newly typed letter is added to the end of a character array. Immediately the letter is added, the display is completely refreshed with the (partial) word which appears in the character array.
How are you going to represent the dictionary against which you are going to check the newly entered words for correctness?
no problem. in ArduinoIDE you cann add needed library to handle particular devices of your project, like LCD, KeyPad. Then open corresponding example and look how it will controlled. When some command is not known you can googling for reference description and other examples of this command use. after this read about using of arrays and note that char array must be length+1 if handled as text sequence.