Forum breadcrumbs - You are here:ForumGeneral: HelpScripted component twi master
You need to log in to create posts and topics.

Scripted component twi master

Hello,

setMode works but calling sendByte crashes the application.

I need sample code for this sequence:

start
sending address (r/w = 0)
sending one byte
restart
sending address (r/w = 1)
reading 3 bytes
seanding NACK after last byte
stop

I also need to know how to check if slave sent NACK?

Hi there.

TWI Master mode for Scripts is not yet implemented, but I think is not too much work.
I will have a look.

nemka has reacted to this post.
nemka

It explains a lot. 🙂

Thank you for your work.
It's not urgent, I can write a twi master stack in script.