Commit 6e2ef06a authored by tllado's avatar tllado

changed uint32_t to long int

parent e2061181
......@@ -70,18 +70,29 @@ uint8_t tempClass::B(double T) {
// overloaded functions so user can give color and brightness
// as either double or int
uint32_t tempClass::color(double T, uint32_t brite) {
uint32_t tempClass::color(double T, int brite) {
double f_brite = (double)brite / 255.0;
return color(T,f_brite);
}
uint32_t tempClass::color(uint32_t T, double brite) {
uint32_t tempClass::color(int T, double brite) {
double f_T = (log(T) - 8.79) / 1.8;
return color(f_T,brite);
}
uint32_t tempClass::color(uint32_t T, uint32_t brite) {
uint32_t tempClass::color(long int T, double brite) {
double f_T = (log(T) - 8.79) / 1.8;
return color(f_T,brite);
}
uint32_t tempClass::color(int T, int brite) {
double f_T = (log(T) - 8.79) / 1.8;
double f_brite = (double)brite / 255.0;
return color(f_T,f_brite);
}
uint32_t tempClass::color(long int T, int brite) {
double f_T = (log(T) - 8.79) / 1.8;
double f_brite = (double)brite / 255.0;
return color(f_T,f_brite);
}
\ No newline at end of file
......@@ -18,9 +18,11 @@
class tempClass {
public:
uint32_t color(double temp, double brightness);
uint32_t color(double temp, uint32_t brightness);
uint32_t color(uint32_t temp, double brightness);
uint32_t color(uint32_t temp, uint32_t brightness);
uint32_t color(double temp, int brightness);
uint32_t color(int temp, double brightness);
uint32_t color(long int temp, double brightness);
uint32_t color(int temp, int brightness);
uint32_t color(long int temp, int brightness);
void RGB();
void GRB();
private:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment