From owner-freebsd-arm@freebsd.org Mon Nov 21 16:01:26 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 26875C4C625 for ; Mon, 21 Nov 2016 16:01:26 +0000 (UTC) (envelope-from tj@enoti.me) Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 01F141814 for ; Mon, 21 Nov 2016 16:01:25 +0000 (UTC) (envelope-from tj@enoti.me) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 3A1E920764; Mon, 21 Nov 2016 11:01:24 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute3.internal (MEProxy); Mon, 21 Nov 2016 11:01:24 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=smtpout; bh=F2NNJF7LIT5EQs HZRcRpK3prsaY=; b=q/CAWx5sVDnA0bMyA7fjhsDLMoHujzOMkC1IL3jrXEKfEe kKL15B1Hu56Ic43bbEtbr9Ouwzi7xfxpGCbpMbtyg8lNH4Sp0NkSFlILB3iFAlwN rnSQWifUvuXBI2LMArbi5AzugnRdD+0eHQI1OMs2QPGARSt6JihaOtgk/Jh7Y= X-ME-Sender: X-Sasl-enc: BJn+m+lkwgZPibmtCiphyXTf8t7EtadeAM8CWDtWkPWQ 1479744083 Received: from tom-desk.erg.abdn.ac.uk (tom-desk.erg.abdn.ac.uk [139.133.204.4]) by mail.messagingengine.com (Postfix) with ESMTPA id 7F78A25057; Mon, 21 Nov 2016 11:01:23 -0500 (EST) Date: Mon, 21 Nov 2016 16:01:18 +0000 From: tj To: Peter Garshtja Cc: "freebsd-arm@freebsd.org" Subject: Re: python: spidev Message-ID: <20161121160117.GA85737@tom-desk.erg.abdn.ac.uk> References: <71a6710e-c7c3-473f-042a-37cb00d309e2@ambient-md.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <71a6710e-c7c3-473f-042a-37cb00d309e2@ambient-md.com> User-Agent: Mutt/1.6.1 (2016-04-27) 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:01:26 -0000 On Sat, Nov 19, 2016 at 03:02:29PM -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 There have been a few implementations of a userspace interface to spi, spigen ended up winning and was committed by adrian. https://lists.freebsd.org/pipermail/svn-src-head/2016-May/087329.html The interface is different to the linux implementation, but it shouldn't be too hard to write the bits to use it from python. - - [tj]