Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Hardware i2c with atmega 32

2005-02-06 by Lee Leathers

Hello, I am toying around with an mcp23016 (i2c port expander) with my atmega 32.
I have everything hooked up right.. but lack sample code for hardware i2c (as I have heard this is very diff from software i2c).
Does anyone have any stripped down code (code just to handle 1 device on the i2c) for the avr to be the master on an i2c bus?
thanks-Lee

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.