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:
parent
aa697966dc
commit
dd9444a718
@ -63,7 +63,7 @@ void twi_init(void)
|
|||||||
// initialize state
|
// initialize state
|
||||||
twi_state = TWI_READY;
|
twi_state = TWI_READY;
|
||||||
|
|
||||||
#ifdef ATMEGA8
|
#if defined(__AVR_ATmega168__) || defined(__AVR_ATmega8__)
|
||||||
// activate internal pull-ups for twi
|
// activate internal pull-ups for twi
|
||||||
// as per note from atmega8 manual pg167
|
// as per note from atmega8 manual pg167
|
||||||
sbi(PORTC, 4);
|
sbi(PORTC, 4);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user