0.2.6 BoolArray

This commit is contained in:
rob tillaart 2022-10-29 17:05:43 +02:00
parent 6115e2c382
commit 9fffc38114
8 changed files with 90 additions and 27 deletions

View File

@ -1,3 +1,18 @@
platforms:
rpipico:
board: rp2040:rp2040:rpipico
package: rp2040:rp2040
gcc:
features:
defines:
- ARDUINO_ARCH_RP2040
warnings:
flags:
packages:
rp2040:rp2040:
url: https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json
compile:
# Choosing to run compilation tests on 2 different Arduino platforms
platforms:
@ -7,5 +22,9 @@ compile:
# - leonardo
- m4
- esp32
# - esp8266
# - mega2560
- esp8266
# - mega2560
- rpipico
libraries:
- "printHelpers"

View File

@ -1,23 +1,12 @@
//
// FILE: BoolArray.cpp
// AUTHOR: Rob Tillaart
// VERSION: 0.2.5
// VERSION: 0.2.6
// PURPOSE: BoolArray library for Arduino
// URL: https://github.com/RobTillaart/BoolArray.git
// http://forum.arduino.cc/index.php?topic=361167
// URL: https://github.com/RobTillaart/BoolArray.git
// http://forum.arduino.cc/index.php?topic=361167
//
// HISTORY
// 0.1.00 initial version
// 0.1.01 fixed constructor - Thanks WPD64 + error handling
// 0.1.02 added error handling
// 0.1.3 added toggle
// 0.1.4 2017-07-16 added masks for performance
// 0.2.0 2020-03-29 #pragma, readme.md,
// 0.2.1 2020-06-05 Fix library.json
// 0.2.2 2020-12-15 add arduino-CI + unit tests
// 0.2.3 2021-01-19 update readme
// 0.2.4 2021-10-19 update build-CI + badges
// 0.2.5 2021-12-12 update library.json, license, minor edits
// HISTORY: see changelog.md
#include "BoolArray.h"
@ -98,3 +87,4 @@ uint8_t BoolArray::setAll(const uint8_t value)
// -- END OF FILE --

View File

@ -2,19 +2,19 @@
//
// FILE: BoolArray.h
// AUTHOR: Rob Tillaart
// VERSION: 0.2.5
// VERSION: 0.2.6
// PURPOSE: BoolArray library for Arduino
// URL: https://github.com/RobTillaart/BoolArray.git
// BoolArray implement a compact array of booleans of max size 2000.
// For larger arrays one need to modify the code, or use BitArray.
// Tested on AVR only
// BoolArray implement a compact array of booleans of max size 2000.
// For larger arrays one need to modify the code, or use BitArray.
// Tested on AVR only
#include "Arduino.h"
#define BOOLARRAY_LIB_VERSION (F("0.2.5"))
#define BOOLARRAY_LIB_VERSION (F("0.2.6"))
#define BOOLARRAY_MAXSIZE (250 * 8) // 2000
@ -48,4 +48,6 @@ private:
uint8_t _bytes = 0;
};
// -- END OF FILE --

View File

@ -0,0 +1,53 @@
# Change Log boolArray
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).
## [0.2.6] - 2022-10-29
- add RP2040 to build-CI
- add changelog.md
- minor edit unit test
## [0.2.5] - 2021-12-12
- update library.json
- license
- minor edits
## [0.2.4] - 2021-10-19
- update build-CI + badges
## [0.2.3] - 2021-01-19
- update readme.md
## [0.2.2] - 2020-12-15
- add arduino-CI + unit tests
## [0.2.1] - 2020-06-05
- fix library.json
## [0.2.0] - 2020-03-29
- #pragma
- update readme.md
----
## [0.1.4] - 2017-07-16
- add masks for performance
## [0.1.3]
- add toggle()
## [0.1.02]
- add error handling
## [0.1.01]
- fix constructor - Thanks WPD64
- error handling
## [0.1.00] - 2015-12-06
- initial version

View File

@ -9,6 +9,7 @@ begin KEYWORD2
size KEYWORD2
memory KEYWORD2
setAll KEYWORD2
clear KEYWORD2
get KEYWORD2
set KEYWORD2

View File

@ -15,7 +15,7 @@
"type": "git",
"url": "https://github.com/RobTillaart/BoolArray.git"
},
"version": "0.2.5",
"version": "0.2.6",
"license": "MIT",
"frameworks": "arduino",
"platforms": "*",

View File

@ -1,5 +1,5 @@
name=BoolArray
version=0.2.5
version=0.2.6
author=Rob Tillaart <rob.tillaart@gmail.com>
maintainer=Rob Tillaart <rob.tillaart@gmail.com>
sentence=Arduino library for compact array of booleans of max size 2000 (UNO).

View File

@ -28,6 +28,7 @@
unittest_setup()
{
fprintf(stderr, "\tVERSION:\t %s\n", (char *) BOOLARRAY_LIB_VERSION);
}
unittest_teardown()
@ -47,8 +48,6 @@ unittest(test_constants)
unittest(test_constructor)
{
fprintf(stderr, "\tVERSION:\t %s\n", (char *) BOOLARRAY_LIB_VERSION);
BoolArray ba;
assertEqual(0, ba.size());
ba.begin(1000);
@ -112,7 +111,6 @@ unittest(test_clear)
ba.begin(1000);
assertEqual(1000, ba.size());
fprintf(stderr, "\t1000x setAll(1) -> clear() -> sum += get(i)\n");
int sum = 0;
ba.setAll(1);