Skip to content

Instantly share code, notes, and snippets.

@menesesleonardo
menesesleonardo / PCF8523.c
Created August 29, 2018 04:50
pcf8523 rtc esp32
#include <apps/sntp/sntp.h>
#include <driver/i2c.h>
#include <esp_log.h>
#include <freertos/FreeRTOS.h>
#include <freertos/task.h>
#include <lwip/sockets.h>
#include <stdio.h>
#include <time.h>
#include "errorhandle_func.h"
/* Hello World Example
This example code is in the Public Domain (or CC0 licensed, at your option.)
Unless required by applicable law or agreed to in writing, this
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied.
*/
// C programming
#include <stdio.h>