mirror of
https://github.com/RobTillaart/Arduino.git
synced 2024-10-03 18:09:02 -04:00
51 lines
749 B
C++
51 lines
749 B
C++
//
|
|
// FILE: gamma_test.ino
|
|
// AUTHOR: Rob Tillaart
|
|
// VERSION: 0.1.0
|
|
// PURPOSE: demo
|
|
// DATE: 2020-08-08
|
|
|
|
|
|
#include "gamma.h"
|
|
|
|
GAMMA gt1(256);
|
|
GAMMA gt2(128);
|
|
GAMMA gt3(64);
|
|
GAMMA gt4(32); // default
|
|
GAMMA gt5(16);
|
|
|
|
void setup()
|
|
{
|
|
Serial.begin(115200);
|
|
|
|
gt1.setGamma(2.8);
|
|
gt2.setGamma(2.8);
|
|
gt3.setGamma(2.8);
|
|
gt4.setGamma(2.8);
|
|
gt5.setGamma(2.8);
|
|
|
|
for (int i = 0; i < 256; i++)
|
|
{
|
|
Serial.print(i);
|
|
Serial.print('\t');
|
|
Serial.print(gt1[i]);
|
|
Serial.print('\t');
|
|
Serial.print(gt2[i]);
|
|
Serial.print('\t');
|
|
Serial.print(gt3[i]);
|
|
Serial.print('\t');
|
|
Serial.print(gt4[i]);
|
|
Serial.print('\t');
|
|
Serial.print(gt5[i]);
|
|
Serial.println();
|
|
}
|
|
}
|
|
|
|
|
|
void loop()
|
|
{
|
|
|
|
}
|
|
|
|
// -- END OF FILE --
|