To work you need to add this to your code (I use tinkercad):
void dot()
{
digitalWrite(7, HIGH);
delay(100);
digitalWrite(7, LOW);
delay(100);
}
void dash()
{
digitalWrite(7, HIGH);
delay(300);
digitalWrite(7, LOW);
delay(100);
}
void letterbreak()
{
delay(200);
}
void wordbreak()
{
delay(600);
}
↓ Read more... ↓