Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <Wire.h>
- int this_i2c_slaves_adress = 8;
- void setup() {
- // put your setup code here, to run once:
- Wire.begin(this_i2c_slaves_adress);
- Wire.onRequest(request);
- }
- void loop() {
- // put your main code here, to run repeatedly:
- delay(100);
- }
- void request () {
- Wire.write("Hey, I am an Arduino!");
- }
Advertisement
Add Comment
Please, Sign In to add comment