-
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.
- Loading branch information
akasaka
committed
May 31, 2024
1 parent
48d148e
commit 6767966
Showing
12 changed files
with
381 additions
and
5 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,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
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.