Blockly Simulator

bhanlon56

New Member
This code is produced from the Blockly Cloud Programmer.
I'm using Blockly to demonstrate picaxe to a group using a mixture of windows and mac machines.
I want to demonstrate the use of a digital input to control program flow.
Code:
main:
    do while pinC.4 = 1
      high C.0
      pause 5000
      low C.0
      pause 5000
    loop
    stop
Clicking input c.4 to simulate a high, the pin goes yellow. However, clicking the run button of the simulator removes the high input so nothing happens.
Clicking run first to start the simulation and then clicking c.4 to send it high also does not work.
How do I get the simulator to show the use of a digital input?
 

Attachments

Technical

Technical Support
Staff member
Try putting a pause 500 or similar after start. This gives you time to click on the input after the simulation starts.
 
Top