{PI_CMD_WVBSY, "WVBSY", 101, 2, 1}, // gpioWaveTxBusy
{PI_CMD_WVCHA, "WVCHA", 197, 0, 0}, // gpioWaveChain
{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_WVGO, "WVGO" , 101, 2, 0}, // gpioWaveTxStart
{PI_CMD_WVGOR, "WVGOR", 101, 2, 0}, // gpioWaveTxStart
/*F*/
-int gpioWaveCreate(int);
+int gpioWaveCreate(void);
/*D
This function creates a waveform from the data provided by the prior
calls to the [*gpioWaveAdd**] functions. Upon success a wave id
else:
return 0
- def wave_create(self, size):
+ def wave_create(self):
"""
Creates a waveform from the data provided by the prior calls
to the [*wave_add_**] functions.
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):
"""