PWM Blink

This tutorial shows you how to use pulse width modulation (PWM) on the UP²* board to fade an LED on and off.

What you'll learn

  • How to access the PWM pins on the UP² board
  • Use UPM* via the Arduino Create* development environment

Gather your materials

  • UP² board
  • GrovePi+* board
  • Grove* LED

This example continues on GitHub*.

For more complete information about compiler optimizations, see our Optimization Notice.