-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d8750dd
commit dc6bf65
Showing
21 changed files
with
847 additions
and
146 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
\\.git/ | ||
.pioenvs/ | ||
.sconsign.dblite |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...G_SerialCommand-master/library.properties → .../DvG_SerialCommand-2.0/library.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
name=DvG_SerialCommand | ||
version=1.0.0 | ||
version=2.0.0 | ||
author=Dennis van Gils <[email protected]> | ||
maintainer=Dennis van Gils <[email protected]> | ||
sentence=Listen to the serial port for commands | ||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# Compiled Object files | ||
*.slo | ||
*.lo | ||
*.o | ||
*.obj | ||
|
||
# Precompiled Headers | ||
*.gch | ||
*.pch | ||
|
||
# Compiled Dynamic libraries | ||
*.so | ||
*.dylib | ||
*.dll | ||
|
||
# Fortran module files | ||
*.mod | ||
|
||
# Compiled Static libraries | ||
*.lai | ||
*.la | ||
*.a | ||
*.lib | ||
|
||
# Executables | ||
*.exe | ||
*.out | ||
*.app | ||
|
||
.DS_Store | ||
/.idea | ||
/build | ||
/bin | ||
/lib | ||
/sftp-config.json | ||
.tags | ||
.tags_sorted_by_file | ||
|
||
# for platformio on vscode | ||
platformio.ini | ||
main.cpp | ||
/.pio | ||
/.vscode | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* | ||
Streaming.h - Arduino library for supporting the << streaming operator | ||
Copyright (c) 2010-2012 Mikal Hart. All rights reserved. | ||
|
||
This library is free software; you can redistribute it and/or | ||
modify it under the terms of the GNU Lesser General Public | ||
License as published by the Free Software Foundation; either | ||
version 2.1 of the License, or (at your option) any later version. | ||
|
||
This library is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
Lesser General Public License for more details. | ||
|
||
You should have received a copy of the GNU Lesser General Public | ||
License along with this library; if not, write to the Free Software | ||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#+TITLE: Streaming | ||
#+AUTHOR: Mikal Hart | ||
#+EMAIL: [email protected] | ||
|
||
* Library Information | ||
- Name :: Streaming | ||
- Version :: 6.0.9 | ||
- License :: GNU LGPL | ||
- URL :: https://github.com/janelia-arduino/Streaming | ||
- Author :: Mikal Hart | ||
- Maintainer :: Peter Polidoro | ||
- Email :: [email protected] | ||
|
||
** Description | ||
|
||
Streaming C++-style Output with Operator <<. Supports _DEC, _BIN, _HEX, _OCT, | ||
_FLOAT, _PAD, _WIDTH, _WIDTHZ and _FMT stream helpers. See example code for | ||
usage details. | ||
|
||
* Source | ||
|
||
[[http://arduiniana.org/libraries/streaming/]] |
42 changes: 42 additions & 0 deletions
42
source_MCU_boards/lib/Streaming-6.0.9/examples/StreamingExample/StreamingExample.ino
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#include <Streaming.h> | ||
|
||
|
||
const long BAUD = 115200; | ||
|
||
const int lettera = 'A'; | ||
const int month = 4, day = 17, year = 2009; | ||
const int hour = 8, minute = 20, second = 3; | ||
|
||
const long LOOP_DELAY = 1000; | ||
|
||
void setup() | ||
{ | ||
Serial.begin(BAUD); | ||
} | ||
|
||
void loop() | ||
{ | ||
Serial << "This is an example of the new streaming" << endl; | ||
Serial << "library. This allows you to print variables" << endl; | ||
Serial << "and strings without having to type line after" << endl; | ||
Serial << "line of Serial.print() calls. Examples: " << endl; | ||
|
||
Serial << "A is " << lettera << "." << endl; | ||
Serial << "The current date is " << day << "-" << month << "-" << year << "." << endl; | ||
|
||
Serial << "You can use modifiers too, for example:" << endl; | ||
Serial << _BYTE(lettera) << " is " << _HEX(lettera) << " in hex. " << endl; | ||
Serial << endl; | ||
|
||
Serial << "In library v6, you also get" << endl; | ||
Serial << "Padding [" << _PAD(10, '*') << "]" << endl; | ||
Serial << "Width specification [" << _WIDTH(10, 5) << "]" << endl; | ||
Serial << "Leading zeros [" << _WIDTHZ(month,2) << "]" << endl; | ||
Serial << _FMT("Format strings for stuff like dates and times %/%/% %:%:%", | ||
_WIDTHZ(day, 2), _WIDTHZ(month, 2), year, | ||
_WIDTHZ(hour,2), _WIDTHZ(minute, 2), _WIDTHZ(second,2)) << endl; | ||
Serial << _FMT(F("To reduce your % size, these % can be in %"), F("sketch"), F("constants"), F("PROGMEM")) << endl; | ||
Serial << endl; | ||
|
||
delay(LOOP_DELAY); | ||
} |
Oops, something went wrong.