Skip to content

Commit eba10a4

Browse files
authored
update library.json, license, readme (#4)
1 parent 21c6843 commit eba10a4

File tree

7 files changed

+21
-14
lines changed

7 files changed

+21
-14
lines changed

AsyncAnalog.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//
22
// FILE: AsyncAnalog.cpp
33
// AUTHOR: Rob Tillaart
4-
// VERSION: 0.1.3
4+
// VERSION: 0.1.5
55
// DATE: 2018-09-05
66
// PURPOSE: async version of analogRead, prevent blocking wait
77
//
@@ -14,6 +14,7 @@
1414
// 0.1.2 2020-05-27 update library.json
1515
// 0.1.3 2020-12-12 added Arduino CI, minor fixes
1616
// 0.1.4 2020-12-12 update Arduino CI, minor fixes
17+
// 0.1.5 2021-12-13 update library.json, license, readme
1718

1819

1920
#include "AsyncAnalog.h"

AsyncAnalog.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// FILE: AsyncAnalog.h
44
// AUTHOR: Rob Tillaart
5-
// VERSION: 0.1.4
5+
// VERSION: 0.1.5
66
// DATE: 2018-09-05
77
// PURPOSE: async version of analogRead for AVR
88
// URL: https://github.com/RobTillaart/AsyncAnalog
@@ -11,7 +11,7 @@
1111

1212
#if !defined(ARDUINO_ARCH_AVR)
1313

14-
#error “AsyncAnalog library 0.1.3 only supports boards with an AVR processor .”
14+
#error “AsyncAnalog library only supports boards with an AVR processor .”
1515

1616
#else
1717

@@ -22,7 +22,7 @@
2222
#include "wiring_private.h"
2323
#include "pins_arduino.h"
2424

25-
#define ASYNCANALOG_LIB_VERSION (F("0.1.4"))
25+
#define ASYNCANALOG_LIB_VERSION (F("0.1.5"))
2626

2727

2828
class AsyncAnalog

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2018-2021 Rob Tillaart
3+
Copyright (c) 2018-2022 Rob Tillaart
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
# AsyncAnalog
1010

11-
Arduino Library for async reading of an analogue pin. **\[AVR ONLY\]**
11+
Arduino Library for async reading of an analogue pin. **\[AVR ONLY\]**.
1212

1313

1414
## Description
@@ -25,26 +25,30 @@ The library works only for AVR boards now, other platforms might be supported in
2525
As the UNO has only one ADC that is multiplexed, one can only read one analogue pin
2626
in async way simultaneously.
2727

28+
**Use with care**
29+
2830

2931
## Interface
3032

3133
- **AsyncAnalog(uint8_t pin)** constructor, defines the analogue pin to use.
3234
- **void start()** triggers a new ADC reading.
33-
- **bool ready()** returns true if sample is complete
34-
- **int value()** returns the value
35+
- **bool ready()** returns true if sample is complete.
36+
- **int value()** returns the value.
3537

3638

3739
## Operation
3840

3941
The example **asyncAnalogTest2.ino** shows a loop of 1000 analogReads and prints
40-
over Serial at 115200 baud. The async test does this in less time. Note that faster
41-
baud rates shows an even bigger difference.
42-
43-
During the printing, the sampling continues.
42+
over Serial at 115200 baud.
4443

4544

4645
## Future
4746

47+
- improve documentation.
48+
- investigate the performance gain.
49+
- asyncAnalogTest2.ino is no good test.
50+
- create examples
51+
- real world examples preferred.
4852
- investigate other platforms
4953
- fall back to normal analogRead for non AVR platforms ?
5054
-

examples/asyncAnalogTest/asyncAnalogTest.ino

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ uint32_t start = 0;
1414
uint32_t duration = 0;
1515
uint16_t count = 0;
1616

17+
1718
void setup()
1819
{
1920
Serial.begin(115200);
@@ -53,3 +54,4 @@ void loop()
5354

5455

5556
// -- END OF FILE --
57+

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"type": "git",
1616
"url": "https://github.com/RobTillaart/AsyncAnalog.git"
1717
},
18-
"version": "0.1.4",
18+
"version": "0.1.5",
1919
"license": "MIT",
2020
"frameworks": "arduino",
2121
"platforms": "*",

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=AsyncAnalog
2-
version=0.1.4
2+
version=0.1.5
33
author=Rob Tillaart <rob.tillaart@gmail.com>
44
maintainer=Rob Tillaart <rob.tillaart@gmail.com>
55
sentence=Arduino Library for async reading of an analog pin

0 commit comments

Comments
 (0)