Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <Wire.h>
- void setup() {
- Wire.begin(); }
- byte x = 0;
- void loop() {
- Wire.beginTransmission(8); // transmit to device #8
- Wire.write("x is "); // mengirim 5 byte
- Wire.write(x); // mengiri m 1 byte
- Wire.endTransmission(); // mengakhiri pengiriman
- x++;
- delay(500); }
Advertisement
Add Comment
Please, Sign In to add comment