rambo / TinyWire

My modifications to TinyWire Arduino libs
284 stars 121 forks source link

Header file #29

Closed ind03 closed 6 years ago

ind03 commented 7 years ago

I like header files like that usiTwiSlave.h ! void usiTwiSlaveInit( uint8_t );

So everybody knows what to pass in. Where is the effort to use: void usiTwiSlaveInit( uint8_t address); ???

rambo commented 6 years ago

I do not understand the question, usiTwiXxx functions are internal anyway https://github.com/rambo/TinyWire/blob/master/TinyWireS/examples/attiny85_i2c_slave/attiny85_i2c_slave.ino#L134 shows the correct way to setup device.