Skip to content

Create a Sensor Class #3

Description

@theDataSmith

Create a class that represents a single reflectance sensor. It should take its pin number in the constructor and should have functions that change the sensor between output and input mode, as well as a function that reads the pin and returns HIGH or LOW. It will probably also need a way to keep track of whether or not it's been read.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions