Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - baligh1979

Pages: [1]
Website Questions / Wire library (writer)arduino
« on: February 25, 2014, 01:15:59 AM »
my vertion in arduino 1.5.5.r2
what is wrong in code follow

#include <Wire.h>

void setup()
  Wire.begin(2);                 // join i2c bus with address #2
  Wire.onRequest(requestEvent);  // register event

void loop()

// function that executes whenever data is requested by master
// this function is registered as an event, see setup()
void requestEvent()
  Wire.write("hello ");  // respond with message of 6 bytes
Pages: [1]