Skip to content
Snippets Groups Projects

Refactor color sensor code to separate file

Merged Daniel Qu requested to merge d3qu/color-sensor-refactoring into main
3 unresolved threads
3 files
+ 32
32
Compare changes
  • Side-by-side
  • Inline
Files
3
+ 2
3
@@ -23,15 +23,14 @@ typedef enum
@@ -23,15 +23,14 @@ typedef enum
CALIBRATE_READY,
CALIBRATE_READY,
} CalibrationState;
} CalibrationState;
extern CalibrationState calibration_state;
void setupColorSensor();
void setupColorSensor();
void printRGB(const Rgb &value);
void printRGB(const Rgb &value);
void getColorValues(Rgb &left_value, Rgb &right_value);
void readColorValues(Rgb &left_value, Rgb &right_value);
float computeHue(const Rgb &rgb);
float computeHue(const Rgb &rgb);
 
CalibrationState getCalibrationState();
void calibrateBlack();
void calibrateBlack();
void calibrateWhite();
void calibrateWhite();
Loading