Subversion Repositories group.electronics

Rev

Rev 123 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 123 Rev 126
Line 67... Line 67...
67
  // initialize state
67
  // initialize state
68
  twi_state = TWI_READY;
68
  twi_state = TWI_READY;
69
  twi_sendStop = true;		// default value
69
  twi_sendStop = true;		// default value
70
  twi_inRepStart = false;
70
  twi_inRepStart = false;
71
  
71
  
72
  // activate internal pullups for twi.
72
  // activate internal pullups for twi
73
  // @TODO: activate pullups
73
  // @TODO: activate pullups (If not provided externally)
74
  //digitalWrite(SDA, 1);
74
  //digitalWrite(SDA, 1);
75
  //digitalWrite(SCL, 1);
75
  //digitalWrite(SCL, 1);
76
 
76
 
77
  // initialize twi prescaler and bit rate
77
  // initialize twi prescaler and bit rate
78
  cbi(TWSR, TWPS0);
78
  cbi(TWSR, TWPS0);