Outputs the original DS3231demo to a COM port rather than an debugger(?)

Dependencies:   ds3231 mbed

Fork of DS3231demo by Maxim Integrated

Files at this revision

API Documentation at this revision

Comitter:
lloydie_p
Date:
Mon Dec 21 17:08:44 2015 +0000
Parent:
7:2d2538fb0539
Commit message:
Outputs the original DS3231 demo printf commands to the Nucleo's COM Port. Output is easily viewed via putty/hyper-terminal etc...

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Mon Dec 21 16:50:57 2015 +0000
+++ b/main.cpp	Mon Dec 21 17:08:44 2015 +0000
@@ -40,11 +40,11 @@
 
 void get_user_input(char* message, uint8_t min, uint8_t max, uint32_t* member);
 void get_user_input(char* message, uint8_t min, uint8_t max, bool* member);
-Serial pc(SERIAL_TX, SERIAL_RX);
+Serial pc(SERIAL_TX, SERIAL_RX); // Added to output prinf commands to a COM port (check the Windows device manger for the current Nucleo COM port), use Putty or any other PC based COM port application to view (default baud is 9600). 
 int main(void)
 {
     //rtc object
-    Ds3231 rtc(D4, D5); 
+    Ds3231 rtc(D4, D5); //Input the SDA,SCL I2C pins for your Nucleo Device (D4,D5 the are the SDA,SCL pins for NUCLEO-F303K8)
     
     time_t epoch_time;