mirror of
https://github.com/RobTillaart/Arduino.git
synced 2024-10-03 18:09:02 -04:00
0.1.6 optoma
This commit is contained in:
parent
f3cd5dc1ef
commit
39d28dd314
@ -6,10 +6,13 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
||||
and this project adheres to [Semantic Versioning](http://semver.org/).
|
||||
|
||||
|
||||
## [0.1.6] - 2024-01-05
|
||||
- minor edits
|
||||
|
||||
|
||||
## [0.1.5] - 2023-11-14
|
||||
- update readme.md
|
||||
|
||||
|
||||
## [0.1.4] - 2022-11-18
|
||||
- released 0.1.3 after (to prevent gap)
|
||||
- add RP2040 in build-CI
|
||||
|
@ -1,6 +1,6 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2017-2023 Rob Tillaart
|
||||
Copyright (c) 2017-2024 Rob Tillaart
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
@ -69,6 +69,7 @@ More functionality will be added on a need to basis.
|
||||
#### Could
|
||||
|
||||
- Create examples.
|
||||
- investigate SoftWare Serial support
|
||||
|
||||
#### Wont
|
||||
|
||||
|
@ -2,11 +2,10 @@
|
||||
// FILE: optoma_test.ino
|
||||
// AUTHOR: Rob Tillaart
|
||||
// PURPOSE: demo vertical keystone.
|
||||
// DATE: 2020
|
||||
// (c) : MIT
|
||||
// URL: https://github.com/RobTillaart/Optoma
|
||||
//
|
||||
// Test with TeraTerm or an Optoma beamer)
|
||||
// TeraTerm: Newline Receive mode = CR + LF + 9600 baud.
|
||||
// Test with TeraTerm or an Optoma beamer)
|
||||
// TeraTerm: Newline Receive mode = CR + LF + 9600 baud.
|
||||
|
||||
|
||||
#include "optoma.h"
|
||||
@ -19,17 +18,17 @@ void setup()
|
||||
beamer.init(22);
|
||||
|
||||
beamer.switchOn();
|
||||
delay(10000); // wait until lamp is warm
|
||||
delay(10000); // wait until lamp is warm
|
||||
|
||||
for (int i = 0; i < 20; i++)
|
||||
{
|
||||
beamer.increaseVKS();
|
||||
delay(100); // give beamer some time to adjust
|
||||
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(100); // give beamer some time to adjust
|
||||
}
|
||||
delay(5000);
|
||||
beamer.switchOff();
|
||||
@ -41,5 +40,5 @@ void loop()
|
||||
}
|
||||
|
||||
|
||||
// -- END OF FILE --
|
||||
// -- END OF FILE --
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
"type": "git",
|
||||
"url": "https://github.com/RobTillaart/Optoma"
|
||||
},
|
||||
"version": "0.1.5",
|
||||
"version": "0.1.6",
|
||||
"license": "MIT",
|
||||
"frameworks": "*",
|
||||
"platforms": "*",
|
||||
|
@ -1,5 +1,5 @@
|
||||
name=optoma
|
||||
version=0.1.5
|
||||
version=0.1.6
|
||||
author=Rob Tillaart <rob.tillaart@gmail.com>
|
||||
maintainer=Rob Tillaart <rob.tillaart@gmail.com>
|
||||
sentence=Arduino library to control Optoma W305ST beamer over RS232.
|
||||
|
@ -1,16 +1,16 @@
|
||||
//
|
||||
// FILE: optoma.cpp
|
||||
// AUTHOR: Rob Tillaart
|
||||
// VERSION: 0.1.5
|
||||
// VERSION: 0.1.6
|
||||
// DATE: 2017-11-27
|
||||
// PUPROSE: Arduino library to control Optoma W305ST beamer over RS232.
|
||||
// PURPOSE: Arduino library to control Optoma W305ST beamer over RS232.
|
||||
// URL: https://github.com/RobTillaart/optoma
|
||||
|
||||
|
||||
#include "optoma.h"
|
||||
|
||||
|
||||
Optoma::Optoma(HardwareSerial* stream)
|
||||
Optoma::Optoma(HardwareSerial * stream)
|
||||
{
|
||||
_stream = stream;
|
||||
_ID = 0;
|
||||
|
@ -2,21 +2,21 @@
|
||||
//
|
||||
// FILE: Optoma.h
|
||||
// AUTHOR: Rob Tillaart
|
||||
// VERSION: 0.1.5
|
||||
// VERSION: 0.1.6
|
||||
// DATE: 2017-11-27
|
||||
// PUPROSE: Arduino library to control Optoma W305ST beamer over RS232.
|
||||
// PURPOSE: 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.5"))
|
||||
#define OPTOMA_LIB_VERSION (F("0.1.6"))
|
||||
|
||||
|
||||
class Optoma
|
||||
{
|
||||
public:
|
||||
Optoma(HardwareSerial* stream = &Serial);
|
||||
Optoma(HardwareSerial * stream = &Serial);
|
||||
|
||||
void init(int ID, uint32_t baudRate = 9600);
|
||||
uint32_t getBaudrate();
|
||||
@ -30,7 +30,7 @@ public:
|
||||
void decreaseVKS();
|
||||
|
||||
private:
|
||||
HardwareSerial* _stream;
|
||||
HardwareSerial * _stream;
|
||||
|
||||
int _ID = 0;
|
||||
bool _on = false;
|
||||
|
@ -64,4 +64,6 @@ unittest(test_constructor)
|
||||
|
||||
unittest_main()
|
||||
|
||||
// --------
|
||||
|
||||
// -- END OF FILE --
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user