mirror of
https://github.com/Matiasus/SSD1306.git
synced 2024-10-03 18:18:46 -04:00
Update freq for m328p
This commit is contained in:
parent
2b2abd2c48
commit
17d0037fe1
@ -39,10 +39,10 @@ void TWI_Init (void)
|
|||||||
// TWBR = {(fcpu/fclk) - 16 } / (2*4^Prescaler)
|
// TWBR = {(fcpu/fclk) - 16 } / (2*4^Prescaler)
|
||||||
// +++++++++++++++++++++++++++++++++++++++++++++
|
// +++++++++++++++++++++++++++++++++++++++++++++
|
||||||
// @param1 value of TWBR (m16)
|
// @param1 value of TWBR (m16)
|
||||||
// fclk = 400kHz (m16); TWBR = 3
|
// fclk = 400kHz; TWBR = 3
|
||||||
// fclk = 100kHz (m16); TWBR = 20
|
// fclk = 100kHz; TWBR = 20
|
||||||
// @param1 value of TWBR (m328p)
|
// @param1 value of TWBR (m328p)
|
||||||
// fclk = 400kHz (m16); TWBR = 2
|
// fclk = 400kHz; TWBR = 2
|
||||||
// @param2 value of Prescaler = 1
|
// @param2 value of Prescaler = 1
|
||||||
TWI_FREQ (2, 1);
|
TWI_FREQ (2, 1);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user