Skip to content

attribute 'no_cs' not existing with python 3.5 #68

@tgd1975

Description

@tgd1975

Hi,

this code snipped works with python 2.7:

import spidev

spi = spidev.SpiDev()
spi.open(0, 1)
spi.max_speed_hz = 500000
spi.no_cs = True
print(spi.xfer2([0xFF]))
spi.close()

when beeing executed with python 3.5, it yields the error "AttributeError: 'SpiDev' object has no attribute 'no_cs'".

Python 2.7.13
Python 3.5.3
Raspberry Pi 3, Raspbian Strech , kernel 4.9.59+

tobias

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs infoRequires more information or research

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions