javanesse / pxt-arduino

Implementation of a block to arduino generator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Blockly (Microsoft MakeCode fork)

This is a fork of Blockly, an open source visual programming environment. The fork is maintained by the Microsoft MakeCode team, and is used to power the blocks environment in PXT.

This concrete version has an implementation of an arduino code generator. The changes are visible in /generators/arduino and /generators/arduino/ This is a WIP, many files are added manually and this is not a final implementation. This repo is used mainly for testing and control version.

Major additions and changes in this fork:

Prerequisites

  • node, npm
  • python

Development

git clone https://github.com/google/closure-library
cd closure-library
git checkout v20180805
cd ../
git clone https://github.com/Microsoft/pxt-blockly
cd pxt-blockly
npm install .

Building

  • gulp build to build blockly (install gulp if needed npm install -g gulp)

Integrating in PXT

  • gulp publish from the develop branch.

Make sure you've checked out the correct closure-library (see above)

See more tips about pxt+pxt-blockly testing.

Playground

There is a playground manual testing page at tests/playground.html, which requires no build step or server running.

open tests/playground.html

License

The original Google/Blockly is licensed under Apache License (Version 2.0).

New code is licensed under MIT.

About

Implementation of a block to arduino generator

License:Other


Languages

Language:JavaScript 96.7%Language:HTML 2.1%Language:Python 1.0%Language:Shell 0.2%Language:Ruby 0.0%