Skip to content

Commit

Permalink
Release 1.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoHood committed Feb 10, 2018
1 parent 5e024d0 commit e1530b7
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
7 changes: 5 additions & 2 deletions RCLSwitch.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (c) 2014-2016 NicoHood
Copyright (c) 2014-2018 NicoHood
See the readme for credit to other people.
Permission is hereby granted, free of charge, to any person obtaining a copy
Expand All @@ -25,9 +25,11 @@ THE SOFTWARE.
#pragma once

// Software version
#define RCLSWITCH_VERSION 140
#define RCLSWITCH_VERSION 141

#ifdef ARDUINO
#include "Arduino.h"
#endif

// Definitions for the tiny DIP switch to set channel and button trigger
#define RCL_DIP(a, b, c, d, e) (((a) & 0x01 << 4) | ((b) & 0x01 << 3) \
Expand Down Expand Up @@ -61,6 +63,7 @@ class CRCLSwitch{
inline void end(void){
// End transmitting mode
pinMode(pin, INPUT);
digitalWrite(pin, LOW);
}

inline void write(const uint8_t channel, const uint8_t button, const bool state){
Expand Down
10 changes: 7 additions & 3 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
RCLSwitch 1.4
=============
RCLSwitch 1.4.1
===============

Compact version of RC Switch for sending TYPE A 10 Dip Switch signals only.
It saves a lot of memory.
Expand All @@ -10,6 +10,10 @@ Original, full Library with receiving and other unit types (A, B, C):
Version History
===============
```
1.4.1 (10.02.2018)
* Added makefile compilation option without Arduino core
* Turn digital pin off when using end()
1.4 (05.03.2016)
* Added Template
* Made code more compact
Expand All @@ -30,7 +34,7 @@ License and Copyright
=====================

```
Copyright (c) 2014-2016 NicoHood
Copyright (c) 2014-2018 NicoHood
See the readme for credit to other people.
Permission is hereby granted, free of charge, to any person obtaining a copy
Expand Down
4 changes: 2 additions & 2 deletions library.properties
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name=RCLSwitch
version=1.4
version=1.4.1
author=NicoHood
maintainer=NicoHood <blog@nicohood.de>
sentence=Compact version of RC Switch
sentence=Compact version of RC Switch
paragraph=RCLSwitch is capable of sending TYPE A 10 Dip Switch signals only, but with a very compact implementation.
category=Signal Input/Output
url=https://github.com/NicoHood/RCLSwitch
Expand Down

0 comments on commit e1530b7

Please sign in to comment.