flashDotOrDash" has not being defined - yet the function script is below.

Hi all,

I'm new to C, i have used python.just working through a book and have coded a Morse code translator that checks the bits held in the buffer if greater then zero it converts the letters to dot dashes by reading from an array

The problem i have is that I'm getting a error that says the "flashDotOrDash" has not being defined - yet the function script is below.

I would have though that functions needed defining before, but in many of the examples the functions are coded after the main Loop?

Many Thanks for any help / advice :slight_smile:

void flashSequence (char* sequence)
{
int i = 0;
while (sequence != '\0');

  • {*
    flashDotOrDash(sequence*);[/b]*
    * i++;*
    * }*
    _ delay(dotDelay * 3); //gap delay_
    }
    void flashDotOrDash(char dotOrDash);
    {
    * digitalWrite(ledPin, High);*
    * if (dotOrDash == '.');*

// code continues after

Check your semi colons ;

Post all your code and post it correctly please read this How to use this forum