-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from vladkorotnev/develop
Release 1.1
- Loading branch information
Showing
19 changed files
with
702 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#pragma once | ||
#include <freertos/FreeRTOS.h> | ||
|
||
// Output option for foo_controlserver: | ||
// %artist%|%title% | ||
// Also set the main delimiter to | | ||
|
||
#define FOO_SEPARATOR '|' | ||
|
||
void foo_client_begin(); | ||
|
||
bool foo_is_playing(); | ||
void foo_get_title(char *, size_t); | ||
void foo_get_artist(char *, size_t); | ||
TickType_t foo_last_recv(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#pragma once | ||
#include <freertos/FreeRTOS.h> | ||
|
||
void wotd_start(); | ||
bool wotd_get_current(char * word, size_t word_sz, char * definition, size_t def_sz); | ||
TickType_t wotd_get_last_update(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#pragma once | ||
#include "view.h" | ||
#include <plasma/fanta_manipulator.h> | ||
#include <views/string_scroll.h> | ||
|
||
class Fb2kView: public Renderable { | ||
public: | ||
Fb2kView(); | ||
void prepare(); | ||
void step(); | ||
void render(FantaManipulator*); | ||
|
||
private: | ||
void update_if_needed(); | ||
const font_definition_t * font; | ||
char artist_buffer[128]; | ||
char title_buffer[128]; | ||
TickType_t last_update; | ||
StringScroll * top_line; | ||
StringScroll * bottom_line; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#pragma once | ||
#include "view.h" | ||
#include <plasma/fanta_manipulator.h> | ||
#include <views/string_scroll.h> | ||
|
||
class WordOfTheDayView: public Renderable { | ||
public: | ||
WordOfTheDayView(); | ||
void prepare(); | ||
void step(); | ||
void render(FantaManipulator*); | ||
|
||
private: | ||
const font_definition_t * font; | ||
char word_buffer[32]; | ||
char definition_buffer[256]; | ||
TickType_t last_update; | ||
ani_sprite_state_t icon_state; | ||
sprite_t current_icon_frame; | ||
StringScroll * bottom_line; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.