diff --git a/examples/ACS712_20_AC_DEMO/ACS712_20_AC_DEMO.ino b/examples/ACS712_20_AC_DEMO/ACS712_20_AC_DEMO.ino index d8f2b61..1fc7b0e 100644 --- a/examples/ACS712_20_AC_DEMO/ACS712_20_AC_DEMO.ino +++ b/examples/ACS712_20_AC_DEMO/ACS712_20_AC_DEMO.ino @@ -54,5 +54,5 @@ void loop() } -// -- END OF FILE -- +// -- END OF FILE -- diff --git a/examples/ACS712_20_AC_SAMPLING_DEMO/ACS712_20_AC_SAMPLING_DEMO.ino b/examples/ACS712_20_AC_SAMPLING_DEMO/ACS712_20_AC_SAMPLING_DEMO.ino index 6693d86..778a887 100644 --- a/examples/ACS712_20_AC_SAMPLING_DEMO/ACS712_20_AC_SAMPLING_DEMO.ino +++ b/examples/ACS712_20_AC_SAMPLING_DEMO/ACS712_20_AC_SAMPLING_DEMO.ino @@ -49,4 +49,4 @@ void loop() } -// -- END OF FILE -- +// -- END OF FILE -- diff --git a/examples/ACS712_20_AC_average/ACS712_20_AC_average.ino b/examples/ACS712_20_AC_average/ACS712_20_AC_average.ino index ec8ba82..1ca24e8 100644 --- a/examples/ACS712_20_AC_average/ACS712_20_AC_average.ino +++ b/examples/ACS712_20_AC_average/ACS712_20_AC_average.ino @@ -41,7 +41,7 @@ void loop() uint32_t start = millis(); for (int i = 0; i < 100; i++) { - // select sppropriate function + // select appropriate function // average += ACS.mA_AC_sampling(); average += ACS.mA_AC(); } @@ -56,4 +56,4 @@ void loop() } -// -- END OF FILE -- +// -- END OF FILE -- diff --git a/examples/ACS712_20_AC_compare/ACS712_20_AC_compare.ino b/examples/ACS712_20_AC_compare/ACS712_20_AC_compare.ino index f31cfb0..6882896 100644 --- a/examples/ACS712_20_AC_compare/ACS712_20_AC_compare.ino +++ b/examples/ACS712_20_AC_compare/ACS712_20_AC_compare.ino @@ -47,4 +47,4 @@ void loop() } -// -- END OF FILE -- +// -- END OF FILE -- diff --git a/examples/ACS712_20_AC_low_pass/ACS712_20_AC_low_pass.ino b/examples/ACS712_20_AC_low_pass/ACS712_20_AC_low_pass.ino index 453eb39..68179fc 100644 --- a/examples/ACS712_20_AC_low_pass/ACS712_20_AC_low_pass.ino +++ b/examples/ACS712_20_AC_low_pass/ACS712_20_AC_low_pass.ino @@ -38,16 +38,16 @@ void setup() Serial.print("Amp/Step: "); Serial.println(ACS.getAmperePerStep(), 4); - value = ACS.mA_AC(); // get good initial value + value = ACS.mA_AC(); // get good initial value } void loop() { - // select sppropriate function + // select appropriate function float mA = ACS.mA_AC_sampling(); - // float mA = ACS.mA_AC(); - value += weight * (mA - value); // low pass filtering + // float mA = ACS.mA_AC(); + value += weight * (mA - value); // low pass filtering Serial.print("weight: "); Serial.print(weight); @@ -61,4 +61,4 @@ void loop() } -// -- END OF FILE -- +// -- END OF FILE -- diff --git a/examples/ACS712_20_AC_midPoint_compare/ACS712_20_AC_midPoint_compare.ino b/examples/ACS712_20_AC_midPoint_compare/ACS712_20_AC_midPoint_compare.ino index 90df1d6..c2cee54 100644 --- a/examples/ACS712_20_AC_midPoint_compare/ACS712_20_AC_midPoint_compare.ino +++ b/examples/ACS712_20_AC_midPoint_compare/ACS712_20_AC_midPoint_compare.ino @@ -51,4 +51,4 @@ void loop() } -// -- END OF FILE -- +// -- END OF FILE -- diff --git a/examples/ACS712_20_AC_midPoint_performance/ACS712_20_AC_midPoint_performance.ino b/examples/ACS712_20_AC_midPoint_performance/ACS712_20_AC_midPoint_performance.ino index d608a11..5f4211f 100644 --- a/examples/ACS712_20_AC_midPoint_performance/ACS712_20_AC_midPoint_performance.ino +++ b/examples/ACS712_20_AC_midPoint_performance/ACS712_20_AC_midPoint_performance.ino @@ -71,4 +71,4 @@ void loop() } -// -- END OF FILE -- +// -- END OF FILE -- diff --git a/examples/ACS712_20_AC_suppress_noise/ACS712_20_AC_suppress_noise.ino b/examples/ACS712_20_AC_suppress_noise/ACS712_20_AC_suppress_noise.ino index 2ff3063..f3e8683 100644 --- a/examples/ACS712_20_AC_suppress_noise/ACS712_20_AC_suppress_noise.ino +++ b/examples/ACS712_20_AC_suppress_noise/ACS712_20_AC_suppress_noise.ino @@ -70,4 +70,4 @@ void loop() } -// -- END OF FILE -- +// -- END OF FILE -- diff --git a/examples/ACS712_20_DC/ACS712_20_DC.ino b/examples/ACS712_20_DC/ACS712_20_DC.ino index 4a39206..45455ed 100644 --- a/examples/ACS712_20_DC/ACS712_20_DC.ino +++ b/examples/ACS712_20_DC/ACS712_20_DC.ino @@ -3,9 +3,10 @@ // AUTHOR: Rob Tillaart // PURPOSE: demo to measure mA DC // URL: https://github.com/RobTillaart/ACS712 - +// // use with Arduino Serial Plotter + #include "ACS712.h" @@ -41,4 +42,4 @@ void loop() } -// -- END OF FILE -- +// -- END OF FILE -- diff --git a/examples/ACS712_20_DC_DEMO/ACS712_20_DC_DEMO.ino b/examples/ACS712_20_DC_DEMO/ACS712_20_DC_DEMO.ino index c5de255..7d95a74 100644 --- a/examples/ACS712_20_DC_DEMO/ACS712_20_DC_DEMO.ino +++ b/examples/ACS712_20_DC_DEMO/ACS712_20_DC_DEMO.ino @@ -52,5 +52,5 @@ void loop() } -// -- END OF FILE -- +// -- END OF FILE -- diff --git a/examples/ACS712_20_DC_external_ADC/ACS712_20_DC_external_ADC.ino b/examples/ACS712_20_DC_external_ADC/ACS712_20_DC_external_ADC.ino index 8c2c4b7..fd042d0 100644 --- a/examples/ACS712_20_DC_external_ADC/ACS712_20_DC_external_ADC.ino +++ b/examples/ACS712_20_DC_external_ADC/ACS712_20_DC_external_ADC.ino @@ -3,9 +3,8 @@ // AUTHOR: Rob Tillaart // PURPOSE: demo to measure mA DC with external ADC // URL: https://github.com/RobTillaart/ACS712 - +// // see also ACS712_ESP32_external_ADC.ino - // use with Arduino Serial Plotter #include "ACS712.h" @@ -56,4 +55,4 @@ uint16_t testADC(uint8_t p) } -// -- END OF FILE -- +// -- END OF FILE -- diff --git a/examples/ACS712_20_determine_form_factor/ACS712_20_determine_form_factor.ino b/examples/ACS712_20_determine_form_factor/ACS712_20_determine_form_factor.ino index d0f8576..43ad1d2 100644 --- a/examples/ACS712_20_determine_form_factor/ACS712_20_determine_form_factor.ino +++ b/examples/ACS712_20_determine_form_factor/ACS712_20_determine_form_factor.ino @@ -52,4 +52,4 @@ void loop() } -// -- END OF FILE -- +// -- END OF FILE -- diff --git a/examples/ACS712_20_mV_noise_level/ACS712_20_mV_noise_level.ino b/examples/ACS712_20_mV_noise_level/ACS712_20_mV_noise_level.ino index 9fadb09..f42f278 100644 --- a/examples/ACS712_20_mV_noise_level/ACS712_20_mV_noise_level.ino +++ b/examples/ACS712_20_mV_noise_level/ACS712_20_mV_noise_level.ino @@ -44,4 +44,4 @@ void loop() } -// -- END OF FILE -- +// -- END OF FILE -- diff --git a/examples/ACS712_ESP32_external_ADC/ACS712_ESP32_external_ADC.ino b/examples/ACS712_ESP32_external_ADC/ACS712_ESP32_external_ADC.ino index f49b03a..8c043a5 100644 --- a/examples/ACS712_ESP32_external_ADC/ACS712_ESP32_external_ADC.ino +++ b/examples/ACS712_ESP32_external_ADC/ACS712_ESP32_external_ADC.ino @@ -19,7 +19,7 @@ #define SENSOR_ACS712_ADSPIN 1 -// explicit params for demo +// explicit parameters for demo ADS1015 ads1015(ADS1015_ADDRESS, &Wire); // ADS1015 == 12 bit diff --git a/examples/ACS712_I2C_display/ACS712_I2C_display.ino b/examples/ACS712_I2C_display/ACS712_I2C_display.ino index 770671a..9e42132 100644 --- a/examples/ACS712_I2C_display/ACS712_I2C_display.ino +++ b/examples/ACS712_I2C_display/ACS712_I2C_display.ino @@ -54,15 +54,15 @@ void setup() Serial.print("ACS712_LIB_VERSION: "); Serial.println(ACS712_LIB_VERSION); + Wire.begin(); + lcd.begin(16, 2); lcd.setBacklightPin(BACKLIGHT_PIN, POSITIVE); lcd.setBacklight(BL_ON); lcd.clear(); - ACS.autoMidPoint(); - } @@ -87,4 +87,4 @@ void loop() } -// -- END OF FILE -- +// -- END OF FILE -- diff --git a/examples/ACS712_detectFrequency/ACS712_detectFrequency.ino b/examples/ACS712_detectFrequency/ACS712_detectFrequency.ino index 6df4e01..5c83c26 100644 --- a/examples/ACS712_detectFrequency/ACS712_detectFrequency.ino +++ b/examples/ACS712_detectFrequency/ACS712_detectFrequency.ino @@ -45,5 +45,5 @@ void loop() } -// -- END OF FILE -- +// -- END OF FILE -- diff --git a/examples/RMS_by_sampling/RMS_by_sampling.ino b/examples/RMS_by_sampling/RMS_by_sampling.ino index 2f9248f..0dafad3 100644 --- a/examples/RMS_by_sampling/RMS_by_sampling.ino +++ b/examples/RMS_by_sampling/RMS_by_sampling.ino @@ -52,4 +52,4 @@ float mA_AC_sampling(float frequency, float mVperStep, float mVperAmpere, uint8_ } -// -- END OF FILE -- +// -- END OF FILE --