update library.json, license, minor edits (#6)

This commit is contained in:
Rob Tillaart 2021-12-23 10:04:07 +01:00 committed by GitHub
parent dd8cc40840
commit ef43c007e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 41 additions and 35 deletions

View File

@ -1,6 +1,6 @@
MIT License MIT License
Copyright (c) 2013-2021 Rob Tillaart Copyright (c) 2013-2022 Rob Tillaart
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal

View File

@ -1,7 +1,7 @@
// //
// FILE: ParallelPrinter.cpp // FILE: ParallelPrinter.cpp
// AUTHOR: Rob Tillaart // AUTHOR: Rob Tillaart
// VERSION: 0.2.3 // VERSION: 0.2.4
// PURPOSE: parallel printer class that implements the Print interface // PURPOSE: parallel printer class that implements the Print interface
// DATE: 2013-09-30 // DATE: 2013-09-30
// URL: https://github.com/RobTillaart/ParallelPrinter // URL: https://github.com/RobTillaart/ParallelPrinter
@ -13,6 +13,7 @@
// 0.2.2 2021-01-14 update readme, add linefeed(), add keywords.txt // 0.2.2 2021-01-14 update readme, add linefeed(), add keywords.txt
// 0.2.3 2021-11-11 update Arduino-CI, readme,md // 0.2.3 2021-11-11 update Arduino-CI, readme,md
// add isBusy(); // add isBusy();
// 0.2.4 2021-12-23 update library.json, license, minor edits
#include "ParallelPrinter.h" #include "ParallelPrinter.h"
@ -168,3 +169,4 @@ void ParallelPrinter::sendByte(uint8_t c)
// -- END OF FILE -- // -- END OF FILE --

View File

@ -2,7 +2,7 @@
// //
// FILE: ParallelPrinter.h // FILE: ParallelPrinter.h
// AUTHOR: Rob Tillaart // AUTHOR: Rob Tillaart
// VERSION: 0.2.3 // VERSION: 0.2.4
// PURPOSE: parallel printer class that implements the Print interface // PURPOSE: parallel printer class that implements the Print interface
// DATE: 2013-09-30 // DATE: 2013-09-30
// URL: https://github.com/RobTillaart/ParallelPrinter // URL: https://github.com/RobTillaart/ParallelPrinter
@ -11,7 +11,7 @@
#include "Arduino.h" #include "Arduino.h"
#define PARALLELPRINTER_VERSION (F("0.2.3")) #define PARALLELPRINTER_VERSION (F("0.2.4"))
#define FORMFEED 12 #define FORMFEED 12
#define LINEFEED 10 #define LINEFEED 10
@ -54,6 +54,7 @@ public:
void setStrobeDelay(uint16_t n = 2000) { _strobeDelay = n; }; void setStrobeDelay(uint16_t n = 2000) { _strobeDelay = n; };
uint16_t getStrobeDelay() { return _strobeDelay; }; uint16_t getStrobeDelay() { return _strobeDelay; };
private: private:
// COMMUNICATION // COMMUNICATION
uint8_t _strobePin; // inform printer new data on the line. uint8_t _strobePin; // inform printer new data on the line.
@ -79,3 +80,4 @@ private:
// -- END OF FILE -- // -- END OF FILE --

View File

@ -86,13 +86,18 @@ https://en.wikipedia.org/wiki/Parallel_port#Centronics
- update documentation - update documentation
- extend unit tests? - extend unit tests?
- test more - test more.
- extend simulator sketch - extend simulator sketch.
- Make a front end of a parallel printer, - Make a front end of a parallel printer,
- Accepts the clocked bytes and print them e.g. over serial. - Accepts the clocked bytes and print them e.g. over serial.
- derive e.g. an HP or an EPSON printer from this class. - derive e.g. an HP or an EPSON printer from this class.
- special modes e.g. bold italic underline - special modes e.g. bold italic underline.
- **write(uint8_t \* buf, uint8_t length)** should be added
- might not really add to performance..
- fix blocking TODO in sendByte
## Operation ## Operation
See examples See examples.

View File

@ -1,11 +1,9 @@
// //
// FILE: ParPrinter_test.ino // FILE: ParPrinter_test.ino
// AUTHOR: Rob Tillaart // AUTHOR: Rob Tillaart
// VERSION: 0.1.0
// PURPOSE: demo // PURPOSE: demo
// DATE: 2020-05-26 // DATE: 2020-05-26
// (c) : MIT
//
#include "ParallelPrinter.h" #include "ParallelPrinter.h"
@ -83,3 +81,4 @@ void test3()
// -- END OF FILE -- // -- END OF FILE --

View File

@ -1,12 +1,9 @@
// //
// FILE: PrinterSimulator.ino // FILE: PrinterSimulator.ino
// AUTHOR: Rob Tillaart // AUTHOR: Rob Tillaart
// VERSION: 0.1.0
// PURPOSE: demo // PURPOSE: demo
// DATE: 2020-06-24 // DATE: 2020-06-24
// (c) : MIT //
// Simple parallel printer simulator, prints to serial... // Simple parallel printer simulator, prints to serial...
// version could be made with a shiftin register .... // version could be made with a shiftin register ....

View File

@ -1,11 +1,9 @@
// //
// FILE: Serial2ParPrinter.ino // FILE: Serial2ParPrinter.ino
// AUTHOR: Rob Tillaart // AUTHOR: Rob Tillaart
// VERSION: 0.1.1
// PURPOSE: demo // PURPOSE: demo
// DATE: 2020-05-26 // DATE: 2020-05-26
// (c) : MIT
//
#include "ParallelPrinter.h" #include "ParallelPrinter.h"
@ -32,3 +30,4 @@ void loop()
// -- END OF FILE -- // -- END OF FILE --

View File

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

View File

@ -1,5 +1,5 @@
name=ParallelPrinter name=ParallelPrinter
version=0.2.3 version=0.2.4
author=Rob Tillaart <rob.tillaart@gmail.com> author=Rob Tillaart <rob.tillaart@gmail.com>
maintainer=Rob Tillaart <rob.tillaart@gmail.com> maintainer=Rob Tillaart <rob.tillaart@gmail.com>
sentence=Experimental (not complete) library to connect a parallel printer to Arduino. sentence=Experimental (not complete) library to connect a parallel printer to Arduino.

View File

@ -38,12 +38,15 @@
unittest_setup() unittest_setup()
{ {
fprintf(stderr, "PARALLELPRINTER_VERSION: %s\n", (char *) PARALLELPRINTER_VERSION);
} }
unittest_teardown() unittest_teardown()
{ {
} }
/* /*
unittest(test_new_operator) unittest(test_new_operator)
{ {
@ -57,12 +60,10 @@ unittest(test_new_operator)
} }
*/ */
// minimal
// minimal
unittest(test_constructor_basic) unittest(test_constructor_basic)
{ {
fprintf(stderr, "VERSION: %s\n", PARALLELPRINTER_VERSION);
ParallelPrinter PP; ParallelPrinter PP;
PP.begin(); PP.begin();
@ -133,6 +134,7 @@ unittest(test_OutOfPaper)
// assertTrue(PP.isOutOfPaper()); // assertTrue(PP.isOutOfPaper());
} }
unittest_main() unittest_main()
// -------- // --------