Skip to content

Commit a6c8cb0

Browse files
committed
Documentation
1 parent 3506fe0 commit a6c8cb0

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Not yet available as Arduino library.
3333

3434
<br/>
3535

36-
# Table of content
36+
# Table of contents
3737
* [SimpleEMAFilters](https://github.com/ArminJo/Arduino-Utils?tab=readme-ov-file#simpleemafilters)
3838
* [ADCUtils](https://github.com/ArminJo/Arduino-Utils?tab=readme-ov-file#adcutils)
3939
* [HCSR04](https://github.com/ArminJo/Arduino-Utils?tab=readme-ov-file#hcsr04)
@@ -77,7 +77,7 @@ Simplified formula for small alpha is CutoffFrequency = (SampleFrequency / (2&pi
7777
- 1/32 -> 5.13 Hz (160 Hz / 31)
7878
- 1/256 -> 0.624 Hz (160 Hz / 255)
7979

80-
Using the [more exact formula](https://github.com/MakeMagazinDE/DigitaleFilter/blob/main/Filter-Berechnungen.xlsx), alpha = 1 - e ^ -((2&pi; * CutoffFrequency) / SampleFrequency)
80+
Using the [more exact formula](https://github.com/MakeMagazinDE/DigitaleFilter/blob/main/Filter-Berechnungen.xlsx), alpha = 1 - e ^ -((2&pi; * CutoffFrequency) / SampleFrequency)
8181
=> CutoffFrequency = (-ln(1-alpha) * SampleFrequency) / 2&pi; we get the values:
8282
- 110 Hz
8383
- 46 Hz
@@ -292,6 +292,8 @@ If you are using [Sloeber](https://eclipse.baeyens.it) as your IDE, you can easi
292292

293293
# Revision History
294294

295+
- Renamed printRAMInfo to printRAMAndStackInfo.
296+
295297
### Version 1.2.1
296298
- Improved Stack info, if stack is exhausted, added flush to HexDump, improved examples.
297299

examples/AVRUtilsDemo/AVRUtilsDemo.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* AVRUtilsDemo.cpp
33
*
44
* Demo of 2 seconds sleep with watchdog
5-
* Demo of printRAMInfo() and printStackUnusedAndUsedBytes ()
5+
* Demo of printRAMAndStackInfo() and printStackUnusedAndUsedBytes ()
66
*
77
* Copyright (C) 2020-2026 Armin Joachimsmeyer
88
* armin.joachimsmeyer@gmail.com

src/ADCUtils.hpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
#if defined(ADC_UTILS_ARE_AVAILABLE) // set in ADCUtils.h, if supported architecture was detected
3030
#define ADC_UTILS_ARE_INCLUDED
3131

32-
#if !defined(STR)
32+
// Helper macro for getting a macro definition as string
33+
#if !defined(STR_HELPER) && !defined(STR)
3334
#define STR_HELPER(x) #x
3435
#define STR(x) STR_HELPER(x)
3536
#endif
@@ -694,7 +695,7 @@ bool isVCCUSBPowered(Print *aSerial) {
694695
}
695696

696697
/*
697-
* It checks every 10 seconds for 6 times, and then returns true if the undervoltage condition ( <3.4V ) still applies.
698+
* It checks every 10 seconds for 6 times, and then returns once true if the undervoltage condition ( <3.4V ) still applies.
698699
* @ return true only once, when VCC_UNDERVOLTAGE_CHECKS_BEFORE_STOP (6) times voltage too low -> shutdown
699700
*/
700701
bool isVCCUndervoltageMultipleTimes() {
@@ -732,7 +733,7 @@ bool isVCCUndervoltageMultipleTimes() {
732733
sVCCTooLowCounter++;
733734
# if defined(LOCAL_INFO)
734735
Serial.print(sVCCVoltageMillivolt);
735-
Serial.print(F(" mV < " STR(VCC_UNDERVOLTAGE_THRESHOLD_MILLIVOLT) " mV undervoltage detected: "));
736+
Serial.print(F(" mV < " STR(VCC_UNDERVOLTAGE_THRESHOLD_MILLIVOLT) " mV -> undervoltage detected: "));
736737

737738
Serial.print(VCC_UNDERVOLTAGE_CHECKS_BEFORE_STOP - sVCCTooLowCounter);
738739
Serial.println(F(" attempts left"));

0 commit comments

Comments
 (0)