0.2.4 Par27979

This commit is contained in:
rob tillaart 2022-11-19 14:49:48 +01:00
parent 4bca1212b1
commit b6ba560a83
5 changed files with 71 additions and 29 deletions

View File

@ -1,11 +1,28 @@
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
# - due
# - zero
# - leonardo
# - m4
- m4
- esp32
- esp8266
- mega2560
# - esp8266
# - mega2560
- rpipico

View File

@ -0,0 +1,35 @@
# Change Log PAR27979
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.4] - 2022-11-19
- add RP2040 in build-CI
- add changelog.md
## [0.2.3] - 2021-12-22
- update library.json, license, minor edits
## [0.2.2] - 2021-11-10
- Update Arduino-CI,
- update readme.md + badges,
- fix version number
- update Print interface
## [0.2.1] - 2021-01-03
- add Arduino-CI + unit test
## [0.2.0] - 2020-06-23
- complete redo as class
- support for 27976, 27977 (not tested)
----
.... eons ago ...
## [0.1.0] - 2010-03-06
- initial version, Macro's only

View File

@ -2,23 +2,13 @@
//
// FILE: PAR27979.h
// AUTHOR: Rob Tillaart
// VERSION: 0.2.3
// VERSION: 0.2.4
// PURPOSE: Arduino library for Parallax 27979 _serial LCD display
// URL: https://github.com/RobTillaart/PAR27979
//
// HISTORY:
// 0.1.0 2010-03-06 initial version Macro's only
// 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,
// 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.3"))
#define PAR27929_LIB_VERSION (F("0.2.4"))
#include "Arduino.h"
@ -36,15 +26,15 @@ public:
void backlightOff() { _ser->write(18); };
// MOVEMENT
// MOVEMENT
void left() { _ser->write(8); };
void right() { _ser->write(9); };
void down() { _ser->write(10); };
void gotoXY(uint8_t x, uint8_t y) { _ser->write(128 + y*20 + x); };
// CUSTOM CHARS
// array will need to be 8 bytes. - see datasheet.
// CUSTOM CHARS
// array will need to be 8 bytes. - see datasheet.
void defineCustomChar(uint8_t idx, uint8_t * arr)
{
_ser->write(248 + idx);
@ -53,22 +43,22 @@ public:
void customChar(uint8_t idx) { _ser->write(idx); };
// PLAY MUSIC
// octave = 3, 4, 5, 6, 7
// PLAY MUSIC
// octave = 3, 4, 5, 6, 7
void octave(uint8_t octave) { _ser->write(212 + octave); };
// duration is in 1/64 = 1, 2, 4, 8, 16, 32, 64
// duration is in 1/64 = 1, 2, 4, 8, 16, 32, 64
void duration(uint8_t duration)
{
uint8_t ch = 207;
while(duration) { duration /= 2; ch++; };
_ser->write(ch);
}
// A = 0, A# = 1 etc, see datasheet
// A = 0, A# = 1 etc, see datasheet
void play(uint8_t note) { _ser->write(220 + note); };
void noSound() { _ser->write(232); };
// PRINT interface
// PRINT interface
size_t write(const uint8_t data) { return _ser->write(data); };
size_t write(const uint8_t * data, uint8_t length)
{
@ -81,5 +71,5 @@ private:
};
// -- END OF FILE --
// -- END OF FILE --

View File

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

View File

@ -1,5 +1,5 @@
name=PAR27979
version=0.2.3
version=0.2.4
author=Rob Tillaart <rob.tillaart@gmail.com>
maintainer=Rob Tillaart <rob.tillaart@gmail.com>
sentence=Arduino library for Parallax 27979 serial LCD display.