Context class Reference
Skittle Color Sorter

class Context

This static class is the base class for all the components used in this project. It works as a helper class that gives references to all the global variables.

public static Attributes

  • LCD lcd
  • The liquid-crystal display.
  • TopServo servoTop
  • The top continuous rotation servo.
  • BottomServo servoBtm
  • The bottom standard servo.
  • ColorView colorView
  • The color LED.
  • ColorSensor colorSensor
  • The Adafruit color sensor.
  • int skittleCount
  • The number of skittles sorted.