wlmaker
|
#include <libbase/libbase.h>
#include <libwlclient/libwlclient.h>
#include <primitives/primitives.h>
#include <primitives/segment_display.h>
#include <math.h>
#include <sys/time.h>
Functions | |
uint64_t | next_draw_time (void) |
bool | icon_callback (wlclient_icon_t *icon_ptr, bs_gfxbuf_t *gfxbuf_ptr, void *ud_ptr) |
void | timer_callback (wlclient_t *client_ptr, void *ud_ptr) |
int | main (int argc, char **argv) |
Variables | |
static const uint32_t | color_led = 0xff55ffff |
static const uint32_t | color_off = 0xff114444 |
static const uint32_t | color_background = 0xff111111 |
Demonstrator for using the icon protocol.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
bool icon_callback | ( | wlclient_icon_t * | icon_ptr, |
bs_gfxbuf_t * | gfxbuf_ptr, | ||
void * | ud_ptr ) |
Draws contents into the icon buffer.
icon_ptr | |
gfxbuf_ptr | |
ud_ptr |
int main | ( | int | argc, |
char ** | argv ) |
Main program.
uint64_t next_draw_time | ( | void | ) |
Returns the next full second for when to draw the clock.
void timer_callback | ( | wlclient_t * | client_ptr, |
void * | ud_ptr ) |
Called once per second.
|
static |
Background color in the VFD-style display.
|
static |
Foreground color of a LED in the VFD-style display.
|
static |
Color of a turned-off element in the VFD-style display.