Split from: I2C Library Problems with ATtiny817

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

What is the "slaveAddr" in "void TWI_start (uint8_t slaveAddr)"?

is the address of the device to which I connect?

 

edit:

someone has simple functions for i2c?

 

void TWI_init();

void TWI_start(uint8_t slaveAddr);

uint8_t TWI_read(uint8_t ACK);                                          

void TWI_write(uint8_t write_data);

void TWI_stop(void);

TWI_write_buf( , , , );

Last Edited: Thu. Feb 1, 2018 - 10:21 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Please stay in your original thread.

 

https://www.avrfreaks.net/forum/a...

 

Locked.

 

Ross McKenzie ValuSoft Melbourne Australia

Topic locked