Random rows/columns in a csv file and print text with typewriter effect

What distinguishes the 2 functions is the string and the next state we go to.

So we have to clearify this when we want to unify the two.

We could move the state line out of the function two both respectively case sections

We could pass the String as parameter

[quote=“OptOut, post:64, topic:12889”]
void typeWriter1() {
[/ quote]

void typeWriterNew(String stringLocal) {

and then use stringLocal in the function

When we call the function typeWriterNew use 2 different variables as parameter: newAmount and newName

2 Likes