diff --git a/examples/PCF8574_Wire2/PCF8574_Wire2.ino b/examples/PCF8574_Wire2/PCF8574_Wire2.ino index f595374..3013269 100644 --- a/examples/PCF8574_Wire2/PCF8574_Wire2.ino +++ b/examples/PCF8574_Wire2/PCF8574_Wire2.ino @@ -2,7 +2,7 @@ // FILE: PCF8574_Wire2.ino // AUTHOR: Rob Tillaart // DATE: 2016-04-30 -// PUPROSE: demo +// PURPOSE: demo #include "PCF8574.h" diff --git a/examples/PCF8574_rotaryEncoder/PCF8574_rotaryEncoder.ino b/examples/PCF8574_rotaryEncoder/PCF8574_rotaryEncoder.ino index f6f3a5d..2051b3e 100644 --- a/examples/PCF8574_rotaryEncoder/PCF8574_rotaryEncoder.ino +++ b/examples/PCF8574_rotaryEncoder/PCF8574_rotaryEncoder.ino @@ -2,7 +2,7 @@ // FILE: PCF8574_rotaryEncoder.ino // AUTHOR: Rob Tillaart // DATE: 2021-05-08 -// PUPROSE: demo PCF8574 as rotary encoder reader. +// PURPOSE: demo PCF8574 as rotary encoder reader. // // // RotaryEncoder PCF8574 UNO diff --git a/examples/PCF8574_test1/PCF8574_test1.ino b/examples/PCF8574_test1/PCF8574_test1.ino index 570f5ae..b66a548 100644 --- a/examples/PCF8574_test1/PCF8574_test1.ino +++ b/examples/PCF8574_test1/PCF8574_test1.ino @@ -2,7 +2,7 @@ // FILE: PCF8574_test.ino // AUTHOR: Rob Tillaart // DATE: 27-08-2013 -// PUPROSE: demo +// PURPOSE: demo #include "PCF8574.h" diff --git a/examples/PCF8574_test2/PCF8574_test2.ino b/examples/PCF8574_test2/PCF8574_test2.ino index 6cc67af..fee99dc 100644 --- a/examples/PCF8574_test2/PCF8574_test2.ino +++ b/examples/PCF8574_test2/PCF8574_test2.ino @@ -2,7 +2,7 @@ // FILE: pcf8574_test2.ino // AUTHOR: Rob Tillaart // DATE: 2016-04-30 -// PUPROSE: demo rotateLeft, rotateRight and toggleMask +// PURPOSE: demo rotateLeft, rotateRight and toggleMask #include "PCF8574.h" diff --git a/examples/PCF8574_test_ESP32/PCF8574_test_ESP32.ino b/examples/PCF8574_test_ESP32/PCF8574_test_ESP32.ino index 52e4038..acf7d62 100644 --- a/examples/PCF8574_test_ESP32/PCF8574_test_ESP32.ino +++ b/examples/PCF8574_test_ESP32/PCF8574_test_ESP32.ino @@ -17,10 +17,10 @@ void setup() Serial.print("PCF8574_LIB_VERSION:\t"); Serial.println(PCF8574_LIB_VERSION); - Wire.begin(); - // adjust pins if needed - PCF_01.begin(20, 21); + Wire.begin(20, 21); + + PCF_01.begin(); int x = PCF_01.read8(); Serial.print("Read "); diff --git a/test/unit_test_001.cpp b/test/unit_test_001.cpp index 2bfb795..79116b4 100644 --- a/test/unit_test_001.cpp +++ b/test/unit_test_001.cpp @@ -94,7 +94,7 @@ unittest(test_address) { PCF8574 PCF(0x38); - Wire.begin + Wire.begin(); // incorrect in test environment. assertTrue(PCF.begin());