So I’m trying to learn to program in pure C and have an exercise from a book I’m using that asks me to connect to a 7 segment display using 7 digital pins. For this problem, there are a few exceptions in the use of Arduino functions to ease the learning process. I am then supposed to have it take in a character from the serial monitor and print it out onto the display.
The problem is that I can get the program to print back the character to confirm it’s receiving the variable, but the value doesn’t get recognized by the if statement, or the if statement isn’t getting executed. What am I doing wrong here?
2c.ino (1.62 KB)