mirror of
https://github.com/RobTillaart/Arduino.git
synced 2024-10-03 18:09:02 -04:00
0.2.3 Par27979
This commit is contained in:
parent
078bcbe4da
commit
804daaa289
@ -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
|
||||
|
@ -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
|
||||
//
|
||||
@ -15,9 +15,10 @@
|
||||
// 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"
|
||||
|
||||
@ -79,4 +80,6 @@ private:
|
||||
Stream *_ser;
|
||||
};
|
||||
|
||||
|
||||
// -- END OF FILE --
|
||||
|
||||
|
@ -1,11 +1,10 @@
|
||||
//
|
||||
// FILE: par27979_demo.ino
|
||||
// AUTHOR: Rob Tillaart
|
||||
// VERSION: 0.1.0
|
||||
// PURPOSE: demo
|
||||
// DATE: 2020-06-23
|
||||
// (c) : MIT
|
||||
//
|
||||
|
||||
|
||||
#include <SoftwareSerial.h>
|
||||
|
||||
@ -80,3 +79,4 @@ void loop()
|
||||
|
||||
|
||||
// -- END OF FILE --
|
||||
|
||||
|
@ -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 --
|
||||
|
||||
|
@ -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"
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
name=PAR27979
|
||||
version=0.2.2
|
||||
version=0.2.3
|
||||
author=Rob Tillaart <rob.tillaart@gmail.com>
|
||||
maintainer=Rob Tillaart <rob.tillaart@gmail.com>
|
||||
sentence=Arduino library for Parallax 27979 serial LCD display.
|
||||
|
@ -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.
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user