my prototype PCF8563's library
Fork of PCF8563 by
Diff: PCF8563.cpp
- Revision:
- 1:bcea5c3f58f4
- Parent:
- 0:47c63ed3af91
diff -r 47c63ed3af91 -r bcea5c3f58f4 PCF8563.cpp --- a/PCF8563.cpp Fri Jan 22 08:50:40 2016 +0000 +++ b/PCF8563.cpp Mon Jul 17 14:03:29 2017 +0000 @@ -1,7 +1,7 @@ #include "mbed.h" #include "PCF8563.h" -extern Serial dbg; +extern Serial usart2; PCF8563::PCF8563(PinName sda, PinName scl) : pcf8563_i2c (sda, scl) { @@ -109,7 +109,7 @@ buffer = buffer & 0x08; if(buffer == 0x08) { - dbg.printf("== ALARM ON ==\r\n"); + usart2.printf("== ALARM ON ==\r\n"); wait_ms(200); alarmOff();