mirror of
				https://gitlab.dit.htwk-leipzig.de/phillip.kuehne/dezibot.git
				synced 2025-10-31 15:20:01 +01:00 
			
		
		
		
	fixed errors from merge (added calls .begin for submodules and renamed colorConstant)
This commit is contained in:
		| @@ -14,5 +14,10 @@ | ||||
| #define GPIO_LED 48 | ||||
|  | ||||
| void Dezibot::begin(void) { | ||||
|    | ||||
|     motion.begin(); | ||||
|     lightDetection.begin(); | ||||
|     colorDetection.begin(); | ||||
|     multiColorLight.begin(); | ||||
|     motionDetection.begin(); | ||||
|     infraredLight.begin(); | ||||
| } | ||||
|   | ||||
| @@ -23,7 +23,6 @@ class Dezibot { | ||||
| protected: | ||||
|  | ||||
| public: | ||||
|     Dezibot(); | ||||
|     Motion motion; | ||||
|     LightDetection lightDetection; | ||||
|     ColorDetection colorDetection; | ||||
|   | ||||
| @@ -37,16 +37,16 @@ uint16_t ColorDetection::getColorValue(color color){ | ||||
|     | ||||
|     switch(color) | ||||
|     { | ||||
|         case RED: | ||||
|         case VEML_RED: | ||||
|             return readDoubleRegister(REG_RED);  | ||||
|             break; | ||||
|         case GREEN: | ||||
|         case VEML_GREEN: | ||||
|             return readDoubleRegister(REG_GREEN); | ||||
|             break; | ||||
|         case BLUE:  | ||||
|         case VEML_BLUE:  | ||||
|             return readDoubleRegister(REG_BLUE); | ||||
|             break; | ||||
|         case WHITE: | ||||
|         case VEML_WHITE: | ||||
|             return readDoubleRegister(REG_WHITE); | ||||
|             break; | ||||
|         default: | ||||
|   | ||||
| @@ -40,10 +40,10 @@ struct VEML_CONFIG{ | ||||
|  | ||||
|  | ||||
| enum color{ | ||||
|     RED, | ||||
|     GREEN, | ||||
|     BLUE, | ||||
|     WHITE | ||||
|     VEML_RED, | ||||
|     VEML_GREEN, | ||||
|     VEML_BLUE, | ||||
|     VEML_WHITE | ||||
| }; | ||||
| class ColorDetection{ | ||||
| public:  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user