Week 3 Introducing Python Coding, Pulse Width Modulation

 Python Coding

Program set out

  • imports
  • constants
  • global variables
  • functions
  • main block

Program Exercises

  • Comments
  • Constants ( Why we use them,   Where do they go)
  • Variables
  • Data types
  • Operations
  • Micropython is different to standard python.  They have to pack a lot into a little microcontroller.  So if something works on your local machine interpreter but not on the pico have a look in the differences doco for work arounds
  • Work through the exercises in basics/variables.py

Pulse Width Modulation (PWM)

Comments

Popular posts from this blog

Week 1 Setup. Using Thonny

Week 2 Resistors, Using the Solderless Breadboard, Turning an LED on and off using the Pico