Skip to content

Create a Sensor Class #3

@theDataSmith

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions