From 9665faf0568c6f65082cb1de615bface97888f7b Mon Sep 17 00:00:00 2001 From: Andrey Klimov Date: Mon, 2 Oct 2017 15:15:04 +0300 Subject: [PATCH] Apache 2.0 License added --- dmx.cpp | 19 +++++++++++++++++++ dmx.h | 20 ++++++++++++++++++++ inputs.cpp | 20 ++++++++++++++++++++ inputs.h | 20 ++++++++++++++++++++ item.cpp | 20 ++++++++++++++++++++ item.h | 19 +++++++++++++++++++ lighthub.ino | 38 ++++++++++++++++++++++++++++++-------- owSwitch.cpp | 19 +++++++++++++++++++ owSwitch.h | 20 ++++++++++++++++++++ owTerm.cpp | 21 +++++++++++++++++++++ owTerm.h | 20 ++++++++++++++++++++ utils.cpp | 20 ++++++++++++++++++++ utils.h | 20 ++++++++++++++++++++ 13 files changed, 268 insertions(+), 8 deletions(-) diff --git a/dmx.cpp b/dmx.cpp index 76e0f1c..5129c84 100644 --- a/dmx.cpp +++ b/dmx.cpp @@ -1,3 +1,22 @@ +/* Copyright © 2017 Andrey Klimov. All rights reserved. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +Homepage: http://lazyhome.ru +GIT: https://github.com/anklimov/lighthub +e-mail anklimov@gmail.com + +*/ #include "dmx.h" //#include //#include diff --git a/dmx.h b/dmx.h index 391d5d2..4ede4bd 100644 --- a/dmx.h +++ b/dmx.h @@ -1,3 +1,23 @@ +/* Copyright © 2017 Andrey Klimov. All rights reserved. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +Homepage: http://lazyhome.ru +GIT: https://github.com/anklimov/lighthub +e-mail anklimov@gmail.com + +*/ + #define D_UPDATED1 1 #define D_UPDATED2 2 #define D_UPDATED3 4 diff --git a/inputs.cpp b/inputs.cpp index 312f40f..a19c7a7 100644 --- a/inputs.cpp +++ b/inputs.cpp @@ -1,3 +1,23 @@ +/* Copyright © 2017 Andrey Klimov. All rights reserved. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +Homepage: http://lazyhome.ru +GIT: https://github.com/anklimov/lighthub +e-mail anklimov@gmail.com + +*/ + #include "inputs.h" #include "aJSON.h" #include "item.h" diff --git a/inputs.h b/inputs.h index 6500017..1c6673f 100644 --- a/inputs.h +++ b/inputs.h @@ -1,3 +1,23 @@ +/* Copyright © 2017 Andrey Klimov. All rights reserved. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +Homepage: http://lazyhome.ru +GIT: https://github.com/anklimov/lighthub +e-mail anklimov@gmail.com + +*/ + #include "aJSON.h" #define IN_ACTIVE_HIGH 128 // High level = PUSHED/ CLOSED/ ON othervise :Low Level diff --git a/item.cpp b/item.cpp index 600fedf..4aef93b 100644 --- a/item.cpp +++ b/item.cpp @@ -1,3 +1,23 @@ +/* Copyright © 2017 Andrey Klimov. All rights reserved. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +Homepage: http://lazyhome.ru +GIT: https://github.com/anklimov/lighthub +e-mail anklimov@gmail.com + +*/ + #include "item.h" #include "aJSON.h" #include diff --git a/item.h b/item.h index bad25f8..4da3546 100644 --- a/item.h +++ b/item.h @@ -1,3 +1,22 @@ +/* Copyright © 2017 Andrey Klimov. All rights reserved. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +Homepage: http://lazyhome.ru +GIT: https://github.com/anklimov/lighthub +e-mail anklimov@gmail.com + +*/ #define CH_DIMMER 0 //DMX 1 ch #define CH_RGBW 1 //DMX 4 ch diff --git a/lighthub.ino b/lighthub.ino index 8fb2cc1..6754d79 100644 --- a/lighthub.ino +++ b/lighthub.ino @@ -1,17 +1,39 @@ -/* +/* Copyright © 2017 Andrey Klimov. All rights reserved. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +Homepage: http://lazyhome.ru +GIT: https://github.com/anklimov/lighthub +e-mail anklimov@gmail.com + + + + * + * * Done: * MQMT/openhab * 1-wire * DMX - out * DMX IN * 1809 strip out - Modbus master Out - DHCP -json config -cli -PWM Out 7,8,9 -1-w relay out -Termostat out + * Modbus master Out + * DHCP + * JSON config + * cli + * PWM Out 7,8,9 + * 1-w relay out + * Termostat out + Todo === A/C control diff --git a/owSwitch.cpp b/owSwitch.cpp index 013a685..913e110 100644 --- a/owSwitch.cpp +++ b/owSwitch.cpp @@ -1,3 +1,22 @@ +/* Copyright © 2017 Andrey Klimov. (anklimov@gmail.com) All rights reserved. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +Homepage: http://lazyhome.ru +GIT: https://github.com/anklimov/lighthub + +*/ + #include "owSwitch.h" #include "owTerm.h" #include diff --git a/owSwitch.h b/owSwitch.h index be40357..975e9bd 100644 --- a/owSwitch.h +++ b/owSwitch.h @@ -1,3 +1,23 @@ +/* Copyright © 2017 Andrey Klimov. All rights reserved. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +Homepage: http://lazyhome.ru +GIT: https://github.com/anklimov/lighthub +e-mail anklimov@gmail.com + +*/ + //define APU_OFF #include #include diff --git a/owTerm.cpp b/owTerm.cpp index deccc3f..8cff549 100644 --- a/owTerm.cpp +++ b/owTerm.cpp @@ -1,3 +1,24 @@ +/* Copyright © 2017 Andrey Klimov. All rights reserved. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +Homepage: http://lazyhome.ru +GIT: https://github.com/anklimov/lighthub +e-mail anklimov@gmail.com + +*/ + + #include "owTerm.h" #include #include "utils.h" diff --git a/owTerm.h b/owTerm.h index 7f39c5c..5c2494a 100644 --- a/owTerm.h +++ b/owTerm.h @@ -1,3 +1,23 @@ +/* Copyright © 2017 Andrey Klimov. All rights reserved. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +Homepage: http://lazyhome.ru +GIT: https://github.com/anklimov/lighthub +e-mail anklimov@gmail.com + +*/ + //define APU_OFF #define SW_AUX0 0x40 diff --git a/utils.cpp b/utils.cpp index dca67ea..f4ef021 100644 --- a/utils.cpp +++ b/utils.cpp @@ -1,3 +1,23 @@ +/* Copyright © 2017 Andrey Klimov. All rights reserved. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +Homepage: http://lazyhome.ru +GIT: https://github.com/anklimov/lighthub +e-mail anklimov@gmail.com + +*/ + #include "utils.h" void PrintBytes(uint8_t* addr, uint8_t count, bool newline) { diff --git a/utils.h b/utils.h index 5e10133..bda9214 100644 --- a/utils.h +++ b/utils.h @@ -1,3 +1,23 @@ +/* Copyright © 2017 Andrey Klimov. All rights reserved. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +Homepage: http://lazyhome.ru +GIT: https://github.com/anklimov/lighthub +e-mail anklimov@gmail.com + +*/ + #include void PrintBytes(uint8_t* addr, uint8_t count, bool newline=0); void SetBytes(uint8_t* addr, uint8_t count, char * out);