Skip to content

Commit 520e18e

Browse files
authored
update readme.md (#8)
1 parent e07c0ba commit 520e18e

7 files changed

Lines changed: 31 additions & 13 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

88

9+
## [0.2.5] - 2023-11-02
10+
- update readme.md
11+
- update keywords.txt (align)
12+
13+
914
## [0.2.5] - 2023-03-25
1015
- add **setDutyCycle()**, **getDutyCycle()**
1116
- implement duty cycle for square(), triangle() and random()
@@ -17,7 +22,6 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1722
- update license 2023
1823
- minor edits
1924

20-
2125
## [0.2.4] - 2022-11-07
2226
- add changelog.md
2327
- add rp2040 to build-CI

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@
22
[![Arduino CI](https://github.com/RobTillaart/FunctionGenerator/workflows/Arduino%20CI/badge.svg)](https://github.com/marketplace/actions/arduino_ci)
33
[![Arduino-lint](https://github.com/RobTillaart/FunctionGenerator/actions/workflows/arduino-lint.yml/badge.svg)](https://github.com/RobTillaart/FunctionGenerator/actions/workflows/arduino-lint.yml)
44
[![JSON check](https://github.com/RobTillaart/FunctionGenerator/actions/workflows/jsoncheck.yml/badge.svg)](https://github.com/RobTillaart/FunctionGenerator/actions/workflows/jsoncheck.yml)
5+
[![GitHub issues](https://img.shields.io/github/issues/RobTillaart/FunctionGenerator.svg)](https://github.com/RobTillaart/FunctionGenerator/issues)
6+
57
[![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/RobTillaart/FunctionGenerator/blob/master/LICENSE)
68
[![GitHub release](https://img.shields.io/github/release/RobTillaart/FunctionGenerator.svg?maxAge=3600)](https://github.com/RobTillaart/FunctionGenerator/releases)
9+
[![PlatformIO Registry](https://badges.registry.platformio.org/packages/robtillaart/library/FunctionGenerator.svg)](https://registry.platformio.org/libraries/robtillaart/FunctionGenerator)
710

811

912
# FunctionGenerator
@@ -225,3 +228,13 @@ Feedback and ideas are welcome.
225228
- **float stairDC()**
226229
- Bezier curve? (too complex)
227230
- record a signal and play back ==> separate class
231+
232+
233+
## Support
234+
235+
If you appreciate my libraries, you can support the development and maintenance.
236+
Improve the quality of the libraries by providing issues and Pull Requests, or
237+
donate through PayPal or GitHub sponsors.
238+
239+
Thank you,
240+

functionGenerator.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//
22
// FILE: functionGenerator.cpp
33
// AUTHOR: Rob Tillaart
4-
// VERSION: 0.2.5
4+
// VERSION: 0.2.6
55
// PURPOSE: wave form generating functions (use with care)
66
// URL: https://github.com/RobTillaart/FunctionGenerator
77

@@ -88,7 +88,7 @@ float funcgen::getYShift()
8888

8989
void funcgen::setDutyCycle(float dutyCycle)
9090
{
91-
// negative dutyCycle? => 1-dc? or abs()?
91+
// negative dutyCycle? => 1-dc? or abs()?
9292
if (dutyCycle < 0) _dutyCycle = 0.0;
9393
else if (dutyCycle > 100) _dutyCycle = 1.0;
9494
else _dutyCycle = dutyCycle * 0.01;
@@ -225,7 +225,7 @@ float funcgen::stair(float t, uint16_t steps, uint8_t mode)
225225

226226
float funcgen::random()
227227
{
228-
float rv = _yShift + _amplitude * _random() * 0.2328306436E-9; // div 0xFFFFFFFF
228+
float rv = _yShift + _amplitude * _random() * 0.2328306436E-9; // div 0xFFFFFFFF
229229
return rv;
230230
}
231231

functionGenerator.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
//
33
// FILE: functionGenerator.h
44
// AUTHOR: Rob Tillaart
5-
// VERSION: 0.2.5
5+
// VERSION: 0.2.6
66
// PURPOSE: wave form generating functions (use with care)
77
// URL: https://github.com/RobTillaart/FunctionGenerator
88

99

1010
#include "Arduino.h"
1111

12-
#define FUNCTIONGENERATOR_LIB_VERSION (F("0.2.5"))
12+
#define FUNCTIONGENERATOR_LIB_VERSION (F("0.2.6"))
1313

1414

1515
class funcgen

keywords.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Syntax Colouring Map for funcgen
1+
# Syntax Colouring Map for functionGenerator
22

33
# Data types (KEYWORD1)
44
funcgen KEYWORD1
@@ -21,17 +21,18 @@ getDutyCycle KEYWORD2
2121

2222
setRandomSeed KEYWORD2
2323

24+
line KEYWORD2
25+
zero KEYWORD2
26+
2427
sawtooth KEYWORD2
2528
triangle KEYWORD2
2629
square KEYWORD2
27-
2830
sinus KEYWORD2
2931
stair KEYWORD2
32+
3033
random KEYWORD2
3134
random_DC KEYWORD2
3235

33-
line KEYWORD2
34-
zero KEYWORD2
3536

3637
# Constants (LITERAL1)
3738
FUNCTIONGENERATOR_LIB_VERSION LITERAL1

library.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
"type": "git",
1616
"url": "https://github.com/RobTillaart/FunctionGenerator"
1717
},
18-
"version": "0.2.5",
18+
"version": "0.2.6",
1919
"license": "MIT",
20-
"frameworks": "arduino",
20+
"frameworks": "*",
2121
"platforms": "*",
2222
"headers": "functionGenerator.h"
2323
}

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=FunctionGenerator
2-
version=0.2.5
2+
version=0.2.6
33
author=Rob Tillaart <rob.tillaart@gmail.com>
44
maintainer=Rob Tillaart <rob.tillaart@gmail.com>
55
sentence=Arduino library to generate wave forms (nummeric) for a DAC

0 commit comments

Comments
 (0)