Skip to content

2Y0A21 SENSOR

Jaume Olivé Petrus edited this page Jul 27, 2017 · 13 revisions

Specification

What Comments
Identifier 2Y0A21
Interface ADC
Provides distance centimeters
Properties none
Datasheet

Code

s1 = sensor.attach("2Y0A21", adc.MCP3208, 0, 12)

s1:read("distance")
Clone this wiki locally