Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: PCF8523.cpp
- Revision:
- 1:41dd31bbbe6d
- Parent:
- 0:b7ac3add7d83
diff -r b7ac3add7d83 -r 41dd31bbbe6d PCF8523.cpp
--- a/PCF8523.cpp Fri Mar 02 07:01:17 2018 +0000
+++ b/PCF8523.cpp Thu Jun 18 08:57:58 2020 +0000
@@ -80,6 +80,15 @@
return true;
}
+bool PCF8523::Initialize(char adr, uint8_t val)
+{
+ char buffer[4];
+ buffer[0] = val;
+ if(!write(adr, buffer[0]))return 0;
+
+ return true;
+}
+
bool PCF8523::IsConnected()
{
bool ok = false;