GY-63_MS5611/libraries/optoma/optoma.h
2022-11-18 15:37:45 +01:00

45 lines
755 B
C++

#pragma once
//
// FILE: Optoma.h
// AUTHOR: Rob Tillaart
// VERSION: 0.1.4
// DATE: 2017-11-27
// PUPROSE: Arduino library to control Optoma W305ST beamer over RS232.
// URL: https://github.com/RobTillaart/Optoma
#include "Arduino.h"
#define OPTOMA_LIB_VERSION (F("0.1.4"))
class Optoma
{
public:
Optoma(HardwareSerial* stream = &Serial);
void init(int ID, uint32_t baudRate = 9600);
uint32_t getBaudrate();
void switchOn();
void switchOff();
bool isOn();
// VKS = Vertical KeyStone
void increaseVKS();
void decreaseVKS();
private:
HardwareSerial* _stream;
int _ID = 0;
bool _on = false;
uint32_t _baudrate = 9600;
void sendID();
};
// -- END OF FILE --