Search the Community
Showing results for tags 'pcf8563'.
-
I solder on spare pcb a pcf8563 acording to diagram: PCF is connected to I2c 3 (PD_0 and PD_1). Tiva-C is flashed with code: #include <Wire.h> #include <RTClib.h> RTC_PCF8563 RTC; void setup () { Serial.begin(57600); Wire.setModule(3); Wire.begin(); RTC.begin(); // following line sets the RTC to the date & time this sketch was compiled RTC.adjust(DateTime(__DATE__, __TIME__)); } void loop () { DateTime now = RTC.now(); Serial.print(now.year(), DEC); Serial.print('/'); Serial.print(now.month(), DEC); Serial.print('/'); Serial.print(now.day(), DEC); Serial.print('
-
Another trivial port... this is the RTCLib I've been using for a couple of AVR projects, it runs with really minor modifications (just stripped out PROGMEM related stuff). I've already pulled a request to the main repo (I've been contributing DS1388 to this lib in the past). While the pull gets in, here is the library on my fork: https://github.com/elpaso/rtclib I've tested the library on my LP 1.5 with a DS1388 (3.3V version) and it's working fine. Example #include <Wire.h> #include <RTClib.h> RTC_DS1388 RTC; DateTime now; // Ugly globals... uint8_t timeH; u
-
Hi guys Here I am again to ask for help :oops: So the deal is this: I'm waiting for a nokia 5110 LCD screen to arrive and I'm thinking on what I can do with it. My idea was to make something like a clock with a thermometer and, with an accelerometer, when I bounce it it works like a magic 8 ball (I think about a decision I have to make and it "helps" me with a "Yes" "No" and "Maybe" answer). The maginc 8 ball isn't a real issue. I gess that the code is pretty simple (I can use a sample code from the book "Getting started with the MSP430") and that shouldn't be a problem. My pr