Coding on your Raspberry Pi

Thonny

Untitled

  1. Up here are the main options for the code we've written. We can (In order):
    1. Create a New blank File
    2. Open a File
    3. Save the current File
    4. Run the current File
    5. Run in Debug mode (The next 3 images relate to debugging mode which is basically manually going through the code to test at each step. Don't stress too much about these features as it is normally for larger projects and we will cover them later)
    6. Stop the current script, only works when the solution is running
  2. This section here is where we do our coding. Anything we write here will be executed when we press the green start button at the top of the screen
  3. This section is dedicated to our outputs. Anything we print in our code will appear down here. We can also write single lines of code here to be executed, such as “print(12*2)” which will print 24 below.

GPIO Pins

Untitled