Skip to content

Property-fy proximity, add distance? #18

@caternuson

Description

@caternuson

The proximity value is currently accessed via a function call:

apds.proximity()

It would be more inline with other libraries to make that a property.

apds.proximity

Also - not seeing any entry in the Design Guide for proximity sensor:
https://circuitpython.readthedocs.io/en/latest/docs/design_guide.html#sensor-properties-and-units
Closest is distance, which may be possible in an approximate way by curve fitting one or more of these (from datasheet):
image

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