2021-01-29 06:31:58 -05:00
|
|
|
//
|
|
|
|
// FILE: optoma_test.ino
|
|
|
|
// AUTHOR: Rob Tillaart
|
|
|
|
// PURPOSE: demo vertical keystone.
|
|
|
|
// DATE: 2020
|
|
|
|
// (c) : MIT
|
|
|
|
//
|
|
|
|
// Test with TeraTerm or an Optoma beamer)
|
|
|
|
// TeraTerm: Newline Receive mode = CR + LF + 9600 baud.
|
|
|
|
|
2021-12-22 07:38:25 -05:00
|
|
|
|
2021-01-29 06:31:58 -05:00
|
|
|
#include "optoma.h"
|
|
|
|
|
|
|
|
Optoma beamer;
|
|
|
|
|
2021-12-22 07:38:25 -05:00
|
|
|
|
2021-01-29 06:31:58 -05:00
|
|
|
void setup()
|
|
|
|
{
|
|
|
|
beamer.init(22);
|
|
|
|
|
|
|
|
beamer.switchOn();
|
|
|
|
delay(10000); // wait until lamp is warm
|
|
|
|
|
|
|
|
for (int i = 0; i < 20; i++)
|
|
|
|
{
|
|
|
|
beamer.increaseVKS();
|
|
|
|
delay(100); // give beamer some time to adjust
|
|
|
|
}
|
|
|
|
for (int i = 0; i < 20; i++)
|
|
|
|
{
|
|
|
|
beamer.decreaseVKS();
|
|
|
|
delay(100); // give beamer some time to adjust
|
|
|
|
}
|
|
|
|
delay(5000);
|
|
|
|
beamer.switchOff();
|
|
|
|
}
|
|
|
|
|
2021-12-22 07:38:25 -05:00
|
|
|
|
2021-01-29 06:31:58 -05:00
|
|
|
void loop()
|
|
|
|
{
|
2021-12-22 07:38:25 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// -- END OF FILE --
|
2021-01-29 06:31:58 -05:00
|
|
|
|