Programming Concepts - Input & Output

Inputs and Outputs

Inputs and outputs allow interactions between the real world and a digital device. Without them, we wouldn’t see the results of our wonderful programming.

Going back on our ‘cup of tea’ analogy, although they may not seem obvious, inputs and outputs play a huge role in the process. Outputting the correct movements in our body to fill up the kettle, using our hearing (input) to register what drink somebody would like, then storing that as a variable. Even asking the questions of whether you would like a drink in the first places in an output!

In this example, when the input is Hi (a switched pressed for example), the motor (output) is turned on. When the switch isn’t pressed, the motor will turn off.

Apart from the motor status LEDs, all inputs and outputs will be Crumbs (components) that you have connected yourself