/* * user.h * * Created: 16.03.2015 * Author: nqtronix * Package: Decision Box BE * ID: 430456905935 * Version: 1.0 * Release: 17.03.2015 * License: BY-NC-SA * * Content: * - decision_box.c (program) * - pinout.h (maps IO) * - user.h (user defined values)[this] * * Description: * This document allows the user to define custom values. The default values are * recommended. If you experience any issues go back to them. * DO NOT MODIFY THE VALUES WITHIN THE MAIN C FILE. */ #ifndef USER_H_ #define USER_H_ //Sets the threshold of the external pull-down resistor detection //the external pull-down must be strong enough to pull the voltage to at least xx% //to be recognized. //default: 80% -> 80*255/100 #define PERCENTAGE_THRESHOLD 80*255/100 //Sets the percentage of RED or GREEN events. The remaining percentage will be yellow. //If PERCENTAGE_RED + PERCENTAGE_GREEN > 255 the chance for green will be automaticly //decreased. //default: RED: 40% -> 40*255/100 // GREEN: 40% -> 40*255/100 // YELLOW: remaining 20% -> autamaticly #define PERCENTAGE_RED 40*255/100 #define PERCENTAGE_GREEN 40*255/100 #endif /* USER_H_ */