-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A small confirmation pops up after an item in the main menu has been selected. Furthermore "Preheat bed" and "Preheat nozzle" commands have been added.
- Loading branch information
Showing
22 changed files
with
339 additions
and
26 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
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 |
---|---|---|
@@ -1,4 +1,10 @@ | ||
// OctoWatch2 | ||
// A Pebble watch app for monitoring and basic controlling of 3D printers via Octoprint | ||
// | ||
// Licence: CC BY-SA 3.0, http://creativecommons.org/licenses/by-sa/3.0/ | ||
// Author: Dominik Scholz <[email protected]>, go4u.de Webdesign <[email protected]> | ||
|
||
#pragma once | ||
#include <pebble.h> | ||
|
||
void app_glance_destroy(void); | ||
//static void app_glance_update(AppGlanceReloadSession *, size_t, void *); |
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 |
---|---|---|
@@ -1,7 +1,12 @@ | ||
// OctoWatch2 | ||
// A Pebble watch app for monitoring and basic controlling of 3D printers via Octoprint | ||
// | ||
// Licence: CC BY-SA 3.0, http://creativecommons.org/licenses/by-sa/3.0/ | ||
// Author: Dominik Scholz <[email protected]>, go4u.de Webdesign <[email protected]> | ||
|
||
#pragma once | ||
#include <pebble.h> | ||
|
||
//static void messaging_inbox_received(DictionaryIterator *, void *); | ||
//static void messaging_inbox_dropped(AppMessageResult, void *); | ||
void messaging_outbox_send(const char *, const char *); | ||
void messaging_init(void); | ||
void messaging_destroy(void); |
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,4 +1,11 @@ | ||
// OctoWatch2 | ||
// A Pebble watch app for monitoring and basic controlling of 3D printers via Octoprint | ||
// | ||
// Licence: CC BY-SA 3.0, http://creativecommons.org/licenses/by-sa/3.0/ | ||
// Author: Dominik Scholz <[email protected]>, go4u.de Webdesign <[email protected]> | ||
|
||
#pragma once | ||
#include <pebble.h> | ||
|
||
enum PRINTERSTATE { | ||
LOADING, | ||
|
@@ -10,7 +17,6 @@ enum PRINTERSTATE { | |
ERROR | ||
}; | ||
|
||
|
||
enum PRINTERSTATE printer_get_state(void); | ||
void printer_set_state(enum PRINTERSTATE); | ||
void printer_set_state_by_char(const char *); | ||
|
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 |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
// Author: Dominik Scholz <[email protected]>, go4u.de Webdesign <[email protected]> | ||
|
||
// progress_layer | ||
// taken from https://github.com/pebble-examples/ui-patterns/ (MIT License) | ||
// taken from https://github.com/pebble-examples/ui-patterns/ | ||
// | ||
// Licence: The MIT License (MIT) | ||
// Author: C-D-Lewis | ||
|
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,13 +1,17 @@ | ||
#pragma once | ||
// OctoWatch2 | ||
// A Pebble watch app for monitoring and basic controlling of 3D printers via Octoprint | ||
// | ||
// Licence: CC BY-SA 3.0, http://creativecommons.org/licenses/by-sa/3.0/ | ||
// Author: Dominik Scholz <[email protected]>, go4u.de Webdesign <[email protected]> | ||
|
||
#pragma once | ||
#include <pebble.h> | ||
|
||
typedef Layer ProgressLayer; | ||
|
||
ProgressLayer* progress_layer_create(GRect frame); | ||
void progress_layer_destroy(ProgressLayer* progress_layer); | ||
void progress_layer_increment_progress(ProgressLayer* progress_layer, int16_t progress); | ||
void progress_layer_set_progress(ProgressLayer* progress_layer, int16_t progress_percent); | ||
void progress_layer_set_corner_radius(ProgressLayer* progress_layer, uint16_t corner_radius); | ||
void progress_layer_set_foreground_color(ProgressLayer* progress_layer, GColor color); | ||
void progress_layer_set_background_color(ProgressLayer* progress_layer, GColor color); | ||
void progress_layer_set_background_color(ProgressLayer* progress_layer, GColor color); |
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,3 +1,9 @@ | ||
// OctoWatch2 | ||
// A Pebble watch app for monitoring and basic controlling of 3D printers via Octoprint | ||
// | ||
// Licence: CC BY-SA 3.0, http://creativecommons.org/licenses/by-sa/3.0/ | ||
// Author: Dominik Scholz <[email protected]>, go4u.de Webdesign <[email protected]> | ||
|
||
#include <pebble.h> | ||
#include "window_confirm.h" | ||
|
||
|
@@ -37,7 +43,7 @@ static void window_main_actionbar_config(void *context) { | |
} | ||
|
||
|
||
// render background layer | ||
// render icon layer | ||
static void window_main_draw_icon_layer(Layer *layer, GContext *context) { | ||
GRect bounds = layer_get_bounds(layer); | ||
const GEdgeInsets frame_insets = { | ||
|
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 |
---|---|---|
|
@@ -5,6 +5,8 @@ | |
// Author: Dominik Scholz <[email protected]>, go4u.de Webdesign <[email protected]> | ||
|
||
#pragma once | ||
#include <pebble.h> | ||
|
||
void window_confirm_init(void); | ||
void window_confirm_init_custom(const char *, GColor, void(*)(void)); | ||
void window_confirm_destroy(void); | ||
void window_confirm_destroy(void); |
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,11 +1,13 @@ | ||
// OctoWatch2 | ||
// A Pebble watch app for monitoring and basic controlling of 3D printers via Octoprint | ||
// | ||
// Licence: CC BY-SA 3.0, http://creativecommons.org/licenses/by-sa/3.0/ | ||
// Author: Dominik Scholz <[email protected]>, go4u.de Webdesign <[email protected]> | ||
|
||
#pragma once | ||
#include <pebble.h> | ||
|
||
//static void window_main_actionbar_up(ClickRecognizerRef, void *); | ||
//static void window_main_actionbar_select(ClickRecognizerRef, void *); | ||
//static void window_main_actionbar_down(ClickRecognizerRef, void *); | ||
void window_main_actionbar_config(void *); | ||
//static void window_main_load_handler(Window *); | ||
//static void window_main_unload_handler(Window *); | ||
void window_main_set_time_remaing_counter(const char *); | ||
void window_main_set_filename(const char *); | ||
void window_main_set_nozzle(const uint16_t, const uint16_t); | ||
|
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 |
---|---|---|
@@ -1,4 +1,11 @@ | ||
// OctoWatch2 | ||
// A Pebble watch app for monitoring and basic controlling of 3D printers via Octoprint | ||
// | ||
// Licence: CC BY-SA 3.0, http://creativecommons.org/licenses/by-sa/3.0/ | ||
// Author: Dominik Scholz <[email protected]>, go4u.de Webdesign <[email protected]> | ||
|
||
#pragma once | ||
#include <pebble.h> | ||
|
||
void window_menu_init(void); | ||
void window_menu_destroy(void); | ||
void window_menu_destroy(void); |
Oops, something went wrong.