Jump to content
43oh

unknowsman

Members
  • Content Count

    3
  • Joined

  • Last visited

Everything posted by unknowsman

  1. @energia When I send data over i2c but slave(MSP430FR5969) cannot read all the data with this code Its look like just only 12 characters can send . Pls give some advice. Master Code ( Arduino Mega2560): #include <Wire.h> uint8_t greeting[35] = "Hello World! and How are you today!"; void setup() { Serial.begin(250000); Wire.begin(); } void loop() { if (Serial.available() > 0) { byte inByte = Serial.read(); if (inByte == '1') { Wire.beginTransmission(0x23); Wire.write(greeting, 35); Wire.endTransmission(); } } } Slave C
  2. i try to use this example but nothing happened // Wire Slave Sender // by Nicholas Zambetti <http://www.zambetti.com> // Demonstrates use of the Wire library // Sends data as an I2C/TWI slave device // Refer to the "Wire Master Reader" example for use with this // Created 29 March 2006 // This example code is in the public domain. #include <Wire.h> void setup() { Wire.setModule(0); Wire.begin(2); // join i2c bus with address #2 Wire.onRequest(requestEvent); // register event } void loop() { delay(100); } // function that executes whenever data
×
×
  • Create New...