diff --git a/libraries/SIMON/.arduino-ci.yml b/libraries/SIMON/.arduino-ci.yml new file mode 100644 index 00000000..b4ab412d --- /dev/null +++ b/libraries/SIMON/.arduino-ci.yml @@ -0,0 +1,27 @@ +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: + - uno + # - due + # - zero + # - leonardo + - m4 + - esp32 + - esp8266 + # - mega2560 + - rpipico diff --git a/libraries/SIMON/CHANGELOG.md b/libraries/SIMON/CHANGELOG.md new file mode 100644 index 00000000..6f5f4ff2 --- /dev/null +++ b/libraries/SIMON/CHANGELOG.md @@ -0,0 +1,16 @@ +# Change Log SIMON + +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.1.1] - 2022-11-24 +- Add RP2040 support to build-CI. +- Add CHANGELOG.md + + +## [0.1.0] - 2022-05-26 +- initial version + diff --git a/libraries/SIMON/library.json b/libraries/SIMON/library.json index 360aa65c..39e11d91 100644 --- a/libraries/SIMON/library.json +++ b/libraries/SIMON/library.json @@ -15,7 +15,7 @@ "type": "git", "url": "https://github.com/RobTillaart/SIMON" }, - "version": "0.1.0", + "version": "0.1.1", "license": "MIT", "frameworks": "arduino", "platforms": "*", diff --git a/libraries/SIMON/library.properties b/libraries/SIMON/library.properties index 11f759bc..2d254786 100644 --- a/libraries/SIMON/library.properties +++ b/libraries/SIMON/library.properties @@ -1,5 +1,5 @@ name=SIMON -version=0.1.0 +version=0.1.1 author=Rob Tillaart maintainer=Rob Tillaart sentence=Arduino library to build the "Simon says" game or a digital lock. diff --git a/libraries/SIMON/simon.cpp b/libraries/SIMON/simon.cpp index b50ab552..fcd11f3b 100644 --- a/libraries/SIMON/simon.cpp +++ b/libraries/SIMON/simon.cpp @@ -2,12 +2,9 @@ // FILE: simon.cpp // AUTHOR: Rob Tillaart // DATE: 2022-05-26 -// VERSION: 0.1.0 +// VERSION: 0.1.1 // PURPOSE: Arduino library for SIMON // URL: https://github.com/RobTillaart/SIMON -// -// HISTORY: -// 0.1.0 2022-05-26 initial version #include "simon.h" @@ -115,5 +112,5 @@ uint8_t SIMON::maxSize() } -// -- END OF FILE -- +// -- END OF FILE -- diff --git a/libraries/SIMON/simon.h b/libraries/SIMON/simon.h index 577a45f7..9914746f 100644 --- a/libraries/SIMON/simon.h +++ b/libraries/SIMON/simon.h @@ -3,17 +3,18 @@ // FILE: simon.h // AUTHOR: Rob Tillaart // DATE: 2022-05-26 -// VERSION: 0.1.0 +// VERSION: 0.1.1 // PURPOSE: Arduino library for SIMON // URL: https://github.com/RobTillaart/SIMON #include "Arduino.h" -#define SIMON_LIB_VERSION (F("0.1.0")) +#define SIMON_LIB_VERSION (F("0.1.1")) #define SIMON_MAXSIZE 10 + class SIMON { public: diff --git a/libraries/SIMON/test/unit_test_001.cpp b/libraries/SIMON/test/unit_test_001.cpp index 756e5a53..b2217b86 100644 --- a/libraries/SIMON/test/unit_test_001.cpp +++ b/libraries/SIMON/test/unit_test_001.cpp @@ -46,6 +46,12 @@ unittest_teardown() } +unittest(test_constants) +{ + assertEqual(10, SIMON_MAXSIZE); +} + + unittest(test_constructor) { SIMON simon;