mirror of
https://github.com/clockworkpi/WiringPi.git
synced 2025-12-14 00:28:52 +01:00
commit
39d53628e6
@ -83,11 +83,11 @@ static PI_THREAD (softPwmThread)
|
|||||||
|
|
||||||
if (mark != 0)
|
if (mark != 0)
|
||||||
digitalWrite (pin, HIGH) ;
|
digitalWrite (pin, HIGH) ;
|
||||||
delayMicroseconds (mark * 100) ;
|
delayMicroseconds (mark * PULSE_TIME) ;
|
||||||
|
|
||||||
if (space != 0)
|
if (space != 0)
|
||||||
digitalWrite (pin, LOW) ;
|
digitalWrite (pin, LOW) ;
|
||||||
delayMicroseconds (space * 100) ;
|
delayMicroseconds (space * PULSE_TIME) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
return NULL ;
|
return NULL ;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user