Skip to content

Instantly share code, notes, and snippets.

View petrihakkinen's full-sized avatar

Petri Häkkinen petrihakkinen

  • Almost Human Ltd. / Ctrl Alt Ninja Ltd.
  • Finland
  • X @petrih3
View GitHub Profile
// Multiplexed PWM RGB Led Demo
// By Petri Hakkinen
// 24th November 2014
//
// Arduino Uno driving a single RGB led with only one resistor.
//
// Make the following connections:
// * Connect Arduino pins D2,D3,D3 to anodes of a RGB led.
// * Connect cathode of the RGB led to 330 ohm resistor.
// * Connect the other end of the resistor to ground.