Skip to content

Commit a1b4ff9

Browse files
committed
Formatting changes
1 parent 9dfc5e5 commit a1b4ff9

File tree

3 files changed

+11
-13
lines changed

3 files changed

+11
-13
lines changed

examples/Example-1-3leadECGstream-arduino-plotter/Example-1-3leadECGstream-arduino-plotter.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
// Protocentral ADS1293 Arduino example — 3-lead ECG (Arduino Plotter)
44
//
55
// Author: Ashwin Whitchurch, Protocentral Electronics
6-
// SPDX-FileCopyrightText: 2020 Protocentral Electronics
6+
// SPDX-FileCopyrightText: 2025 Protocentral Electronics
77
// SPDX-License-Identifier: MIT
88
//
99
// This example streams ECG samples to the Arduino IDE Plotter.
1010
//
1111
// Hardware connections (Arduino UNO / ESP32 VSPI):
1212
//
1313
// | Signal | Arduino UNO | ESP32 (VSPI default) |
14-
// |-------:|:------------:|:--------------------:|
14+
// |-------:|:-----------:|:--------------------:|
1515
// | MISO | 12 | 19 |
1616
// | MOSI | 11 | 23 |
1717
// | SCLK | 13 | 18 |

examples/Example-2-5leadECGstream-arduino-plotter/Example-2-5leadECGstream-arduino-plotter.ino

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
// Protocentral ADS1293 Arduino example — 5-lead ECG (Arduino Plotter)
44
//
55
// Author: Ashwin Whitchurch, Protocentral Electronics
6-
// SPDX-FileCopyrightText: 2020 Protocentral Electronics
6+
// SPDX-FileCopyrightText: 2025 Protocentral Electronics
77
// SPDX-License-Identifier: MIT
88
//
99
// This example streams ECG samples to the Arduino IDE Plotter.
1010
//
1111
// Hardware connections (Arduino UNO / ESP32 VSPI):
1212
//
1313
// | Signal | Arduino UNO | ESP32 (VSPI default) |
14-
// |-------:|:------------:|:--------------------:|
14+
// |-------:|:-----------:|:--------------------:|
1515
// | MISO | 12 | 19 |
1616
// | MOSI | 11 | 23 |
1717
// | SCLK | 13 | 18 |
@@ -64,11 +64,11 @@ void setup()
6464
ADS1293.configureRef(RefMode::Default);
6565
ADS1293.configureAFEShutdown(AFEShutdownMode::AFE_On);
6666

67-
ADS1293.setChannelGain(1, ADS1293::PgaGain::G8);
68-
ADS1293.setChannelGain(2, ADS1293::PgaGain::G8);
69-
ADS1293.setChannelGain(3, ADS1293::PgaGain::G8);
67+
ADS1293.setChannelGain(1, ADS1293::PgaGain::G8);
68+
ADS1293.setChannelGain(2, ADS1293::PgaGain::G8);
69+
ADS1293.setChannelGain(3, ADS1293::PgaGain::G8);
7070

71-
ADS1293.setSamplingRate(ADS1293::SamplingRate::SPS_100);
71+
ADS1293.setSamplingRate(ADS1293::SamplingRate::SPS_100);
7272
ADS1293.configureDRDYSource(DRDYSource::Default);
7373
ADS1293.configureChannelConfig(ChannelConfig::Default5Lead);
7474
ADS1293.applyGlobalConfig(GlobalConfig::Start);
@@ -79,17 +79,15 @@ void loop()
7979
{
8080
if (digitalRead(DRDY_PIN) == LOW)
8181
{
82-
8382
auto samples = ADS1293.getECGData();
8483
if (samples.ok)
8584
{
86-
8785
Serial.print(samples.ch1);
8886
Serial.print(',');
8987
Serial.print(samples.ch2);
9088
Serial.print(',');
9189
Serial.println(samples.ch3);
9290
}
9391
}
92+
//delay(10);
9493
}
95-

examples/Example-3-5leadECGstream-openview/Example-3-5leadECGstream-openview.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// Protocentral ADS1293 Arduino example — 5-lead ECG (OpenView packet format)
44
//
55
// Author: Ashwin Whitchurch, Protocentral Electronics
6-
// SPDX-FileCopyrightText: 2020 Protocentral Electronics
6+
// SPDX-FileCopyrightText: 2025 Protocentral Electronics
77
// SPDX-License-Identifier: MIT
88
//
99
// Streams ECG samples in the OpenView packet format. See the OpenView
@@ -13,7 +13,7 @@
1313
// Hardware connections (Arduino UNO / ESP32 VSPI):
1414
//
1515
// | Signal | Arduino UNO | ESP32 (VSPI default) |
16-
// |-------:|:------------:|:--------------------:|
16+
// |-------:|:-----------:|:--------------------:|
1717
// | MISO | 12 | 19 |
1818
// | MOSI | 11 | 23 |
1919
// | SCLK | 13 | 18 |

0 commit comments

Comments
 (0)