Basically I made the circuit so that when pin 11 is connected to ground, 1 is sent to a serial port. When I run the simulation on proteus, the RX pin of the arduino blinks, but nothing is shown on the display of the virtual terminal. I have tried do many things, but nothing's working. The pictures are below. Thank you.
I only want it to execute once, that's why I used the if statement and not while loop. Also arduino sorts of makes things simpler for its users, so mainly only two methods are used; the setup() where you mainly initialize your pins or, want a block of code to run once. And also loop() where the main code is usually run? At this point, I'm not sure what I'm even doing
The above code complies with the standard usage of Arduino. All 'Init' functions are placed in the Setup() to be executed just once, and the 'running forever' functions are placed in the loop().
Could it be that you're forgotten to connect the power in the simulator? As far as your code concerns, this should definitely work on a real Arduino Uno.