The mailman delivered my parts and I have this working.
I encountered issues with the LCD libraries and examples because they are LCD product specific
I had to rework them for more generic use and to include the reset fix but I haven't completed that task.
The LCD i'm using is a DFRobot I2C LCD and they are the best way to determine if your I2C is working on the attiny as they give a definite visual clue.
The code for the clock module is identical to code used for the Arduino uno. I just switched the wire and tinywireM
I originally sourced it from
http://tronixstuff.wordpress.com/The resistors are 39k (by accident) and 4.7k but seemed to work fine.
main mod for the LCD module (in the library header):
#define LCD_TYPE_DFROBOT 1 // define your hardware here
//#define LCD_TYPE_GPIO 2
#if (LCD_TYPE_GPIO == 2)
//(PCA8574A A0-A2 @5V) typ. A0-A3 Gnd 0x20 / 0x38 for A
// flags for backlight control
#define LCD_BACKLIGHT 0x00
#define LCD_NOBACKLIGHT 0x80
#define En B00010000 // Enable bit
#define Rw B00100000 // Read/Write bit
#define Rs B01000000 // Register select bit
#define I2C_ADDR 0x3F
#endif
#if (LCD_TYPE_DFROBOT == 1)
//DFROBOT
// flags for backlight control
#define LCD_BACKLIGHT 0x08
#define LCD_NOBACKLIGHT 0x00
#define En B00000100 // Enable bit
#define Rw B00000010 // Read/Write bit
#define Rs B00000001 // Register select bit
#define I2C_ADDR 0x27
#endif
Code and LCD library attached. It's easy to comment out the LCD code as it's not intermingled.
I found that the time was not set initially and that the module was disabled and I had to turn it on.
Using the setDateDs1307 achieved that.