diff --git a/libraries/Par27979/LICENSE b/libraries/Par27979/LICENSE index 240dc45f..69275c90 100644 --- a/libraries/Par27979/LICENSE +++ b/libraries/Par27979/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2010-2021 Rob Tillaart +Copyright (c) 2010-2022 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 diff --git a/libraries/Par27979/Par27979.h b/libraries/Par27979/Par27979.h index 6f0e01de..76c02dc7 100644 --- a/libraries/Par27979/Par27979.h +++ b/libraries/Par27979/Par27979.h @@ -2,7 +2,7 @@ // // FILE: PAR27979.h // AUTHOR: Rob Tillaart -// VERSION: 0.2.2 +// VERSION: 0.2.3 // PURPOSE: Arduino library for Parallax 27979 _serial LCD display // URL: https://github.com/RobTillaart/PAR27979 // @@ -11,13 +11,14 @@ // 0.2.0 2020-06-23 complete redo as class // also support for 27976, 27977 (not tested) // 0.2.1 2021-01-03 Arduino-CI + unit test -// 0.2.2 2021-11-10 Update Arduino-CI, -// update readme.md + badges, +// 0.2.2 2021-11-10 Update Arduino-CI, +// update readme.md + badges, // fix version number // update Print interface +// 0.2.3 2021-12-22 update library.json, license, minor edits -#define PAR27929_LIB_VERSION (F("0.2.2")) +#define PAR27929_LIB_VERSION (F("0.2.3")) #include "Arduino.h" @@ -69,9 +70,9 @@ public: // PRINT interface size_t write(const uint8_t data) { return _ser->write(data); }; - size_t write(const uint8_t * data, uint8_t length) + size_t write(const uint8_t * data, uint8_t length) { - return _ser->write(data, length); + return _ser->write(data, length); }; @@ -79,4 +80,6 @@ private: Stream *_ser; }; + // -- END OF FILE -- + diff --git a/libraries/Par27979/examples/PAR27979_demo/PAR27979_demo.ino b/libraries/Par27979/examples/PAR27979_demo/PAR27979_demo.ino index 463c4ab8..92b7e1a7 100644 --- a/libraries/Par27979/examples/PAR27979_demo/PAR27979_demo.ino +++ b/libraries/Par27979/examples/PAR27979_demo/PAR27979_demo.ino @@ -1,11 +1,10 @@ // // FILE: par27979_demo.ino // AUTHOR: Rob Tillaart -// VERSION: 0.1.0 // PURPOSE: demo // DATE: 2020-06-23 // (c) : MIT -// + #include @@ -80,3 +79,4 @@ void loop() // -- END OF FILE -- + diff --git a/libraries/Par27979/examples/PAR27979_demo2/PAR27979_demo2.ino b/libraries/Par27979/examples/PAR27979_demo2/PAR27979_demo2.ino index 26767e6b..6f4d4799 100644 --- a/libraries/Par27979/examples/PAR27979_demo2/PAR27979_demo2.ino +++ b/libraries/Par27979/examples/PAR27979_demo2/PAR27979_demo2.ino @@ -1,11 +1,9 @@ // // FILE: par27979_demo.ino // AUTHOR: Rob Tillaart -// VERSION: 0.1.0 // PURPOSE: demo // DATE: 2020-06-23 // (c) : MIT -// #include "PAR27979.h" @@ -76,3 +74,4 @@ void loop() // -- END OF FILE -- + diff --git a/libraries/Par27979/library.json b/libraries/Par27979/library.json index be4e558d..ed25e527 100644 --- a/libraries/Par27979/library.json +++ b/libraries/Par27979/library.json @@ -15,8 +15,9 @@ "type": "git", "url": "https://github.com/RobTillaart/PAR27979.git" }, - "version": "0.2.2", + "version": "0.2.3", "license": "MIT", "frameworks": "arduino", - "platforms": "*" + "platforms": "*", + "headers": "PAR27979.h" } diff --git a/libraries/Par27979/library.properties b/libraries/Par27979/library.properties index 3b179f82..88e94594 100644 --- a/libraries/Par27979/library.properties +++ b/libraries/Par27979/library.properties @@ -1,5 +1,5 @@ name=PAR27979 -version=0.2.2 +version=0.2.3 author=Rob Tillaart maintainer=Rob Tillaart sentence=Arduino library for Parallax 27979 serial LCD display. diff --git a/libraries/Par27979/readme.md b/libraries/Par27979/readme.md index c60b99e0..f888286c 100644 --- a/libraries/Par27979/readme.md +++ b/libraries/Par27979/readme.md @@ -17,6 +17,8 @@ The library is essentially a wrapper around a Stream, typically Serial, Serial2 (3,4..) or newSoftSerial or equivalent. This stream is given as parameter in the constructor. +Should work for 27976 and 27977 display although not tested. + ## Interface @@ -57,7 +59,7 @@ see datasheet. - **void octave(uint8_t octave)** octave = 3 4 5 6 7 - **void duration(uint8_t duration)** duration = 1 2 4 8 16 32 64 -- **void play(uint8_t note)** note = 0 1 2 3 4 5 6 7 8 9 10 11 0=A 1=A# etc +- **void play(uint8_t note)** note = 0 1 2 3 4 5 6 7 8 9 10 11 0=A 1=A# etc. - **void noSound()** idem. diff --git a/libraries/Par27979/test/unit_test_001.cpp b/libraries/Par27979/test/unit_test_001.cpp index ba5695b2..18f9f291 100644 --- a/libraries/Par27979/test/unit_test_001.cpp +++ b/libraries/Par27979/test/unit_test_001.cpp @@ -37,6 +37,7 @@ unittest_setup() { + fprintf(stderr, "VERSION: %s\n", (char *) PAR27929_LIB_VERSION); } unittest_teardown() @@ -49,8 +50,6 @@ unittest_teardown() unittest(test_constructor) { - fprintf(stderr, "VERSION: %s\n", (char *) PAR27929_LIB_VERSION); - PAR27979 display(&Serial); assertEqual(1, display.write(232)); // no sound