Skip to content

Wire library slave examples won't compile with Arduino 101 #3127

Closed
@Pachicito

Description

@Pachicito

Works great with the Uno, but not the 101.

Slave_receiver example:
error: 'class TwoWire' has no member named 'onReceive'

Same with 'onRequest' on Slave_sender example (full error below)

Same issue in both desktop IDE and Create. Multiple people experiencing the same issue: https://forum.arduino.cc/index.php?topic=375503.0

Any help is much appreciated!

arduino-builder/arduino-builder -compile -core-api-version 10611 -build-path /tmp/304782680 -hardware arduino-builder/hardware -hardware arduino-builder/packages/cores -tools arduino-builder/tools -tools arduino-builder/packages/tools -built-in-libraries arduino-builder/latest -libraries /tmp/792166045/pinned -libraries /tmp/792166045/custom -fqbn Intel:arc32:arduino_101 -build-cache /tmp -verbose=false /tmp/792166045/slave_sender

/tmp/792166045/slave_sender/slave_sender.ino: In function ‘void setup()’:

/tmp/792166045/slave_sender/slave_sender.ino:18:8: error: ‘class TwoWire’ has no member named ‘onRequest’

Wire.onRequest(requestEvent); // register event

^

exit status 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions