0.2.1 rotaryDecoderSwitch

This commit is contained in:
Rob Tillaart 2024-01-06 14:13:22 +01:00
parent adb5493ebe
commit 61683ef3e6
10 changed files with 28 additions and 23 deletions

View File

@ -6,6 +6,11 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).
## [0.2.1] - 2024-01-06
- Fix URL examples
- minor edits
## [0.2.0] - 2023-11-21
- simplify begin() interface - breaking change
- update readme.md

View File

@ -1,6 +1,6 @@
MIT License
Copyright (c) 2021-2023 Rob Tillaart
Copyright (c) 2021-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

View File

@ -2,7 +2,8 @@
// FILE: rotaryDecoderSwitch_demo_interrupt.ino
// AUTHOR: Rob Tillaart
// DATE: 2021-05-17
// PUPROSE: demo
// PURPOSE: demo
// URL: https://github.com/RobTillaart/rotaryDecoderSwitch
//
// connect up to 2 rotary encoders with a switch to 1 PCF8574.
//
@ -22,7 +23,6 @@
//
#include "Wire.h"
#include "rotaryDecoderSwitch.h"
rotaryDecoderSwitch decoder(0x20);
@ -70,9 +70,9 @@ void loop()
Serial.println();
}
// other tasks...
// other tasks...
}
// -- END OF FILE --
// -- END OF FILE --

View File

@ -2,7 +2,8 @@
// FILE: rotaryDecoderSwitch_demo_polling.ino
// AUTHOR: Rob Tillaart
// DATE: 2021-05-17
// PUPROSE: demo
// PURPOSE: demo
// URL: https://github.com/RobTillaart/rotaryDecoderSwitch
//
// connect up to 2 rotary encoders with a switch to 1 PCF8574.
//
@ -22,7 +23,6 @@
//
#include "Wire.h"
#include "rotaryDecoderSwitch.h"
rotaryDecoderSwitch decoder(0x20);
@ -57,9 +57,9 @@ void loop()
Serial.println();
}
// other tasks...
// other tasks...
}
// -- END OF FILE --
// -- END OF FILE --

View File

@ -2,7 +2,8 @@
// FILE: rotaryDecoderSwitch_demo_simple.ino
// AUTHOR: Rob Tillaart
// DATE: 2021-05-17
// PUPROSE: demo
// PURPOSE: demo
// URL: https://github.com/RobTillaart/rotaryDecoderSwitch
//
// connect up to 2 rotary encoders with a switch to 1 PCF8574.
//
@ -22,7 +23,6 @@
//
#include "Wire.h"
#include "rotaryDecoderSwitch.h"
rotaryDecoderSwitch decoder(0x20);
@ -44,8 +44,8 @@ void setup()
void loop()
{
// if one of the counters is updated, print them.
// update() will not check if a key is pressed.
// if one of the counters is updated, print them.
// update() will not check if a key is pressed.
if (decoder.update())
{
for (uint8_t i = 0; i < 2; i++)
@ -58,9 +58,9 @@ void loop()
Serial.println();
}
// other tasks...
// other tasks...
}
// -- END OF FILE --
// -- END OF FILE --

View File

@ -2,7 +2,8 @@
// FILE: rotaryDecoderSwitch_performance.ino
// AUTHOR: Rob Tillaart
// DATE: 2021-05-17
// PUPROSE: demo
// PURPOSE: measure I2C performance
// URL: https://github.com/RobTillaart/rotaryDecoderSwitch
//
// connect up to 2 rotary encoders with a switch to 1 PCF8574.
//
@ -22,7 +23,6 @@
//
#include "Wire.h"
#include "rotaryDecoderSwitch.h"
rotaryDecoderSwitch decoder(0x20);
@ -62,5 +62,5 @@ void loop()
}
// -- END OF FILE --
// -- END OF FILE --

View File

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

View File

@ -1,5 +1,5 @@
name=rotaryDecoderSwitch
version=0.2.0
version=0.2.1
author=Rob Tillaart <rob.tillaart@gmail.com>
maintainer=Rob Tillaart <rob.tillaart@gmail.com>
sentence=Arduino library for rotary decoder+switch with a PCF8574

View File

@ -1,7 +1,7 @@
//
// FILE: rotaryDecoderSwitch.cpp
// AUTHOR: Rob Tillaart
// VERSION: 0.2.0
// VERSION: 0.2.1
// DATE: 2021-05-17
// PURPOSE: Arduino library for rotary decoder (with switch)
// URL: https://github.com/RobTillaart/rotaryDecoderSwitch

View File

@ -2,7 +2,7 @@
//
// FILE: rotaryDecoderSwitch.h
// AUTHOR: Rob Tillaart
// VERSION: 0.2.0
// VERSION: 0.2.1
// DATE: 2021-05-17
// PURPOSE: Arduino library for rotary decoder (with switch)
// URL: https://github.com/RobTillaart/rotaryDecoderSwitch
@ -11,7 +11,7 @@
#include "Arduino.h"
#include "Wire.h"
#define ROTARY_DECODER_SWITCH_LIB_VERSION (F("0.2.0"))
#define ROTARY_DECODER_SWITCH_LIB_VERSION (F("0.2.1"))
class rotaryDecoderSwitch