[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] I2C compass sensor
From: |
Christian Vogel |
Subject: |
Re: [avr-gcc-list] I2C compass sensor |
Date: |
Wed, 7 May 2003 15:06:35 +0200 |
User-agent: |
Mutt/1.2.5.1i |
Hi Jack,
On Wed, May 07, 2003 at 07:06:55PM +1000, Jack Valmadre wrote:
> I'm using a CMPS03 compass sensor from Devantech, which uses I2C
> communications to give the microcontroller (an ATMega163) a value either
> 0-255 or 0-3599 (I'm using 0-3599) and has a SCL speed of up to 1MHz. How
> would I program this sensor in AVR-GCC?
there is sample code for a i2c master in the avr-libc documentation.
Chris
--
"There are 10 different types of people in this world;
Those who understand binary and those who don't".
-- Seen on Usenet