×

SparkFun Electronics will be closed in observance of memorial day on Monday, May 29th. We will resume normal business hours on Tuesday, May 30th. Any orders placed after 2pm Mountain Time on Friday, May 26th will process and ship out on Tuesday, May 30th.

Member #90752

Member Since: November 17, 2009

Country: United States

  • Thanks Nate, I uninstalled/re-installed V1.0.5. That worked.

  • I can’t get the Arduino example to compile. It gets stuck at Wire.endTransmission(false);

     // Read pressure registers
     Wire.beginTransmission(MPL3115A2_ADDRESS);
     Wire.write(OUT_P_MSB);  // Address of data to get
     Wire.endTransmission(false); // Send data to I2C dev with option for a repeated start. THIS IS NECESSARY and not   supported before Arduino V1.0.1!
     Wire.requestFrom(MPL3115A2_ADDRESS, 3); // Request three bytes
    

    The error messages are

    MPL3115A2.ino: In function 'float readAltitude()':
    MPL3115A2:140: error: no matching function for call to 'TwoWire::endTransmission(int)'
    C:\Program Files (x86)\Arduino\libraries\Wire/Wire.h:52: note: candidates are: uint8_t TwoWire::endTransmission()
    MPL3115A2.ino: In function 'float readPressure()':
    MPL3115A2:192: error: no matching function for call to 'TwoWire::endTransmission(int)'
    C:\Program Files (x86)\Arduino\libraries\Wire/Wire.h:52: note: candidates are: uint8_t TwoWire::endTransmission()
    MPL3115A2.ino: In function 'float readTemp()':
    MPL3115A2:238: error: no matching function for call to 'TwoWire::endTransmission(int)'
    

    I’m using V1.0.5. Where am I going wrong?

  • Could someone please post a “hello world” code for Pic 16Fxxx? (MPLAB)
    The Arduino code works fine for me, but I can’t make any thing work with Pic. I found this code at http://www.sunbizhosting.com/~spiral/ , but can’t figure out what I’m doing wrong.

No public wish lists :(