Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 556 Bytes

File metadata and controls

30 lines (21 loc) · 556 Bytes
title
onReceive()

onReceive

Description

This function registers a function to be called when a peripheral device receives a transmission from a controller device.

Syntax

Wire.onReceive(handler)

Parameters

  • handler: the function to be called when the peripheral device receives data; this should take a single int parameter (the number of bytes read from the controller device) and return nothing.

Returns

None.