Skip to content

Commit

Permalink
Fix URL in examples + minor edits (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
RobTillaart authored Jan 6, 2024
1 parent 27c1fa6 commit 9f33beb
Show file tree
Hide file tree
Showing 17 changed files with 43 additions and 23 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,16 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).


## [0.4.4] - 2024-01-05
- FIx URL in examples
- minor edits


## [0.4.3] - 2023-11-15
- added **csi()** comma separated integers for readability e.g. 123,458,654
- update readme.md.
- update examples


## [0.4.2] - 2023-11-15
- update readme.md
- update keywords.txt
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2018-2023 Rob Tillaart
Copyright (c) 2018-2024 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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ data in a way not possible in the standard print library of the Arduino.
- **print64()** print **uint64_t** and **int64_t**
- **sci()** generates in scientific format - exponent has step 1.
- **eng()** generates in engineering format - exponent has step 3.
- **scieng()** generated exponential format - exponent has step 1 to 9.
- **scieng()** generates in exponential format - exponent has step 1 to 9.
- **toBytes()** generates KB MB GB etc.
- **hex()** generates hexadecimal output with leading zeros up to **uint64_t**.
- **bin()** generates binary output with leading zeros up to **uint64_t**.
Expand Down
5 changes: 3 additions & 2 deletions examples/print64/print64.ino
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
// FILE: print64.ino
// AUTHOR: Rob Tillaart
// PURPOSE: demo print 64 bit integers
// DATE: 2020-06-24
// URL: https://github.com/RobTillaart/printHelpers


#include "printHelpers.h"


uint64_t llx = 1311768467284833366;
int64_t lly = 0xFFFFFFFFFFFFFFFF;
uint64_t a = 0;
Expand Down Expand Up @@ -57,5 +58,5 @@ void loop()
}


// -- END OF FILE --
// -- END OF FILE --

Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
//
// FILE: print_comma_separated_integers.ino
// AUTHOR: Rob Tillaart
// VERSION: 0.1.0
// DATE: 2023-12-20
// PURPOSE: demo readability
// URL: https://github.com/RobTillaart/printHelpers

#include "Arduino.h"

#include "printHelpers.h"


void setup()
{
Serial.begin(115200);
Expand Down
9 changes: 4 additions & 5 deletions examples/print_hex_bin/print_hex_bin.ino
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@
// FILE: print_hex_bin.ino
// AUTHOR: Rob Tillaart
// PURPOSE: demo hex(value, sep);
// URL: https://github.com/RobTillaart/printHelpers


#include "printHelpers.h"


volatile uint32_t n = 0;


void setup()
{
Serial.begin(115200);
Expand Down Expand Up @@ -65,10 +68,6 @@ void setup()
}
Serial.println();





Serial.println("10 random() BIN values");
for (uint8_t i = 0; i < 10; i++)
{
Expand All @@ -90,4 +89,4 @@ void loop()
}


// -- END OF FILE --
// -- END OF FILE --
2 changes: 2 additions & 0 deletions examples/print_inch_feet/print_inch_feet.ino
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
//
// FILE: print_inch_feet.ino
// AUTHOR: Rob Tillaart
// PURPOSE: demo program distance functions
// URL: https://github.com/RobTillaart/printHelpers


#include "printHelpers.h"
Expand Down
6 changes: 5 additions & 1 deletion examples/print_performance/print_performance.ino
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
//
// FILE: print_sci_eng_performance.ino
// AUTHOR: Rob Tillaart
// PURPOSE: demo program SCI
// URL: https://github.com/RobTillaart/printHelpers


#include "printHelpers.h"


uint32_t start = 0;
uint32_t stop = 0;
char * b;


void setup()
{
Serial.begin(115200);
Expand Down Expand Up @@ -221,4 +225,4 @@ void loop()
}


// -- END OF FILE --
// -- END OF FILE --
2 changes: 2 additions & 0 deletions examples/print_sci/print_sci.ino
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
//
// FILE: print_sci.ino
// AUTHOR: Rob Tillaart
// PURPOSE: demo program SCI
// URL: https://github.com/RobTillaart/printHelpers


#include "printHelpers.h"
Expand Down
3 changes: 3 additions & 0 deletions examples/print_sci_experimental/print_sci_experimental.ino
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
//
// FILE: print_sci_experimental.ino
// AUTHOR: Rob Tillaart
// PURPOSE: test program SCI
// URL: https://github.com/RobTillaart/printHelpers


#include "printHelpers.h"

uint32_t start, stop, duration;


void setup()
{
Serial.begin(115200);
Expand Down
3 changes: 3 additions & 0 deletions examples/print_toRoman/print_toRoman.ino
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
//
// FILE: print_toRoman.ino
// AUTHOR: Rob Tillaart
// PURPOSE: demo program toRoman
// URL: https://github.com/RobTillaart/printHelpers


#include "printHelpers.h"

uint32_t start, stop;


void setup()
{
Serial.begin(115200);
Expand Down
3 changes: 2 additions & 1 deletion examples/sci_test/sci_test.ino
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// FILE: sci_test.ino
// AUTHOR: Rob Tillaart
// PURPOSE: test different values with sci function
// URL: https://github.com/RobTillaart/printHelpers


#include "printHelpers.h"
Expand Down Expand Up @@ -197,5 +198,5 @@ void test6()
}


// -- END OF FILE --
// -- END OF FILE --

3 changes: 2 additions & 1 deletion examples/toBytes/toBytes.ino
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// FILE: toBytes.ino
// AUTHOR: Rob Tillaart
// PURPOSE: demo toBytes(double val);
// URL: https://github.com/RobTillaart/printHelpers


#include "printHelpers.h"
Expand Down Expand Up @@ -55,4 +56,4 @@ void loop()
}


// -- END OF FILE --
// -- END OF FILE --
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"type": "git",
"url": "https://github.com/RobTillaart/printHelpers"
},
"version": "0.4.3",
"version": "0.4.4",
"license": "MIT",
"frameworks": "*",
"platforms": "*",
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=printHelpers
version=0.4.3
version=0.4.4
author=Rob Tillaart <[email protected]>
maintainer=Rob Tillaart <[email protected]>
sentence=Arduino library to help formatting data for printing. 64 bit integers (base 10 and 16). Engineering and scientific notation.
Expand Down
4 changes: 2 additions & 2 deletions printHelpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// FILE: printHelpers.cpp
// AUTHOR: Rob Tillaart
// DATE: 2018-01-21
// VERSION: 0.4.3
// PUPROSE: Arduino library to help formatting for printing.
// VERSION: 0.4.4
// PURPOSE: Arduino library to help formatting for printing.
// URL: https://github.com/RobTillaart/printHelpers


Expand Down
6 changes: 3 additions & 3 deletions printHelpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
// FILE: printHelpers.h
// AUTHOR: Rob Tillaart
// DATE: 2018-01-21
// VERSION: 0.4.3
// PUPROSE: Arduino library to help formatting for printing.
// VERSION: 0.4.4
// PURPOSE: Arduino library to help formatting for printing.
// URL: https://github.com/RobTillaart/printHelpers


#include "Arduino.h"
#include "stdlib.h"


#define PRINTHELPERS_VERSION (F("0.4.3"))
#define PRINTHELPERS_VERSION (F("0.4.4"))


// global buffer used by all functions so no static buffer in every function
Expand Down

0 comments on commit 9f33beb

Please sign in to comment.