Yup basicaly you have to program those 2 examples. To read from the slave it would be the same code, except you'd do a "question-answer" (like you already have interrupted) interface instead of polling. just ask multiple questions for multiple devices. All you have to do is send the right address.