mirror of
https://github.com/RobTillaart/Arduino.git
synced 2024-10-03 18:09:02 -04:00
0.2.2 timing
This commit is contained in:
parent
eb5b781770
commit
9b57767237
@ -7,9 +7,11 @@
|
|||||||
// URL: https://github.com/RobTillaart/timing
|
// URL: https://github.com/RobTillaart/timing
|
||||||
//
|
//
|
||||||
|
|
||||||
|
|
||||||
#include "timing.h"
|
#include "timing.h"
|
||||||
#include "printHelpers.h" // https://github.com/RobTillaart/printHelpers
|
#include "printHelpers.h" // https://github.com/RobTillaart/printHelpers
|
||||||
|
|
||||||
|
|
||||||
void setup()
|
void setup()
|
||||||
{
|
{
|
||||||
Serial.begin(115200);
|
Serial.begin(115200);
|
||||||
@ -30,10 +32,12 @@ void setup()
|
|||||||
Serial.println("\nDone...");
|
Serial.println("\nDone...");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void loop()
|
void loop()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
uint64_t fibonaci(uint32_t n)
|
uint64_t fibonaci(uint32_t n)
|
||||||
{
|
{
|
||||||
uint64_t p = 0;
|
uint64_t p = 0;
|
||||||
@ -53,4 +57,5 @@ uint64_t fibonaci(uint32_t n)
|
|||||||
return q;
|
return q;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// -- END OF FILE --
|
// -- END OF FILE --
|
||||||
|
@ -7,8 +7,10 @@
|
|||||||
// URL: https://github.com/RobTillaart/timing
|
// URL: https://github.com/RobTillaart/timing
|
||||||
//
|
//
|
||||||
|
|
||||||
|
|
||||||
#include "timing.h"
|
#include "timing.h"
|
||||||
|
|
||||||
|
|
||||||
void setup()
|
void setup()
|
||||||
{
|
{
|
||||||
Serial.begin(115200);
|
Serial.begin(115200);
|
||||||
@ -40,8 +42,10 @@ void setup()
|
|||||||
Serial.println("\nDone...");
|
Serial.println("\nDone...");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void loop()
|
void loop()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// -- END OF FILE --
|
// -- END OF FILE --
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
// URL: https://github.com/RobTillaart/timing
|
// URL: https://github.com/RobTillaart/timing
|
||||||
//
|
//
|
||||||
|
|
||||||
|
|
||||||
#include "timing.h"
|
#include "timing.h"
|
||||||
|
|
||||||
|
|
||||||
@ -23,6 +24,7 @@ uint16_t primes[MAXPRIMES];
|
|||||||
uint16_t idx = 0;
|
uint16_t idx = 0;
|
||||||
uint32_t x = 1;
|
uint32_t x = 1;
|
||||||
|
|
||||||
|
|
||||||
void setup()
|
void setup()
|
||||||
{
|
{
|
||||||
Serial.begin(115200);
|
Serial.begin(115200);
|
||||||
@ -52,10 +54,12 @@ void setup()
|
|||||||
Serial.println("\nDone...");
|
Serial.println("\nDone...");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void loop()
|
void loop()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// sort of sieve.
|
// sort of sieve.
|
||||||
int nextPrime()
|
int nextPrime()
|
||||||
{
|
{
|
||||||
@ -78,4 +82,5 @@ int nextPrime()
|
|||||||
return x;
|
return x;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// -- END OF FILE --
|
// -- END OF FILE --
|
@ -15,7 +15,8 @@
|
|||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/RobTillaart/timing"
|
"url": "https://github.com/RobTillaart/timing"
|
||||||
},
|
},
|
||||||
"version":"0.2.1",
|
"version": "0.2.2",
|
||||||
|
"license": "MIT",
|
||||||
"frameworks": "arduino",
|
"frameworks": "arduino",
|
||||||
"platforms": "*"
|
"platforms": "*"
|
||||||
}
|
}
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
name=timing
|
name=timing
|
||||||
version=0.2.1
|
version=0.2.2
|
||||||
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=Arduino library with wrapper classes for seconds millis micros.
|
sentence=Arduino library with wrapper classes for seconds millis micros.
|
||||||
paragraph=These wrappers allow to reset the value of the time.
|
paragraph=These wrappers allow to reset the value of the time.
|
||||||
category=dataprocessing
|
category=Data Processing
|
||||||
url=https://github.com/RobTillaart/timing
|
url=https://github.com/RobTillaart/timing
|
||||||
architectures=*
|
architectures=*
|
||||||
includes=timing.h
|
includes=timing.h
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
//
|
//
|
||||||
// FILE: timing.h
|
// FILE: timing.h
|
||||||
// AUTHOR: Rob Tillaart
|
// AUTHOR: Rob Tillaart
|
||||||
// VERSION: 0.2.0
|
// VERSION: 0.2.2
|
||||||
// PURPOSE: Arduino library with wrapper classes for seconds millis micros
|
// PURPOSE: Arduino library with wrapper classes for seconds millis micros
|
||||||
// URL: https://github.com/RobTillaart/timing
|
// URL: https://github.com/RobTillaart/timing
|
||||||
//
|
//
|
||||||
@ -12,9 +12,11 @@
|
|||||||
// 0.1.02 2015-03-02 move all to mymillis.h file so compiler can optimize
|
// 0.1.02 2015-03-02 move all to mymillis.h file so compiler can optimize
|
||||||
// 0.2.0 2020-07-07 renamed to timing.h
|
// 0.2.0 2020-07-07 renamed to timing.h
|
||||||
// 0.2.1 2021-01-09 added Arduino-CI + unit test
|
// 0.2.1 2021-01-09 added Arduino-CI + unit test
|
||||||
|
// 0.2.1 2021-05-27 added Arduino-lint
|
||||||
|
|
||||||
|
|
||||||
#define TIMING_LIB_VERSION (F("0.2.1"))
|
#define TIMING_LIB_VERSION (F("0.2.2"))
|
||||||
|
|
||||||
|
|
||||||
class microSeconds
|
class microSeconds
|
||||||
{
|
{
|
||||||
@ -54,4 +56,5 @@ private:
|
|||||||
uint32_t _offset = 0UL;
|
uint32_t _offset = 0UL;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
// -- END OF FILE --
|
// -- END OF FILE --
|
||||||
|
Loading…
x
Reference in New Issue
Block a user