mirror of
https://github.com/RobTillaart/Arduino.git
synced 2024-10-03 18:09:02 -04:00
0.1.9 PinInGroup
This commit is contained in:
parent
7fdd4fab98
commit
d80140f4ec
@ -6,6 +6,10 @@ 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.9] - 2023-11-15
|
||||||
|
- update readme.md
|
||||||
|
|
||||||
|
|
||||||
## [0.1.8] - 2022-11-22
|
## [0.1.8] - 2022-11-22
|
||||||
- add changelog.md
|
- add changelog.md
|
||||||
- add RP2040 in build
|
- add RP2040 in build
|
||||||
@ -14,7 +18,6 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
|||||||
- update unit test
|
- update unit test
|
||||||
- add PININGROUP_ERROR_PIN
|
- add PININGROUP_ERROR_PIN
|
||||||
|
|
||||||
|
|
||||||
## [0.1.7] - 2022-08-04
|
## [0.1.7] - 2022-08-04
|
||||||
- fix getIdx() to fix build-CI.
|
- fix getIdx() to fix build-CI.
|
||||||
|
|
||||||
@ -43,7 +46,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
|||||||
## [0.1.1] - 2020-05-19
|
## [0.1.1] - 2020-05-19
|
||||||
- refactor
|
- refactor
|
||||||
- add clear()
|
- add clear()
|
||||||
- add param for INPUT or INPUT_PULLUP
|
- add parameter for INPUT or INPUT_PULLUP
|
||||||
|
|
||||||
## [0.1.0] - 2017-08-20
|
## [0.1.0] - 2017-08-20
|
||||||
- initial version (based upon pinGroup)
|
- initial version (based upon pinGroup)
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//
|
//
|
||||||
// FILE: PinInGroup.cpp
|
// FILE: PinInGroup.cpp
|
||||||
// AUTHOR: Rob Tillaart
|
// AUTHOR: Rob Tillaart
|
||||||
// VERSION: 0.1.8
|
// VERSION: 0.1.9
|
||||||
// DATE: 2017-04-26
|
// DATE: 2017-04-26
|
||||||
// PURPOSE: PinInGroup library for Arduino
|
// PURPOSE: PinInGroup library for Arduino
|
||||||
// goal is to easily read a group of pins that logically
|
// goal is to easily read a group of pins that logically
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
// FILE: PinInGroup.h
|
// FILE: PinInGroup.h
|
||||||
// AUTHOR: Rob dot Tillaart at gmail dot com
|
// AUTHOR: Rob Tillaart
|
||||||
// VERSION: 0.1.8
|
// VERSION: 0.1.9
|
||||||
// DATE: 2017-04-26
|
// DATE: 2017-04-26
|
||||||
// PURPOSE: PinInGroup library for Arduino
|
// PURPOSE: PinInGroup library for Arduino
|
||||||
//
|
//
|
||||||
@ -12,7 +12,7 @@
|
|||||||
#include "Arduino.h"
|
#include "Arduino.h"
|
||||||
|
|
||||||
|
|
||||||
#define PININGROUP_LIB_VERSION (F("0.1.8"))
|
#define PININGROUP_LIB_VERSION (F("0.1.9"))
|
||||||
|
|
||||||
|
|
||||||
// smaller MAXSIZE will reduce memory footprint with ditto bytes.
|
// smaller MAXSIZE will reduce memory footprint with ditto bytes.
|
||||||
|
@ -2,8 +2,11 @@
|
|||||||
[![Arduino CI](https://github.com/RobTillaart/PinInGroup/workflows/Arduino%20CI/badge.svg)](https://github.com/marketplace/actions/arduino_ci)
|
[![Arduino CI](https://github.com/RobTillaart/PinInGroup/workflows/Arduino%20CI/badge.svg)](https://github.com/marketplace/actions/arduino_ci)
|
||||||
[![Arduino-lint](https://github.com/RobTillaart/PinInGroup/actions/workflows/arduino-lint.yml/badge.svg)](https://github.com/RobTillaart/PinInGroup/actions/workflows/arduino-lint.yml)
|
[![Arduino-lint](https://github.com/RobTillaart/PinInGroup/actions/workflows/arduino-lint.yml/badge.svg)](https://github.com/RobTillaart/PinInGroup/actions/workflows/arduino-lint.yml)
|
||||||
[![JSON check](https://github.com/RobTillaart/PinInGroup/actions/workflows/jsoncheck.yml/badge.svg)](https://github.com/RobTillaart/PinInGroup/actions/workflows/jsoncheck.yml)
|
[![JSON check](https://github.com/RobTillaart/PinInGroup/actions/workflows/jsoncheck.yml/badge.svg)](https://github.com/RobTillaart/PinInGroup/actions/workflows/jsoncheck.yml)
|
||||||
|
[![GitHub issues](https://img.shields.io/github/issues/RobTillaart/PinInGroup.svg)](https://github.com/RobTillaart/PinInGroup/issues)
|
||||||
|
|
||||||
[![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/RobTillaart/PinInGroup/blob/master/LICENSE)
|
[![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/RobTillaart/PinInGroup/blob/master/LICENSE)
|
||||||
[![GitHub release](https://img.shields.io/github/release/RobTillaart/PinInGroup.svg?maxAge=3600)](https://github.com/RobTillaart/PinInGroup/releases)
|
[![GitHub release](https://img.shields.io/github/release/RobTillaart/PinInGroup.svg?maxAge=3600)](https://github.com/RobTillaart/PinInGroup/releases)
|
||||||
|
[![PlatformIO Registry](https://badges.registry.platformio.org/packages/robtillaart/library/PinInGroup.svg)](https://registry.platformio.org/libraries/robtillaart/PinInGroup)
|
||||||
|
|
||||||
|
|
||||||
# PinInGroup
|
# PinInGroup
|
||||||
@ -26,6 +29,11 @@ This allows you to check that state of e.g. a parallel bus has not changed durin
|
|||||||
Default **PININGROUP_MAXSIZE** = 16.
|
Default **PININGROUP_MAXSIZE** = 16.
|
||||||
|
|
||||||
|
|
||||||
|
#### Related
|
||||||
|
|
||||||
|
- https://github.com/RobTillaart/PinOutGroup
|
||||||
|
|
||||||
|
|
||||||
## Performance
|
## Performance
|
||||||
|
|
||||||
The PinInGroup is not more efficient as reading the pins in a loop yourself.
|
The PinInGroup is not more efficient as reading the pins in a loop yourself.
|
||||||
@ -38,11 +46,15 @@ This is platform, group size and pin state dependent.
|
|||||||
|
|
||||||
## Interface
|
## Interface
|
||||||
|
|
||||||
|
```cpp
|
||||||
|
#include "PinInGroup.h"
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
### Constructor
|
### Constructor
|
||||||
|
|
||||||
- **PinInGroup()** Constructor.
|
- **PinInGroup()** Constructor.
|
||||||
|
|
||||||
|
|
||||||
### Administration
|
### Administration
|
||||||
|
|
||||||
- **void clear()** sets the size to zero so one can repopulate.
|
- **void clear()** sets the size to zero so one can repopulate.
|
||||||
@ -86,20 +98,19 @@ See examples.
|
|||||||
|
|
||||||
These ideas will be explored when time permits or needs arise.
|
These ideas will be explored when time permits or needs arise.
|
||||||
|
|
||||||
#### must
|
#### Must
|
||||||
|
|
||||||
- improve documentation
|
- improve documentation
|
||||||
- move code from .h to .cpp
|
- move code from .h to .cpp
|
||||||
|
|
||||||
#### should
|
#### Should
|
||||||
|
|
||||||
- add real live examples
|
- add real live examples
|
||||||
- Allocate dynamic memory (0.2.0)
|
- Allocate dynamic memory (0.2.0)
|
||||||
- fragmentation?
|
- fragmentation?
|
||||||
- would be memory efficient.
|
- would be memory efficient.
|
||||||
|
|
||||||
|
#### Could
|
||||||
#### could
|
|
||||||
|
|
||||||
- Optimize the low level reading e.g. reading registers only once.
|
- Optimize the low level reading e.g. reading registers only once.
|
||||||
- Hold register and bit info per pin.
|
- Hold register and bit info per pin.
|
||||||
@ -114,3 +125,14 @@ These ideas will be explored when time permits or needs arise.
|
|||||||
- getIndex()
|
- getIndex()
|
||||||
- getPin()
|
- getPin()
|
||||||
|
|
||||||
|
#### Wont
|
||||||
|
|
||||||
|
|
||||||
|
## Support
|
||||||
|
|
||||||
|
If you appreciate my libraries, you can support the development and maintenance.
|
||||||
|
Improve the quality of the libraries by providing issues and Pull Requests, or
|
||||||
|
donate through PayPal or GitHub sponsors.
|
||||||
|
|
||||||
|
Thank you,
|
||||||
|
|
||||||
|
@ -15,9 +15,9 @@
|
|||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/RobTillaart/PinInGroup.git"
|
"url": "https://github.com/RobTillaart/PinInGroup.git"
|
||||||
},
|
},
|
||||||
"version": "0.1.8",
|
"version": "0.1.9",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"frameworks": "arduino",
|
"frameworks": "*",
|
||||||
"platforms": "*",
|
"platforms": "*",
|
||||||
"headers": "PinInGroup.h"
|
"headers": "PinInGroup.h"
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
name=PinInGroup
|
name=PinInGroup
|
||||||
version=0.1.8
|
version=0.1.9
|
||||||
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=A class that groups input pins so they can be read in one logical step.
|
sentence=A class that groups input pins so they can be read in one logical step.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user