mirror of https://github.com/joan2937/pigpio
Reverte added site paramezer in wave_create
This commit is contained in:
parent
71fe78aac9
commit
773378fd24
|
@ -201,7 +201,7 @@ cmdInfo_t cmdInfo[]=
|
||||||
{PI_CMD_WVBSY, "WVBSY", 101, 2, 1}, // gpioWaveTxBusy
|
{PI_CMD_WVBSY, "WVBSY", 101, 2, 1}, // gpioWaveTxBusy
|
||||||
{PI_CMD_WVCHA, "WVCHA", 197, 0, 0}, // gpioWaveChain
|
{PI_CMD_WVCHA, "WVCHA", 197, 0, 0}, // gpioWaveChain
|
||||||
{PI_CMD_WVCLR, "WVCLR", 101, 0, 1}, // gpioWaveClear
|
{PI_CMD_WVCLR, "WVCLR", 101, 0, 1}, // gpioWaveClear
|
||||||
{PI_CMD_WVCRE, "WVCRE", 112, 2, 1}, // gpioWaveCreate
|
{PI_CMD_WVCRE, "WVCRE", 101, 2, 1}, // gpioWaveCreate
|
||||||
{PI_CMD_WVDEL, "WVDEL", 112, 0, 1}, // gpioWaveDelete
|
{PI_CMD_WVDEL, "WVDEL", 112, 0, 1}, // gpioWaveDelete
|
||||||
{PI_CMD_WVGO, "WVGO" , 101, 2, 0}, // gpioWaveTxStart
|
{PI_CMD_WVGO, "WVGO" , 101, 2, 0}, // gpioWaveTxStart
|
||||||
{PI_CMD_WVGOR, "WVGOR", 101, 2, 0}, // gpioWaveTxStart
|
{PI_CMD_WVGOR, "WVGOR", 101, 2, 0}, // gpioWaveTxStart
|
||||||
|
|
2
pigpio.h
2
pigpio.h
|
@ -1933,7 +1933,7 @@ D*/
|
||||||
|
|
||||||
|
|
||||||
/*F*/
|
/*F*/
|
||||||
int gpioWaveCreate(int);
|
int gpioWaveCreate(void);
|
||||||
/*D
|
/*D
|
||||||
This function creates a waveform from the data provided by the prior
|
This function creates a waveform from the data provided by the prior
|
||||||
calls to the [*gpioWaveAdd**] functions. Upon success a wave id
|
calls to the [*gpioWaveAdd**] functions. Upon success a wave id
|
||||||
|
|
|
@ -2257,7 +2257,7 @@ class pi():
|
||||||
else:
|
else:
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
def wave_create(self, size):
|
def wave_create(self):
|
||||||
"""
|
"""
|
||||||
Creates a waveform from the data provided by the prior calls
|
Creates a waveform from the data provided by the prior calls
|
||||||
to the [*wave_add_**] functions.
|
to the [*wave_add_**] functions.
|
||||||
|
@ -2302,7 +2302,7 @@ class pi():
|
||||||
wid = pi.wave_create()
|
wid = pi.wave_create()
|
||||||
...
|
...
|
||||||
"""
|
"""
|
||||||
return _u2i(_pigpio_command(self.sl, _PI_CMD_WVCRE, size, 0))
|
return _u2i(_pigpio_command(self.sl, _PI_CMD_WVCRE, 0, 0))
|
||||||
|
|
||||||
def wave_delete(self, wave_id):
|
def wave_delete(self, wave_id):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue