Skip to content

Commit 96605d6

Browse files
committed
update GitHub actions + examples
1 parent 879b61c commit 96605d6

File tree

17 files changed

+59
-27
lines changed

17 files changed

+59
-27
lines changed

.github/workflows/arduino-lint.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ jobs:
66
runs-on: ubuntu-latest
77
timeout-minutes: 5
88
steps:
9-
- uses: actions/checkout@v4
10-
- uses: arduino/arduino-lint-action@v1
9+
- uses: actions/checkout@v6
10+
- uses: arduino/arduino-lint-action@v2
1111
with:
1212
library-manager: update
13-
# compliance: strict
13+
compliance: strict

.github/workflows/arduino_test_runner.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@ jobs:
66
runTest:
77
runs-on: ubuntu-latest
88
timeout-minutes: 20
9-
109
steps:
11-
- uses: actions/checkout@v4
10+
- uses: actions/checkout@v6
1211
- uses: ruby/setup-ruby@v1
1312
with:
1413
ruby-version: 2.6

.github/workflows/jsoncheck.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,15 @@ on:
55
paths:
66
- '**.json'
77
pull_request:
8+
paths:
9+
- '**.json'
810

911
jobs:
1012
test:
1113
runs-on: ubuntu-latest
1214
timeout-minutes: 5
1315
steps:
14-
- uses: actions/checkout@v4
16+
- uses: actions/checkout@v6
1517
- name: json-syntax-check
1618
uses: limitusus/json-syntax-check@v2
1719
with:

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) 2015-2024 Rob Tillaart
3+
Copyright (c) 2015-2026 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: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ It is advised to reset **t** after a number (e.g. 100) full periods
8888

8989
Needs further investigations.
9090

91+
9192
### Related
9293

9394
- https://github.com/RobTillaart/AD9833 hardware waveform generator.
@@ -209,6 +210,7 @@ The rising and falling edges stay same.
209210
- **float heartBeat(float t)** The duty cycle determines the part of the period
210211
that the signal ~zero.
211212

213+
212214
### No duty cycle
213215

214216
The other functions need to be investigated what duty cycle means.
@@ -224,6 +226,7 @@ Think of it as the halve of the triangle wave.
224226
- **float sinusRectified(float t)**
225227
- **float freeWave(float t, int16_t arr, int16_t N)**
226228

229+
227230
## Future
228231

229232
#### Must
@@ -240,6 +243,7 @@ Think of it as the halve of the triangle wave.
240243
- stand-alone functions in separate .h
241244
- clean up code
242245

246+
243247
#### Could
244248

245249
- ASDR wave
@@ -254,6 +258,7 @@ Think of it as the halve of the triangle wave.
254258
- improve performance sin() lookup table.
255259
- add float variable for ```_perDC = _period * _dutyCycle```
256260
- do we need **freq4** ? not since DC.
261+
- check **FastTrig** library for faster sinus (interpolated lookup).
257262
- heartBeat
258263
- small noise/variation parameter on amplitude and frequency.
259264
- reduce footprint ==> wrapper around freeWave()
@@ -266,15 +271,16 @@ Think of it as the halve of the triangle wave.
266271
- create an example program to sample an arbitrary wave form
267272
- output in the right format.
268273
- slow sampling vs real time.
269-
274+
- functionGenerator as (derived?) class name
270275

271276
#### Examples
272277

273-
- Amplitude modulation ?
274-
- heartbeat curve?
275-
- example ESP32 version as separate task.
276-
- example with DAC. 8 12 16 bit.
277-
- example with potentiometers for 4 parameters
278+
- Amplitude modulation ?
279+
- heartbeat curve?
280+
- example ESP32 version as separate task.
281+
- example with DAC. 8 12 16 bit.
282+
- example with potentiometers for 4 parameters
283+
278284

279285
#### Wont
280286

examples/funcGenFreeWavePlotter/funcGenFreeWavePlotter.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,9 @@ int16_t arr_two_sin[101] =
6767
void setup()
6868
{
6969
Serial.begin(115200);
70+
// Serial.println();
7071
// Serial.println(__FILE__);
71-
// Serial.print("FUNCTIONGENERATOR_LIB_VERSION: ");
72+
// Serial.println("FUNCTIONGENERATOR_LIB_VERSION: ");
7273
// Serial.println(FUNCTIONGENERATOR_LIB_VERSION);
7374
// Serial.println();
7475

examples/functionGenerator/functionGenerator.ino

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ char choice = '0';
1818
void setup()
1919
{
2020
Serial.begin(500000);
21+
Serial.println();
2122
Serial.println(__FILE__);
23+
Serial.println("FUNCTIONGENERATOR_LIB_VERSION: ");
24+
Serial.println(FUNCTIONGENERATOR_LIB_VERSION);
25+
Serial.println();
2226
Serial.println("Start ");
2327

2428
gen.setFrequency(4);

examples/functionGeneratorDuoPlot/functionGeneratorDuoPlot.ino

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@ funcgen gen2;
1717
void setup()
1818
{
1919
Serial.begin(115200);
20-
// Serial.println();
21-
// Serial.println(__FILE__);
22-
// Serial.print("FUNCTIONGENERATOR_LIB_VERSION: ");
23-
// Serial.println(FUNCTIONGENERATOR_LIB_VERSION);
20+
// Serial.println();
21+
// Serial.println(__FILE__);
22+
// Serial.println("FUNCTIONGENERATOR_LIB_VERSION: ");
23+
// Serial.println(FUNCTIONGENERATOR_LIB_VERSION);
24+
// Serial.println();
2425

2526
gen1.setFrequency(13);
2627
gen1.setAmplitude(50);

examples/functionGeneratorPerformance/functionGeneratorPerformance.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,9 @@ int16_t arr_two_sin[101] =
4646
void setup()
4747
{
4848
Serial.begin(115200);
49+
Serial.println();
4950
Serial.println(__FILE__);
50-
Serial.print("FUNCTIONGENERATOR_LIB_VERSION: ");
51+
Serial.println("FUNCTIONGENERATOR_LIB_VERSION: ");
5152
Serial.println(FUNCTIONGENERATOR_LIB_VERSION);
5253
Serial.println();
5354

examples/functionGeneratorPlotter/functionGeneratorPlotter.ino

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,19 @@ funcgen gen2;
1717
void setup()
1818
{
1919
Serial.begin(115200);
20+
// Serial.println();
2021
// Serial.println(__FILE__);
2122
// Serial.print("FUNCTIONGENERATOR_LIB_VERSION: ");
2223
// Serial.println(FUNCTIONGENERATOR_LIB_VERSION);
2324
// Serial.println();
2425

2526
gen.setAmplitude(80);
26-
gen.setFrequency(65.0 / 60.0); // HB = BPM/60.0
27+
gen.setFrequency(65.0 / 60.0); // HB = BPM/60.0
2728
gen.setDutyCycle(40);
2829
gen2.setYShift(+20);
2930

3031
gen2.setAmplitude(80);
31-
gen2.setFrequency(120.0 / 60.0); // HB = BPM/60.0
32+
gen2.setFrequency(120.0 / 60.0); // HB = BPM/60.0
3233
gen2.setDutyCycle(80);
3334
gen2.setYShift(-80);
3435
}

0 commit comments

Comments
 (0)