-
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 #3 from vladkorotnev/develop
Release 2.0
- Loading branch information
Showing
113 changed files
with
4,266 additions
and
427 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
.pio | ||
captures/ | ||
.vscode/c_cpp_properties.json | ||
.env | ||
/src/weather_icons/src | ||
/src/weather_icons | ||
.vscode/ |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,19 @@ | ||
#pragma once | ||
#include <views/framework.h> | ||
#include <sound/beeper.h> | ||
#include <service/alarm.h> | ||
#include "proto/navmenu.h" | ||
|
||
class AppShimAlarmEditor: public ProtoShimNavMenu { | ||
public: | ||
AppShimAlarmEditor(Beeper*); | ||
void pop_renderable(transition_type_t = TRANSITION_SLIDE_HORIZONTAL_RIGHT); | ||
|
||
private: | ||
class AlarmEditorView; | ||
Beeper * beeper; | ||
|
||
int current_editing_idx; | ||
alarm_setting_t current_editing_setting; | ||
AlarmEditorView * current_editor; | ||
}; |
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,30 @@ | ||
#pragma once | ||
#include <views/framework.h> | ||
#include <graphics/framebuffer.h> | ||
#include <sound/beeper.h> | ||
#include <sensor/sensor.h> | ||
|
||
void app_alarming_prepare(Beeper*); | ||
void app_alarming_draw(FantaManipulator*); | ||
void app_alarming_process(); | ||
|
||
class AppShimAlarming: public Renderable { | ||
public: | ||
AppShimAlarming(Beeper*b) { | ||
beeper = b; | ||
} | ||
|
||
void prepare() { | ||
app_alarming_prepare(beeper); | ||
} | ||
|
||
void render(FantaManipulator*fb) { | ||
app_alarming_draw(fb); | ||
} | ||
|
||
void step() { | ||
app_alarming_process(); | ||
} | ||
private: | ||
Beeper *beeper; | ||
}; |
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,24 @@ | ||
#pragma once | ||
#include <views/framework.h> | ||
#include <graphics/framebuffer.h> | ||
#include <sound/beeper.h> | ||
#include <sensor/sensor.h> | ||
|
||
void app_idle_prepare(SensorPool*, Beeper*); | ||
void app_idle_draw(FantaManipulator*); | ||
void app_idle_process(); | ||
|
||
class AppShimIdle: public Renderable { | ||
public: | ||
AppShimIdle(SensorPool*sp, Beeper*b) { | ||
app_idle_prepare(sp, b); | ||
} | ||
|
||
void render(FantaManipulator*fb) { | ||
app_idle_draw(fb); | ||
} | ||
|
||
void step() { | ||
app_idle_process(); | ||
} | ||
}; |
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,20 @@ | ||
#pragma once | ||
#include "proto/navmenu.h" | ||
#include <views/framework.h> | ||
#include <graphics/framebuffer.h> | ||
#include <sound/beeper.h> | ||
#include <sensor/sensor.h> | ||
|
||
class AppShimMenu: public ProtoShimNavMenu { | ||
public: | ||
AppShimMenu(Beeper*); | ||
|
||
void prepare(); | ||
void step(); | ||
|
||
void pop_renderable(transition_type_t = TRANSITION_SLIDE_HORIZONTAL_RIGHT); | ||
|
||
private: | ||
Beeper * beeper; | ||
TickType_t last_touch_time; | ||
}; |
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,28 @@ | ||
#pragma once | ||
#include <stack> | ||
#include <views/framework.h> | ||
#include <graphics/framebuffer.h> | ||
#include <sound/beeper.h> | ||
#include <sensor/sensor.h> | ||
|
||
class ProtoShimNavigationStack: public Renderable { | ||
public: | ||
ProtoShimNavigationStack(Renderable* root); | ||
|
||
void prepare(); | ||
void render(FantaManipulator*fb); | ||
void step(); | ||
|
||
void push_submenu(ListView*); | ||
void push_renderable(Renderable*, transition_type_t = TRANSITION_SLIDE_HORIZONTAL_LEFT); | ||
virtual void pop_renderable(transition_type_t = TRANSITION_SLIDE_HORIZONTAL_RIGHT); | ||
|
||
protected: | ||
TransitionAnimationCoordinator * transition_coordinator; | ||
TouchArrowOverlay * scroll_guidance; | ||
Renderable* _root; | ||
Renderable* _current_renderable; | ||
void set_active_renderable(Renderable*, transition_type_t); | ||
Renderable* current_renderable(); | ||
std::stack<Renderable*> back_stack; | ||
}; |
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,10 @@ | ||
#pragma once | ||
#include "navigation_stack.h" | ||
|
||
class ProtoShimNavMenu: public ProtoShimNavigationStack { | ||
public: | ||
ProtoShimNavMenu(); | ||
void prepare(); | ||
protected: | ||
ListView* main_menu; | ||
}; |
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 <views/framework.h> | ||
#include <views/common/dropping_digits.h> | ||
#include <views/menu/melody_selection_item.h> | ||
#include <app/proto/navigation_stack.h> | ||
#include <sound/sequencer.h> | ||
|
||
class AppShimTimerEditor: public ProtoShimNavigationStack, DroppingDigits { | ||
public: | ||
AppShimTimerEditor(Beeper *); | ||
~AppShimTimerEditor(); | ||
private: | ||
class TimerEditorMainScreen; | ||
TimerEditorMainScreen * appRoot; | ||
}; |
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,27 @@ | ||
#pragma once | ||
#include <device_config.h> | ||
|
||
#if HAS(OUTPUT_MD_PLASMA) | ||
#include <display/md_plasma.h> | ||
#elif HAS(OUTPUT_WS0010) | ||
#include <display/ws0010.h> | ||
#endif | ||
|
||
#if HAS(OUTPUT_MD_PLASMA) | ||
static MorioDenkiPlasmaDriver display_driver( | ||
HWCONF_PLASMA_DATABUS_GPIOS, | ||
HWCONF_PLASMA_CLK_GPIO, | ||
HWCONF_PLASMA_RESET_GPIO, | ||
HWCONF_PLASMA_BRIGHT_GPIO, | ||
HWCONF_PLASMA_SHOW_GPIO, | ||
HWCONF_PLASMA_HV_EN_GPIO | ||
); | ||
#elif HAS(OUTPUT_WS0010) | ||
static Ws0010OledDriver display_driver( | ||
HWCONF_WS0010_DATABUS_GPIOS, | ||
HWCONF_WS0010_RS_GPIO, | ||
HWCONF_WS0010_EN_GPIO | ||
); | ||
#else | ||
#error Output type not selected | ||
#endif |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.