Greetings everyone,
I was using an older Arduino UNO clone and was writing code with the 2.3.4 IDE
This made it impossible to send information from the older UNO clone to the Serial Monitor - very frustrating
A Google search suggested installing the older IDE (version 1 something) and after doing that, I had zero problems with receiving output to the Serial Monitor
So, I hope this workaround will help anyone else who might encounter the same problem I was having
This little sketch (not very efficient - ha) was what I was working on to rebuild my very rusty programming skills
Note: I edited this post and moved it to the General Guidance category on 14-Feb-2025
// int i = 0;
// int j = 0;
// int k = 0;
void setup(){
Serial.begin(9600);
}
// define a function (same as a subroutine)
int myMultiplyFunction(int x, int y){
int result;
result = x * y;
return result;
delay(200);
}
void loop() {
int i = random(0, 11);
int j = random(0, 11);
int k = myMultiplyFunction(i, j);
if (k < 10) Serial.print(" ");
Serial.print(k); Serial.print(" ");
for (int i = 1; i <= k; i++){
Serial.print("X");
delay(10);
}
Serial.println();
}