Remove duplicate pin mode.
This commit is contained in:
parent
da937ecde5
commit
69bf638c39
@ -5,7 +5,6 @@
|
|||||||
// dutyCycle (byte) - PWM period from 0 - 100.
|
// dutyCycle (byte) - PWM period from 0 - 100.
|
||||||
void slowPWM(byte outputPin, byte dutyCycle, unsigned long period)
|
void slowPWM(byte outputPin, byte dutyCycle, unsigned long period)
|
||||||
{
|
{
|
||||||
pinMode(outputPin, OUTPUT);
|
|
||||||
static byte outputState = LOW;
|
static byte outputState = LOW;
|
||||||
static unsigned long lastSwitchTime = 0;
|
static unsigned long lastSwitchTime = 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user