Skip to content

Commit

Permalink
Documentation tweaks for spidev path, #37
Browse files Browse the repository at this point in the history
  • Loading branch information
Gadgetoid committed Aug 22, 2016
1 parent 3905188 commit 11adf8c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Methods

open(bus, device)

Connects to the specified SPI device, opening /dev/spidev-bus.device
Connects to the specified SPI device, opening `/dev/spidev<bus>.<device>`

readbytes(n)

Expand Down
4 changes: 2 additions & 2 deletions spidev_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ PyDoc_STRVAR(SpiDev_module_doc,
typedef struct {
PyObject_HEAD

int fd; /* open file descriptor: /dev/spi-X.Y */
int fd; /* open file descriptor: /dev/spidevX.Y */
uint8_t mode; /* current SPI mode */
uint8_t bits_per_word; /* current SPI bits per word setting */
uint32_t max_speed_hz; /* current SPI max speed setting in Hz */
Expand Down Expand Up @@ -889,7 +889,7 @@ static PyGetSetDef SpiDev_getset[] = {
PyDoc_STRVAR(SpiDev_open_doc,
"open(bus, device)\n\n"
"Connects the object to the specified SPI device.\n"
"open(X,Y) will open /dev/spidev-X.Y\n");
"open(X,Y) will open /dev/spidev<X>.<Y>\n");

static PyObject *
SpiDev_open(SpiDevObject *self, PyObject *args, PyObject *kwds)
Expand Down

0 comments on commit 11adf8c

Please sign in to comment.