A Dallas One-Wire Library for AVR

This is a little library I wrote with an ATtiny in mind, published to the web in the hopes that others might find it useful.

Features (?)

  • It uses a single GPIO pin (no UARTs).

  • It does not use dynamic memory allocation. The only drawback is that you have to know the number of devices on the bus in advance (or over-specify).

  • It is polled, not interrupt-driven. There are several sections of code that must run for a specific amount of time and have to disable interrupts globally.

  • Only the MATCH_ROM, SEARCH_ROM, and SKIP_ROM commands have been implemented. At this point other commands would be trivial to add.


Copyright © 2010, Mike Roddewig. All rights reserved.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License v3 as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>