Made prescaler automatic
This commit is contained in:
parent
e82fb9971e
commit
3eb298053b
2
i2c/i2c
2
i2c/i2c
@ -1 +1 @@
|
|||||||
Subproject commit 629be83f8ad97cfcfe0d9d4cbad04e1b1f17c695
|
Subproject commit 5c3fb99c1905559f3a01bf18321b570600a3db2e
|
@ -5,7 +5,7 @@
|
|||||||
void i2cTest()
|
void i2cTest()
|
||||||
{
|
{
|
||||||
using namespace i2c;
|
using namespace i2c;
|
||||||
using config = Hardware<Prescaler::PRESCALER_1, 100000>;
|
using config = Hardware<100000>;
|
||||||
|
|
||||||
I2c<config> twi;
|
I2c<config> twi;
|
||||||
constexpr auto I2CADDRESS = 0x4B;
|
constexpr auto I2CADDRESS = 0x4B;
|
||||||
|
Loading…
Reference in New Issue
Block a user