Pages: [1]   Go Down
Author Topic: can i use RTC DS1307 with attiny85 I2C  (Read 1923 times)
0 Members and 1 Guest are viewing this topic.
Down Under (Australia), SA
Offline Offline
Jr. Member
**
Karma: 0
Posts: 83
Newbie is an understatement
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

hey i want to shrink one of my projects and use an attiny85. i only need the two pins for the RTC and one for a PWM output.

i was thinking about getting the tinywire library and editing the RTC library from adafruit to work with the tinywire library. would this work?

« Last Edit: May 02, 2012, 12:32:36 am by tigerbomb8 » Logged

Offline Offline
Sr. Member
****
Karma: 1
Posts: 486
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

i think so...
Logged

http://dduino.blogspot.com all my Arduino/electronic projects!!!

{NEW} Getting Started, Learning, Reference + FAQ PDF!!:
[url]http://ar

Global Moderator
Boston area, metrowest
Online Online
Brattain Member
*****
Karma: 514
Posts: 26258
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Pin5 is SDA, pin 7 is SCL.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 197
Posts: 12737
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


Core so you can program the ATtiny85 the Arduino way...
http://code.google.com/p/arduino-tiny/

I2C library so you can communicate with the RTC...
http://arduino.cc/playground/Code/USIi2c

Quote
editing the RTC library from adafruit

I think BroHogan or carl47 has already done something similar.  Try searching the forum for their monikers and some keywords.
Logged

Pages: [1]   Go Up
Jump to: