summaryrefslogtreecommitdiffstats
path: root/init.h
blob: a14646e5e822b3a10cb0d88d5955aaf38f2aca5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#ifndef __INIT_H__
#define __INIT_H__

// To modify the I2C port used, change the `#define I2C_PORT` in "oled/BitBang_I2C.c"
// Pin numbers are GPIO pins.
#define SDA_PIN 6
#define SCL_PIN 7
#define RESET_PIN -1
#define OLED_DEFAULT_CONTRAST 40
SSOLED oled;

// Initial date & time
// The idea is to have the compiler set the date at compile-time.
// DOTW: 0 is Sunday
#define INIT_DATETIME_YEAR 2020
#define INIT_DATETIME_MONTH 06
#define INIT_DATETIME_DAY 05
#define INIT_DATETIME_DOTW 5
#define INIT_DATETIME_HOUR 15
#define INIT_DATETIME_MIN 45
#define INIT_DATETIME_SEC 00


// Init every componement
void init_all();
// Init OLED display
void init_display();
// Init onboard RTC
void init_rtc();

#endif
an class="w"> *txt); extern void html_ntxt(int len, const char *txt); extern void html_attr(const char *txt); extern void html_url_path(const char *txt); extern void html_url_arg(const char *txt); extern void html_hidden(const char *name, const char *value); extern void html_option(const char *value, const char *text, const char *selected_value); extern void html_link_open(const char *url, const char *title, const char *class); extern void html_link_close(void); extern void html_fileperm(unsigned short mode); extern int html_include(const char *filename); extern int http_parse_querystring(const char *txt, void (*fn)(const char *name, const char *value)); #endif /* HTML_H */