6. Release 1.2¶
September 12th, 2016
We have a new version of the framework out, with mostly bug fixes
HttpClient supports customs TCP ports¶
The interim class for doing HTTP get requests now has the ability to use other ports than 80. You simply insert a custom port in the passed URL - like:
The request will then be directed to port 3000.
New minimal project template¶
When you create new projects with
monomake project myNewProject, they are pretty verbose and cluttered with comments. These serve as a help to new developers, but they become irrelevant when you get to know the API.
monomake now has a
--bare switch when creating new projects, that will use a minimalistic template without any comments or example code. You use it like this:
$ monomake project --bare my_new_project
New 30 pt font added¶
The API now includes a larger font, that you can optionally use in
#include <ptmono30.h> mono::ui::TextLabelView lbl(Rect(...), "Hello"); lbl.setFont(PT_Mono_30); lbl.show();
Since the font are bitmaps, they use significant amounts of memory. Therefore the new font is only included in your application if you actually use it. That is, use must define it with the
#include directive, as shown above.
See the API for changing the font
Shorthand function for asynchronous function calls¶
To make dispatching function calls to background handling easier, we added a new global function called:
async in the
mono namespace. The function injects your function into the run loop, such that it will be handled at first coming opportunity. The
async call is really just a shorthand for a
Timer that has a timeout of
Example with C++ method:
Example with C function:
Bug fixes and other improvements¶
- Optimized text glyph rendering in
- SD Card SPI clock speed increased to 8.25 MHz
- Fixed cropping bug in
- Fixed bug in
BMPImagethat caused a crash then invoking copy constructor.
- Fixed bug in the Queue class, that could caused Mono to freeze
- Fixed wrong premise on
String‘s memory management.
- Fixed issue that caused
make cleanto not remove all object files
make cleansuch that it works on Windows Command Prompt - and only PowerShell.
Goto our Documentation page to download the new SDK version: