forked from numworks/epsilon
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
33 changed files
with
463 additions
and
128 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
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,14 +1,12 @@ | ||
$(BUILD_DIR)/epsilon.packed.js: LDFLAGS += --memory-init-file 0 | ||
$(BUILD_DIR)/epsilon.packed.js: $(call object_for,$(all_epsilon_default_src)) | ||
# Headless targets | ||
epsilon_headless_src = $(base_src) $(ion_headless_src) $(apps_default_src) | ||
$(BUILD_DIR)/epsilon.headless.$(EXE): $(call object_for,$(epsilon_headless_src)) | ||
$(BUILD_DIR)/epsilon.headless.$(EXE): LDFLAGS += `libpng-config --ldflags` | ||
|
||
.PHONY: workshop_python_emulator | ||
workshop_python_emulator: | ||
make PLATFORM=simulator TARGET=web clean_for_apps_selection | ||
make PLATFORM=simulator TARGET=web EPSILON_APPS=code | ||
make PLATFORM=simulator TARGET=web clean_for_apps_selection | ||
test_runner_headless_src = $(test_base_src) $(ion_headless_src) | ||
$(BUILD_DIR)/test.headless.$(EXE): $(call object_for,$(test_runner_headless_src)) | ||
$(BUILD_DIR)/test.headless.$(EXE): LDFLAGS += `libpng-config --ldflags` | ||
|
||
.PHONY: clean_for_apps_selection | ||
clean_for_apps_selection: | ||
@echo "CLEAN BEFORE CHANGING EPSILON_APPS" | ||
$(Q) rm -f $(BUILD_DIR)/apps/apps_container_storage.o | ||
$(Q) rm -f $(BUILD_DIR)/apps/i18n.* | ||
HANDY_TARGETS += epsilon.headless test.headless | ||
|
||
-include build/targets.simulator.$(TARGET).mak |
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,17 @@ | ||
$(BUILD_DIR)/epsilon.js: EMSCRIPTEN_INIT_FILE = 1 | ||
|
||
$(BUILD_DIR)/test.headless.js: EMSCRIPTEN_MODULARIZE = 0 | ||
|
||
$(BUILD_DIR)/epsilon.packed.js: $(call object_for,$(epsilon_src)) | ||
|
||
.PHONY: workshop_python_emulator | ||
workshop_python_emulator: | ||
make PLATFORM=simulator TARGET=web clean_for_apps_selection | ||
make PLATFORM=simulator TARGET=web EPSILON_APPS=code | ||
make PLATFORM=simulator TARGET=web clean_for_apps_selection | ||
|
||
.PHONY: clean_for_apps_selection | ||
clean_for_apps_selection: | ||
@echo "CLEAN BEFORE CHANGING EPSILON_APPS" | ||
$(Q) rm -f $(BUILD_DIR)/apps/apps_container_storage.o | ||
$(Q) rm -f $(BUILD_DIR)/apps/i18n.* |
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
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 @@ | ||
flasher_src += $(addprefix ion/src/device/flasher/, \ | ||
ion_target_device_flasher_light_src = $(addprefix ion/src/device/flasher/, \ | ||
main.cpp \ | ||
display_light.cpp \ | ||
) | ||
|
||
ion_target_device_flasher_verbose_src = $(addprefix ion/src/device/flasher/, \ | ||
main.cpp \ | ||
display_verbose.cpp \ | ||
) |
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 @@ | ||
#include "console.h" | ||
|
||
namespace Ion { | ||
namespace Device { | ||
namespace Console { | ||
|
||
void init() { | ||
} | ||
|
||
void shutdown() { | ||
} | ||
|
||
bool peerConnected() { | ||
return false; | ||
} | ||
|
||
} | ||
} | ||
} |
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,29 @@ | ||
#include <ion/console.h> | ||
#include <kandinsky.h> | ||
#include <ion/display.h> | ||
|
||
namespace Ion { | ||
namespace Console { | ||
|
||
char readChar() { | ||
return NULL; | ||
} | ||
|
||
static KDPoint cursor = KDPointZero; | ||
|
||
void writeChar(char c) { | ||
char text[2] = {c, 0}; | ||
KDContext * ctx = KDIonContext::sharedContext(); | ||
cursor = ctx->drawString(text, cursor); | ||
if (cursor.y() > Ion::Display::Height) { | ||
cursor = KDPoint(cursor.x(), 0); | ||
} | ||
} | ||
|
||
bool transmissionDone() { | ||
// Always true because we flush after each writeChar | ||
return true; | ||
} | ||
|
||
} | ||
} |
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
File renamed without changes.
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.