Coder Social home page Coder Social logo

accurate2014 / smart_mug Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ilc-opensource/smart_mug

0.0 2.0 0.0 4.59 MB

Smart mug SDK

License: BSD 3-Clause "New" or "Revised" License

Makefile 0.31% C 40.11% C++ 58.65% Objective-C 0.70% JavaScript 0.21% Shell 0.01%

smart_mug's Introduction

High Level C/C++ API for Smart Mug

Install Edison SDK Linux

Download and install Edison SDK for Linux from https://communities.intel.com/docs/DOC-23242. By default it is installed on /opt/poky-edison/1.5.1/

Build

Setup Edison toolchain environment

source /opt/poky-edison/1.5.1/environment-setup-i586-poky-linux

Make debug version

make

Make release version

make Release=1

Build test applications

make test

Javascript Support

If you are not familiar with node-gyp, please install nodejs whose version is same as nodejs used on Edison. Currently it is v0.10.28.

Get io-js library

git clone https://github.com/ilc-opensource/io-js
cd io-js
git checkout mug

Build with Edison toolchain. It may report a doc generation error, please ignore it.

source /opt/poky-edison/1.5.1/environment-setup-i586-poky-linux
make

Now all of smart mug's C/C++ APIs are exposed as Javascript, all of io-js's features can be used. If you only care about smart mug APIs, you can only copy the dirctory io-js/target/device to mug and use it as a normal. Below is a simple example of displaying text on mug in Javascript

var IOLIB = require('./device');

var io = new IOLIB.IO()

var handle = io.mug_disp_init();

io.mug_init_font("");

io.mug_disp_text_marquee(handle, "hello", "yellow", 100, -1);

Python Support

Todo

Cloud Service

The cloud service for WeChat, remote draw etc, please visit: https://github.com/ilc-opensource/smart_mug_cloud

UI & App management

Please visit: https://github.com/ilc-opensource/app_resource_management

Licence

Free BSD

Contacts

Project Manager: Jiqiang Song, [email protected]

Programming: Zhanglin Liu, [email protected]

Cloud Service & App Management: Chao Zhang, [email protected]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.