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
#include <mono.h> | |
#include <io/file_system.h> | |
#include <stdio.h> | |
mono::io::FileSystem* fs; // create an instance of the FS I/O | |
mono::media::BMPImage* img; // create a bmp image representation | |
mono::ui::ImageView* bmpView; // create a UI view to display the image | |
void setup() { | |
// put your setup code here, to run once: |
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
#include "app_controller.h" | |
AppController::AppController() : | |
fs("sd"), | |
img("/sd/mono/mockups/ToDo.bmp"), | |
bmpView(&img) | |
{ | |
} | |
void AppController::monoWakeFromReset() |
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
[color] | |
branch = auto | |
diff = auto | |
interactive = auto | |
status = auto | |
grep = auto | |
ui = auto | |
[alias] | |
ci = commit |
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
#include "app_controller.h" | |
#include <Fonts/FreeSerif24pt7b.h> | |
#include <Fonts/FreeSans9pt7b.h> | |
using namespace mono::geo; | |
AppController::AppController() : | |
helloLabel(Rect(0,110-35,176,70), "Slide Left\nor right"), | |
scnOne(Rect(10,10,156,20), "Scene One"), | |
scnTwo(Rect(10,10,156,20), "Scene Two") |
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 software is part of OpenMono, see http://developer.openmono.com | |
// and is available under the MIT license, see LICENSE.txt | |
#include "psoc_battery_voltage.h" | |
#include <mbed.h> | |
extern "C" { | |
#include <project.h> | |
} |
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
TARGET = mono_app | |
ARCH="arm-none-eabi-" | |
FLASH_SIZE=262144 | |
FLASH_ROW_SIZE=256 | |
FLASH_ARRAY_SIZE=65536 | |
EE_ARRAY=64 | |
EE_ROW_SIZE=16 | |
OPTIMIZATION = -O0 | |
BUILD_DIR=build | |
FRAMEWORK_PATH=../../mono_framework/src |