Pebble App Framework
main
How It Works
CLI
Device API
Phone API
C Coverage
TS Coverage
GitHub
Theme
Pebble App Framework: Device API
Toggle main menu visibility
Loading...
Searching...
No Matches
solar.h
Go to the documentation of this file.
1
17
#pragma once
18
#include <stdbool.h>
19
24
34
int
solar_day_progress
(
int
rise,
int
set,
int
now);
35
47
int
solar_night_progress
(
int
rise,
int
set,
int
now);
48
61
int
solar_next_event
(
int
rise,
int
set,
int
now,
bool
*is_sunrise);
62
solar_next_event
int solar_next_event(int rise, int set, int now, bool *is_sunrise)
Minutes until the next sun event, and which one it is.
Definition
solar.c:80
solar_day_progress
int solar_day_progress(int rise, int set, int now)
How far through the daylight it is, from 0 at sunrise to 100 at sunset.
Definition
solar.c:52
solar_night_progress
int solar_night_progress(int rise, int set, int now)
How far through the night it is, from 0 at sunset to 100 at the next sunrise.
Definition
solar.c:68
src
c
core
clock
solar.h
Generated by
1.18.0