summaryrefslogtreecommitdiffstatshomepage
path: root/robots.txt
blob: 4ce948fec2c9f85897d29a9d892b5113006d1328 (plain)
1
2
3
User-agent: *
Disallow: /*/snapshot/*
Allow: /
her */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
#include <stdio.h>
#include "pico/stdlib.h"
#include "hardware/i2c.h"
extern "C" {
#include "hardware/rtc.h"
}

#include "init.hpp"

void init_rtc() {
    datetime_t init_date = {
        .year = INIT_DATETIME_YEAR,
        .month = INIT_DATETIME_MONTH,
        .day = INIT_DATETIME_DAY,
        .dotw = INIT_DATETIME_DOTW, // 0 is Sunday, so 5 is Friday
        .hour = INIT_DATETIME_HOUR,
        .min = INIT_DATETIME_MIN,
        .sec = INIT_DATETIME_SEC };
    rtc_init();
    rtc_set_datetime(&init_date);
}

void init_all() {
    stdio_init_all();
    init_rtc();
}