From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vasudev Kamath To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> References: <801552123.5703952.1457582011484.JavaMail.yahoo.ref@mail.yahoo.com> <801552123.5703952.1457582011484.JavaMail.yahoo@mail.yahoo.com> Date: Thu, 10 Mar 2016 09:45:22 +0530 In-Reply-To: <801552123.5703952.1457582011484.JavaMail.yahoo@mail.yahoo.com> (Brian L. Stuart's message of "Thu, 10 Mar 2016 03:53:31 +0000 (UTC)") Message-ID: <874mcfklyd.fsf@copyninja.info> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [9fans] Pi Hats and i2c Topicbox-Message-UUID: 8ac961ae-ead9-11e9-9d60-3106f5b1d025 "Brian L. Stuart" writes: > On Wed, 3/9/16, Anthony Sorace wrote: >> Anyone have any example code using the i2c interface on the pi >> I can look at? I'm playing around with several of these, and am not >> getting the results I expect (data getting out, but the hats aren't behaving >> like they're getting the same bits I think I'm sending). >> >> More generally, anyone got any of these hats going? I'm >> starting off with the Sense Hat, since it exposes everything >> on it via the i2c. > > I haven't done anything with the hats, but I do have a few bits > of I2C code that go along with the driver modifications I posted > a little while back. > > The first does a little lightshow on a square LED array from Adafruit: > > http://cs.drexel.edu/~bls96/plan9/lightshow.c > > The second talks to the MMA8451 3-axis accelerometer: > > http://cs.drexel.edu/~bls96/plan9/mma8451sa.c This link gives Forbidden message (403)