1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-03-15 12:29:26 +01:00

Activating pull-up resistors on the ATmega168 (in addition to the ATmega8).

This commit is contained in:
David A. Mellis 2007-05-09 15:05:01 +00:00
parent aa697966dc
commit dd9444a718

View File

@ -63,7 +63,7 @@ void twi_init(void)
// initialize state
twi_state = TWI_READY;
#ifdef ATMEGA8
#if defined(__AVR_ATmega168__) || defined(__AVR_ATmega8__)
// activate internal pull-ups for twi
// as per note from atmega8 manual pg167
sbi(PORTC, 4);