A place for the self-complicating thoughts of Brett Hagman
Lofty Premises
  • Home
  • Noise
  • Showcase
  • Libraries
    • Tone
    • SoftPWM
    • MillisTimer
    • RogueSD
    • RogueMP3
    • Button
  • Workshops
    • Getting Started with Wiring and Arduino
    • Learn to Solder
  • Wiring

SoftPWM Library

I needed a library to produce a pulse-width modulated signal for an arbitrary pin on a Wiring board, so I wrote this.  It was to control a number of LEDs, giving them shades of brightness, versus just ON or OFF using digitalWrite(). You would use analogWrite(), but that is limited to a very few pins.

SoftPWM Library @ GitHub
Produces PWM signals on arbitrary pins.
Powered by Create your own unique website with customizable templates.