From owner-freebsd-arm@freebsd.org Mon Nov 21 16:19:03 2016 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 762EFC4CF81 for ; Mon, 21 Nov 2016 16:19:03 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.blih.net", Issuer "mail.blih.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id E7D7775F for ; Mon, 21 Nov 2016 16:19:02 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) by mail.blih.net (OpenSMTPD) with ESMTP id 98862839; Mon, 21 Nov 2016 17:18:59 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=mail; bh=mPDIDrdelUWlIjqxuowPsSTMQSs=; b=gTaMPkp9fuCylsdLwF1KnKuwulF7 cfB3ymbWHzWEGzDHvAmjT33DLcQQ5jVfsrMK2q85j82AoXV6A7EGazXU7ydmShsF 9ySAsNMyav7KgtHmJfy5vfKBjnZ627zo2wVkNXwazT1Hk/xJxua1xHsxyYa6cKbc 7WMrujof7YIjAdk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; q=dns; s= mail; b=BuFsojnMBmICYwnX2LJ+jHSPngitjys8mjuP8Y+EWio2mPCDdoCrypSa RZNvDjWyMbNjvh8ZUBlr5VfsXjDefLJh4oTBhEgx1EJ1V0kNohnqN4XOcjfNd/QJ bHBfsX91bNek3ur9bBuHuiz5k/bYhwcS0jjDcucUX/casL8GDYk= Received: from knuckles.blih.net (ip-54.net-82-216-203.roubaix.rev.numericable.fr [82.216.203.54]) by mail.blih.net (OpenSMTPD) with ESMTPSA id 108ff40c TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Mon, 21 Nov 2016 17:18:59 +0100 (CET) Date: Mon, 21 Nov 2016 17:18:59 +0100 From: Emmanuel Vadot To: Peter Garshtja Cc: "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> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.29; amd64-portbld-freebsd12.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Nov 2016 16:19:03 -0000 On Sat, 19 Nov 2016 15:02:29 -0500 Peter Garshtja 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