/*
  DS1307.h - DS1307 Real-Time Clock library
  Copyright (c) 2011 Álvaro Justen aka Turicas.  All right reserved.

  This library is free software; you can redistribute it and/or
  modify it under the terms of the GNU Lesser General Public
  License as published by the Free Software Foundation; either
  version 2.1 of the License, or (at your option) any later version.

  This library is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  Lesser General Public License for more details.

  You should have received a copy of the GNU Lesser General Public
  License along with this library; if not, write to the Free Software
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
*/

#ifndef DS1307_h
#define DS1307_h

#include <inttypes.h>

#define DS1307_ADDRESS 0x68

class DS1307Class {
    public:
        void begin();
        void getDate(int *values);
        void setDate(uint8_t year, uint8_t month, uint8_t dayOfMonth,
                     uint8_t dayOfWeek, uint8_t hour, uint8_t minue,
                     uint8_t second);
};

char *fromNumberToWeekDay(int dayOfWeek);

extern DS1307Class DS1307;

#endif
