Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Nov 2016 17:18:59 +0100
From:      Emmanuel Vadot <manu@bidouilliste.com>
To:        Peter Garshtja <peter.garshtja@ambient-md.com>
Cc:        "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org>
Subject:   Re: python: spidev
Message-ID:  <20161121171859.f9a7b128712676d7ebeb7aa1@bidouilliste.com>
In-Reply-To: <71a6710e-c7c3-473f-042a-37cb00d309e2@ambient-md.com>
References:  <71a6710e-c7c3-473f-042a-37cb00d309e2@ambient-md.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 19 Nov 2016 15:02:29 -0500
Peter Garshtja <peter.garshtja@ambient-md.com> wrote:

> Greetings,
> 
>      Has anybody experience with python spidev library on RPI2 FreeBSD 11 ?
> 
> I have a led matrix max7219 trying to connect it with gpio, and 
> apparently python spidev library is only for linux, i just wonder if 
> there any chances to run this library on freebsd ?
> 
> here is the tutorial that i tried to follow in order to make this led 
> matrix working on rpi2 under freebsd.
> 
> https://github.com/rm-hull/max7219
> 
> Thanks in advance,
> 
> Peter
> 
> _______________________________________________
> freebsd-arm@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"

 Hello,

 I've added SPI bitbang to my python gpio lib[1] a few month ago, I
didn't make a release after that so you will need to compile the module
itself.
 You will need to patch you python[2] to use the system compiler and not
the cross building one too. You don't have to recompile the packages,
just patch directly _sysconfigdata.py and config/Makefile.

 Cheers,

[1] https://github.com/evadot/fbsd_gpio_py
[2] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=208282

-- 
Emmanuel Vadot <manu@bidouilliste.com> <manu@freebsd.org>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20161121171859.f9a7b128712676d7ebeb7aa1>