mirror of https://github.com/joan2937/pigpio
V60
This commit is contained in:
parent
a939b8b0e6
commit
144bd4a9e7
14
pigpio.c
14
pigpio.c
|
@ -25,7 +25,7 @@ OTHER DEALINGS IN THE SOFTWARE.
|
||||||
For more information, please refer to <http://unlicense.org/>
|
For more information, please refer to <http://unlicense.org/>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* pigpio version 59 */
|
/* pigpio version 60 */
|
||||||
|
|
||||||
/* include ------------------------------------------------------- */
|
/* include ------------------------------------------------------- */
|
||||||
|
|
||||||
|
@ -2539,8 +2539,10 @@ static void myGpioSetPwm(unsigned gpio, int oldVal, int newVal)
|
||||||
{
|
{
|
||||||
if (newOff && oldOff) /* PWM CHANGE */
|
if (newOff && oldOff) /* PWM CHANGE */
|
||||||
{
|
{
|
||||||
for (i=0; i<SUPERLEVEL; i+=realRange)
|
if (newOff != realRange)
|
||||||
mySetGpioOff(gpio, i+newOff);
|
{
|
||||||
|
for (i=0; i<SUPERLEVEL; i+=realRange) mySetGpioOff(gpio, i+newOff);
|
||||||
|
}
|
||||||
|
|
||||||
if (newOff > oldOff)
|
if (newOff > oldOff)
|
||||||
{
|
{
|
||||||
|
@ -2555,8 +2557,10 @@ static void myGpioSetPwm(unsigned gpio, int oldVal, int newVal)
|
||||||
}
|
}
|
||||||
else if (newOff) /* PWM START */
|
else if (newOff) /* PWM START */
|
||||||
{
|
{
|
||||||
for (i=0; i<SUPERLEVEL; i+=realRange)
|
if (newOff != realRange)
|
||||||
mySetGpioOff(gpio, i+newOff);
|
{
|
||||||
|
for (i=0; i<SUPERLEVEL; i+=realRange) mySetGpioOff(gpio, i+newOff);
|
||||||
|
}
|
||||||
|
|
||||||
/* schedule new gpio on */
|
/* schedule new gpio on */
|
||||||
|
|
||||||
|
|
2
pigpio.h
2
pigpio.h
|
@ -31,7 +31,7 @@ For more information, please refer to <http://unlicense.org/>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
|
|
||||||
#define PIGPIO_VERSION 59
|
#define PIGPIO_VERSION 60
|
||||||
|
|
||||||
/*TEXT
|
/*TEXT
|
||||||
|
|
||||||
|
|
14
setup.py
14
setup.py
|
@ -8,10 +8,16 @@ setup(name='pigpio',
|
||||||
author_email='joan@abyz.co.uk',
|
author_email='joan@abyz.co.uk',
|
||||||
maintainer='joan',
|
maintainer='joan',
|
||||||
maintainer_email='joan@abyz.co.uk',
|
maintainer_email='joan@abyz.co.uk',
|
||||||
url='http://abyz.co.uk/rpi/pigpio/python.html/',
|
url='http://abyz.co.uk/rpi/pigpio/python.html',
|
||||||
description='Raspberry gpio module',
|
description='Raspberry Pi GPIO module',
|
||||||
long_description='Raspberry Python module to access the pigpio daemon',
|
long_description='Raspberry Pi Python module to access the pigpio daemon',
|
||||||
download_url='http://abyz.co.uk/rpi/pigpio/pigpio.zip',
|
download_url='http://abyz.co.uk/rpi/pigpio/pigpio.zip',
|
||||||
license='unlicense.org',
|
license='unlicense.org',
|
||||||
py_modules=['pigpio']
|
py_modules=['pigpio'],
|
||||||
|
keywords=['raspberrypi', 'gpio',],
|
||||||
|
classifiers=[
|
||||||
|
"Programming Language :: Python :: 2",
|
||||||
|
"Programming Language :: Python :: 3",
|
||||||
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue