0.1.6 optoma

This commit is contained in:
Rob Tillaart 2024-01-05 11:31:06 +01:00
parent f3cd5dc1ef
commit 39d28dd314
9 changed files with 26 additions and 21 deletions

View File

@ -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/). and this project adheres to [Semantic Versioning](http://semver.org/).
## [0.1.6] - 2024-01-05
- minor edits
## [0.1.5] - 2023-11-14 ## [0.1.5] - 2023-11-14
- update readme.md - update readme.md
## [0.1.4] - 2022-11-18 ## [0.1.4] - 2022-11-18
- released 0.1.3 after (to prevent gap) - released 0.1.3 after (to prevent gap)
- add RP2040 in build-CI - add RP2040 in build-CI

View File

@ -1,6 +1,6 @@
MIT License 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 Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal

View File

@ -69,6 +69,7 @@ More functionality will be added on a need to basis.
#### Could #### Could
- Create examples. - Create examples.
- investigate SoftWare Serial support
#### Wont #### Wont

View File

@ -2,11 +2,10 @@
// FILE: optoma_test.ino // FILE: optoma_test.ino
// AUTHOR: Rob Tillaart // AUTHOR: Rob Tillaart
// PURPOSE: demo vertical keystone. // PURPOSE: demo vertical keystone.
// DATE: 2020 // URL: https://github.com/RobTillaart/Optoma
// (c) : MIT
// //
// Test with TeraTerm or an Optoma beamer) // Test with TeraTerm or an Optoma beamer)
// TeraTerm: Newline Receive mode = CR + LF + 9600 baud. // TeraTerm: Newline Receive mode = CR + LF + 9600 baud.
#include "optoma.h" #include "optoma.h"
@ -19,17 +18,17 @@ void setup()
beamer.init(22); beamer.init(22);
beamer.switchOn(); beamer.switchOn();
delay(10000); // wait until lamp is warm delay(10000); // wait until lamp is warm
for (int i = 0; i < 20; i++) for (int i = 0; i < 20; i++)
{ {
beamer.increaseVKS(); 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++) for (int i = 0; i < 20; i++)
{ {
beamer.decreaseVKS(); beamer.decreaseVKS();
delay(100); // give beamer some time to adjust delay(100); // give beamer some time to adjust
} }
delay(5000); delay(5000);
beamer.switchOff(); beamer.switchOff();
@ -41,5 +40,5 @@ void loop()
} }
// -- END OF FILE -- // -- END OF FILE --

View File

@ -15,7 +15,7 @@
"type": "git", "type": "git",
"url": "https://github.com/RobTillaart/Optoma" "url": "https://github.com/RobTillaart/Optoma"
}, },
"version": "0.1.5", "version": "0.1.6",
"license": "MIT", "license": "MIT",
"frameworks": "*", "frameworks": "*",
"platforms": "*", "platforms": "*",

View File

@ -1,5 +1,5 @@
name=optoma name=optoma
version=0.1.5 version=0.1.6
author=Rob Tillaart <rob.tillaart@gmail.com> author=Rob Tillaart <rob.tillaart@gmail.com>
maintainer=Rob Tillaart <rob.tillaart@gmail.com> maintainer=Rob Tillaart <rob.tillaart@gmail.com>
sentence=Arduino library to control Optoma W305ST beamer over RS232. sentence=Arduino library to control Optoma W305ST beamer over RS232.

View File

@ -1,16 +1,16 @@
// //
// FILE: optoma.cpp // FILE: optoma.cpp
// AUTHOR: Rob Tillaart // AUTHOR: Rob Tillaart
// VERSION: 0.1.5 // VERSION: 0.1.6
// DATE: 2017-11-27 // 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 // URL: https://github.com/RobTillaart/optoma
#include "optoma.h" #include "optoma.h"
Optoma::Optoma(HardwareSerial* stream) Optoma::Optoma(HardwareSerial * stream)
{ {
_stream = stream; _stream = stream;
_ID = 0; _ID = 0;

View File

@ -2,21 +2,21 @@
// //
// FILE: Optoma.h // FILE: Optoma.h
// AUTHOR: Rob Tillaart // AUTHOR: Rob Tillaart
// VERSION: 0.1.5 // VERSION: 0.1.6
// DATE: 2017-11-27 // 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 // URL: https://github.com/RobTillaart/Optoma
#include "Arduino.h" #include "Arduino.h"
#define OPTOMA_LIB_VERSION (F("0.1.5")) #define OPTOMA_LIB_VERSION (F("0.1.6"))
class Optoma class Optoma
{ {
public: public:
Optoma(HardwareSerial* stream = &Serial); Optoma(HardwareSerial * stream = &Serial);
void init(int ID, uint32_t baudRate = 9600); void init(int ID, uint32_t baudRate = 9600);
uint32_t getBaudrate(); uint32_t getBaudrate();
@ -30,7 +30,7 @@ public:
void decreaseVKS(); void decreaseVKS();
private: private:
HardwareSerial* _stream; HardwareSerial * _stream;
int _ID = 0; int _ID = 0;
bool _on = false; bool _on = false;

View File

@ -64,4 +64,6 @@ unittest(test_constructor)
unittest_main() unittest_main()
// --------
// -- END OF FILE --