For more information, please refer to <http://unlicense.org/>
*/
-/* pigpio version 60 */
+/* pigpio version 61 */
/* include ------------------------------------------------------- */
PWMClockInited = 0;
}
+ if (wave_mode < PI_WAVE_MODE_ONE_SHOT_SYNC)
+ {
+ dmaOut[DMA_CS] = DMA_CHANNEL_RESET;
+ dmaOut[DMA_CONBLK_AD] = 0;
+ }
+
p = rawWaveCBAdr(waveInfo[wave_id].topCB);
if ((wave_mode & 1) == PI_WAVE_MODE_ONE_SHOT)
#include <stdint.h>
#include <pthread.h>
-#define PIGPIO_VERSION 60
+#define PIGPIO_VERSION 61
/*TEXT
/* Files, I2C, SPI, SER */
-#define PI_FILE_SLOTS 8
-#define PI_I2C_SLOTS 32
-#define PI_SPI_SLOTS 16
-#define PI_SER_SLOTS 8
+#define PI_FILE_SLOTS 16
+#define PI_I2C_SLOTS 64
+#define PI_SPI_SLOTS 32
+#define PI_SER_SLOTS 16
#define PI_MAX_I2C_ADDR 0x7F
import os
import atexit
-VERSION = "1.35"
+VERSION = "1.36"
exceptions = True
return a.trigger
def __init__(self,
- host = os.getenv("PIGPIO_ADDR", ''),
+ host = os.getenv("PIGPIO_ADDR", 'localhost'),
port = os.getenv("PIGPIO_PORT", 8888)):
"""
Grants access to a Pi's GPIO.
port = int(port)
+ if host == '':
+ host = "localhost"
+
self._host = host
self._port = port
if self.sl.s is not None:
self.sl.s = None
- if host == '':
- h = "localhost"
- else:
- h = host
-
- s = "Can't connect to pigpio at {}({})".format(str(h), str(port))
+ s = "Can't connect to pigpio at {}({})".format(host, str(port))
print(_except_a.format(s))
if exception == 1:
.br
E.g. 23 is 23 decimal, 0x100 is 256 decimal, 070 is 56 decimal.
+.br
+Some commands can return a variable number of data bytes. By
+default this data is displayed as decimal. The pigs -a option
+can be used to force the display as ASCII and the pigs -x
+option can be used to force the display as hex.
+
+.br
+E.g. assuming the transmitted serial data is the letters ABCDEONM
+
+.br
+
+.EX
+$ pigs slr 4 100
+.br
+8 65 66 67 68 69 79 78 77
+.br
+
+.br
+$ pigs -a slr 4 100
+.br
+8 ABCDEONM
+.br
+
+.br
+$ pigs -x slr 4 100
+.br
+8 41 42 43 44 45 4f 4e 4d
+.br
+
+.EE
+
.br
.SH COMMANDS