arduino alphabet code

Dear all,

I have to make a program that can respond to serial data coming from the PC.
When I enter a letter from the alphabet (a to y), the program should return the next letter from the alphabet.

Our professor provided us with the beginning of the code:

char getNextLetter (char L) {

  • return L+1*
    }
    void setup () {
  • Serial.begin(9600);*
    }
    void loop() {
  • if (Serial.available() >0 ) {*
  • // MY CODE*
  • }*
  • }*
  • }*

Can someone help me with this problem?

greetings Jaco.

Can someone help me with this problem?

That special someone is your professor.

Did s/he give you the code in italics?

Geeee, is i really that hard to think of what to do next? Do you understand the functions? Did you look up Serial and it's methods? It literarily took me longer to type this then it would to make the damn program...

JacoTUD:
Can someone help me with this problem?

Yes. There is a wonderful collection of members here who enjoy helping with projects like this.

What have you tried? Post that and tells us where the results differ from your expectation.
But if you put in zero effort, you will get about that same amount of help.
One area of effort you should go through is reading the sticky post at the top of this forum named How to use this forum - please read.

It covers how to post code using the code tags, and a lot of other useful tips for new members like yourself.