diff --git a/LICENSE b/LICENSE old mode 100644 new mode 100755 diff --git a/README.md b/README.md old mode 100644 new mode 100755 index 41396f0f8e..d00e7609c3 --- a/README.md +++ b/README.md @@ -1,130 +1,72 @@ # Ardublockly Ardublockly is a visual programming editor for Arduino. It is based on Google's [Blockly][1], which has been forked to generate [Arduino][15] code. -The `ArdublocklyServer` Python package initialises a local server to be able to compile and load the Arduino code using the [Arduino IDE][2]. +The `ArdublocklyServer` Python package initialises a local server to be able to compile and load the Arduino code using the [Arduino IDE](https://www.arduino.cc/en/Main/Software_)). -This is all packaged in a self contained executable desktop application for Windows, Mac OS X, and Linux. +Therefore, it is executable on most OS including Linux, Mac, Windows, and Android (limited). -![Ardublockly desktop program screenshot][desktop_screeshot] +This version focuses on the ArdublocklyServer version of [ArduBlockly](https://github.com/carlosperate/ardublockly) developed by [Carlos Pereira Atencio](https://www.embeddedlog.com/) +![Ardublockly desktop program screenshot](screenshot.png) ## Features * Generates Arduino code with visual drag-and-drop blocks * Uploads the code to an Arduino Board * Useful "code block warnings" * Compatible with a wide range of official Arduino Boards -* Works on Windows / Linux / Mac OS X +* Works on Windows / Linux / Mac OS X / Android (limited) -Ardublockly is still under development and a few features are not yet implemented. A to-do list can be found in the [TODO.md][3] file. +Ardublockly is still under development and a few features are not yet implemented. Currently tested under Windows with Python 2.7 and 3.4 and in Linux and MacOS X with Python 2.7. - ## Cloning the repository Please note that there are submodules in the repository that need initialisation. So, to correctly clone the Ardublockly repository: ``` -git clone https://github.com/carlosperate/ardublockly.git +git clone https://gitlab.com/DigitalStages/ardublockly.git cd ardublockly git submodule update --init --recursive ``` ## Installing -The desktop application is available for Windows/Mac/Linux and runs as a stand-alone executable that can be downloaded from the [Ardublockly repository releases page][4]. - -You will also need the [Arduino IDE version 1.6.x or higher][2]. - -#### Development builds -You can also test __UNSTABLE__ development builds automatically generated every time an update is added to the GitHub repository: - -| Linux build | Windows build | Mac OS X build | -|:-------------------:|:-------------------:|:--------------------:| -| [![Linux Build Status](https://circleci.com/gh/carlosperate/ardublockly/tree/master.svg?style=svg)](https://circleci.com/gh/carlosperate/ardublockly/tree/master) | [![Windows Build status](https://ci.appveyor.com/api/projects/status/t877g920hdiifc2i?svg=true)](https://ci.appveyor.com/project/carlosperate/ardublockly) | [![Mac Build Status](https://travis-ci.org/carlosperate/ardublockly.svg?branch=master)](https://travis-ci.org/carlosperate/ardublockly) | -| [Download Link][12] | [Download Link][13] | [Download Link][14] | - -#### "Core version" (Python server only) -If you prefer, the core software can be used by running only the Python server, which loads the web interface on your local browser (Chrome recommended). - -Full installation instructions for this version can be found in [this Github repository Wiki][5]. - -The quick version: Clone this repository, initialise all submodules, and execute: - +1. Install Python 3 +2. Install Arduino IDE (You will also need the [Arduino IDE version 1.6.x or higher][2]) +3. Install [libraries](https://gitlab.com/DigitalStages/ardublockly_arduino4kids/-/tree/main/files/arduino_libraries) in Arduino necessary to use all blocks of this version of ArduBlockly +4. Clone this repository, initialise all submodules, and execute: ``` -python start.py +python3 start.py ``` +5. This will load the web interface on your local browser. -This will work on Windows, Linux (including ARM) and Mac OS X, with Python >2.7 or >3.4 - - -## Running -1. [Install Ardublockly][5]. -2. Install the [Arduino IDE][2] version 1.6.x or higher (latest version is always recommended). -3. Run Ardublockly as defined in your installation method. -3. Configure Ardublockly to locate the Arduino IDE [following these instructions][6]. - +This will work on Windows, Linux (including ARM), Mac OS X, with Python >2.7 or >3.4 -## Online Demos -A demo of the latest release of Ardublockly main interface can be found in the following two links (to load the code into an Arduino it requires the full Ardublockly application to be downloaded and run on your computer): +## Installing on Android -#### [Ardublockly][10] -![WebApp screenshot responsive design][web_screenshot_responsive] +To make it work on a Arduino device, you will need to install +1. [ArduinoDroid Software](https://play.google.com/store/apps/details?id=name.antonsmirnov.android.arduinodroid2) +2. [QPython 3L - Python](https://play.google.com/store/apps/details?id=org.qpython.qpy3) +3. [File Manager](https://play.google.com/store/apps/details?id=com.alphainventor.filemanager) -#### [Ardublockly classic][11] -![WebApp screenshot][web_screenshot_classic] - - -## Documentation -The documentation, including installation instructions, configuration instructions, and developer information can be found in the [Ardublockly GitHub repository Wiki][7]. - -To download the documentation you can git clone the wiki data: - -``` -git clone https://github.com/carlosperate/ardublockly.wiki.git -``` +The limitation comes with uploading Blockly codes to the Arduino board. First you will need to save ArduBlockly blocks as .ino file, and upload this file to the Arduino board via ArduinoDroid. ## Credit -This project has been inspired by [BlocklyDuino][16]. - -Blockly original source is Copyright of Google Inc. [https://developers.google.com/blockly/][1]. A list of changes to the Blockly fork can be found in the [Blockly subdirectory README][17] file. +This project has been inspired by [ArduBlockly](https://github.com/carlosperate/ardublockly) developed by [Carlos Pereira Atencio](https://www.embeddedlog.com/). +Blockly original source is Copyright of [Google Inc.](https://developers.google.com/blockly/). ## License -Copyright (c) 2016 carlosperate https://github.com/carlosperate/ - Unless stated otherwise, the source code of this projects is licensed under the Apache License, Version 2.0 (the "License"); you may not use any of the licensed files within this project except in compliance with the License. -The full document can be found in the [LICENSE][9] file. +The full document can be found in the [LICENSE](https://gitlab.com/DigitalStages/ardublockly/-/blob/main/LICENSE) file. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - - -[1]: https://developers.google.com/blockly/ -[2]: http://www.arduino.cc/en/main/software/ -[3]: TODO.md -[4]: https://github.com/carlosperate/ardublockly/releases/ -[5]: https://github.com/carlosperate/ardublockly/wiki/Installing-Ardublockly -[6]: https://github.com/carlosperate/ardublockly/wiki/Configure-Ardublockly -[7]: https://github.com/carlosperate/ardublockly/wiki -[8]: https://github.com/carlosperate/ardublockly/compare/blockly-original...master -[9]: https://github.com/carlosperate/ardublockly/blob/master/LICENSE -[10]: http://ardublockly.embeddedlog.com/demo/index.html -[11]: http://ardublockly.embeddedlog.com/demo/classic/index.html -[12]: http://ardublockly-builds.s3-website-us-west-2.amazonaws.com/index.html?prefix=linux/ -[13]: http://ardublockly-builds.s3-website-us-west-2.amazonaws.com/index.html?prefix=windows/ -[14]: http://ardublockly-builds.s3-website-us-west-2.amazonaws.com/index.html?prefix=mac/ -[15]: http://www.arduino.cc -[16]: https://github.com/BlocklyDuino/BlocklyDuino -[17]: blockly/README.md - -[desktop_screeshot]: http://carlosperate.github.io/ardublockly/images/screenshot_desktop_1.png -[web_screenshot_responsive]: http://carlosperate.github.io/ardublockly/images/screenshot_material_all_small.jpg -[web_screenshot_classic]: http://carlosperate.github.io/ardublockly/images/screenshot_1.png diff --git a/ardublockly/ardublockly.css b/ardublockly/ardublockly.css old mode 100644 new mode 100755 diff --git a/ardublockly/ardublockly.js b/ardublockly/ardublockly.js old mode 100644 new mode 100755 index b1b2da7e4f..1bc2e5bef3 --- a/ardublockly/ardublockly.js +++ b/ardublockly/ardublockly.js @@ -39,6 +39,7 @@ Ardublockly.bindActionFunctions = function() { // Navigation buttons Ardublockly.bindClick_('button_load', Ardublockly.loadUserXmlFile); Ardublockly.bindClick_('button_save', Ardublockly.saveXmlFile); + Ardublockly.bindClick_('button_savesketch', Ardublockly.saveSketchFile); Ardublockly.bindClick_('button_delete', Ardublockly.discardAllBlocks); // Side menu buttons, they also close the side menu @@ -50,6 +51,10 @@ Ardublockly.bindActionFunctions = function() { Ardublockly.saveXmlFile(); $('.button-collapse').sideNav('hide'); }); + Ardublockly.bindClick_('menu_savesketch', function() { + Ardublockly.saveSketchFile(); + $('.button-collapse').sideNav('hide'); + }); Ardublockly.bindClick_('menu_delete', function() { Ardublockly.discardAllBlocks(); $('.button-collapse').sideNav('hide'); diff --git a/ardublockly/ardublockly_blockly.js b/ardublockly/ardublockly_blockly.js old mode 100644 new mode 100755 index 1d0ba2a984..f8d092741d --- a/ardublockly/ardublockly_blockly.js +++ b/ardublockly/ardublockly_blockly.js @@ -214,7 +214,8 @@ Ardublockly.changeBlocklyArduinoBoard = function(newBoard) { Ardublockly.updateToolboxLanguage = function() { var categories = ['catLogic', 'catLoops', 'catMath', 'catText', 'catVariables', 'catFunctions', 'catInputOutput', - 'catTime', 'catAudio', 'catMotors', 'catComms']; + 'catTime', 'catAudio', 'catMotors', 'catComms', + 'catDisplays', 'catSensors', 'catVarious']; var categoryNodes = Ardublockly.xmlTree.getElementsByTagName('category'); for (var i = 0, cat; cat = categoryNodes[i]; i++) { var catId = cat.getAttribute('id'); diff --git a/ardublockly/ardublockly_design.js b/ardublockly/ardublockly_design.js old mode 100644 new mode 100755 diff --git a/ardublockly/ardublockly_desktop.js b/ardublockly/ardublockly_desktop.js old mode 100644 new mode 100755 diff --git a/ardublockly/ardublockly_lang.js b/ardublockly/ardublockly_lang.js old mode 100644 new mode 100755 index ccc2cf295c..07af0fc676 --- a/ardublockly/ardublockly_lang.js +++ b/ardublockly/ardublockly_lang.js @@ -11,12 +11,13 @@ var Ardublockly = Ardublockly || {}; /** Lookup for names of supported languages. Keys in ISO 639 format. */ Ardublockly.LANGUAGE_NAME = { - 'fr': 'Français', + 'de': 'Deutsch', 'en': 'English', 'es': 'Español', + 'fr': 'Français', + 'it': 'Italiano', 'nl': 'Nederlands', 'pt': 'Português', - 'it': 'Italiano', 'ru': 'Русский' }; diff --git a/ardublockly/ardublockly_toolbox.js b/ardublockly/ardublockly_toolbox.js old mode 100644 new mode 100755 index 28c3c6283f..06632656b7 --- a/ardublockly/ardublockly_toolbox.js +++ b/ardublockly/ardublockly_toolbox.js @@ -92,7 +92,28 @@ Ardublockly.TOOLBOX_XML = ' ' + ' ' + ' ' + -' ' + +' ' + +' ' + +' ' + +' 0' + +' ' + +' ' + +' ' + +' ' + +' 100' + +' ' + +' ' + +' ' + +' ' + +' 0' + +' ' + +' ' + +' ' + +' ' + +' 1000' + +' ' + +' ' + +' ' + ' ' + ' ' + ' ' + @@ -129,6 +150,7 @@ Ardublockly.TOOLBOX_XML = ' ' + ' ' + ' ' + +' ' + ' ' + ' ' + ' ' + @@ -152,6 +174,27 @@ Ardublockly.TOOLBOX_XML = ' ' + ' '+ ' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' 9' + +' 10' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + ' ' + ' ' + ' ' + @@ -172,6 +215,28 @@ Ardublockly.TOOLBOX_XML = ' ' + ' ' + ' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + ' ' + ' ' + ' ' + @@ -231,4 +296,69 @@ Ardublockly.TOOLBOX_XML = ' ' + ' ' + ' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + +' ' + ''; diff --git a/ardublockly/ardublocklyserver_ajax.js b/ardublockly/ardublocklyserver_ajax.js old mode 100644 new mode 100755 diff --git a/ardublockly/classic/ardublockly_classic.css b/ardublockly/classic/ardublockly_classic.css old mode 100644 new mode 100755 diff --git a/ardublockly/classic/ardublockly_classic.js b/ardublockly/classic/ardublockly_classic.js old mode 100644 new mode 100755 diff --git a/ardublockly/classic/icons.png b/ardublockly/classic/icons.png old mode 100644 new mode 100755 diff --git a/ardublockly/classic/index.html b/ardublockly/classic/index.html old mode 100644 new mode 100755 diff --git a/ardublockly/classic/settings.css b/ardublockly/classic/settings.css old mode 100644 new mode 100755 diff --git a/ardublockly/classic/settings.html b/ardublockly/classic/settings.html old mode 100644 new mode 100755 diff --git a/ardublockly/classic/settings.js b/ardublockly/classic/settings.js old mode 100644 new mode 100755 diff --git a/ardublockly/font/droid/DroidSansMono.ttf b/ardublockly/font/droid/DroidSansMono.ttf old mode 100644 new mode 100755 diff --git a/ardublockly/font/droid/NOTICE b/ardublockly/font/droid/NOTICE old mode 100644 new mode 100755 diff --git a/ardublockly/font/droid/README.txt b/ardublockly/font/droid/README.txt old mode 100644 new mode 100755 diff --git a/ardublockly/font/material-design-icons/LICENSE.txt b/ardublockly/font/material-design-icons/LICENSE.txt old mode 100644 new mode 100755 diff --git a/ardublockly/font/material-design-icons/Material-Design-Icons.eot b/ardublockly/font/material-design-icons/Material-Design-Icons.eot old mode 100644 new mode 100755 diff --git a/ardublockly/font/material-design-icons/Material-Design-Icons.svg b/ardublockly/font/material-design-icons/Material-Design-Icons.svg old mode 100644 new mode 100755 diff --git a/ardublockly/font/material-design-icons/Material-Design-Icons.ttf b/ardublockly/font/material-design-icons/Material-Design-Icons.ttf old mode 100644 new mode 100755 diff --git a/ardublockly/font/material-design-icons/Material-Design-Icons.woff b/ardublockly/font/material-design-icons/Material-Design-Icons.woff old mode 100644 new mode 100755 diff --git a/ardublockly/font/material-design-icons/Material-Design-Icons.woff2 b/ardublockly/font/material-design-icons/Material-Design-Icons.woff2 old mode 100644 new mode 100755 diff --git a/ardublockly/font/roboto/Roboto-Bold.eot b/ardublockly/font/roboto/Roboto-Bold.eot old mode 100644 new mode 100755 diff --git a/ardublockly/font/roboto/Roboto-Bold.ttf b/ardublockly/font/roboto/Roboto-Bold.ttf old mode 100644 new mode 100755 diff --git a/ardublockly/font/roboto/Roboto-Bold.woff b/ardublockly/font/roboto/Roboto-Bold.woff old mode 100644 new mode 100755 diff --git a/ardublockly/font/roboto/Roboto-Bold.woff2 b/ardublockly/font/roboto/Roboto-Bold.woff2 old mode 100644 new mode 100755 diff --git a/ardublockly/font/roboto/Roboto-Light.eot b/ardublockly/font/roboto/Roboto-Light.eot old mode 100644 new mode 100755 diff --git a/ardublockly/font/roboto/Roboto-Light.ttf b/ardublockly/font/roboto/Roboto-Light.ttf old mode 100644 new mode 100755 diff --git a/ardublockly/font/roboto/Roboto-Light.woff b/ardublockly/font/roboto/Roboto-Light.woff old mode 100644 new mode 100755 diff --git a/ardublockly/font/roboto/Roboto-Light.woff2 b/ardublockly/font/roboto/Roboto-Light.woff2 old mode 100644 new mode 100755 diff --git a/ardublockly/font/roboto/Roboto-Medium.eot b/ardublockly/font/roboto/Roboto-Medium.eot old mode 100644 new mode 100755 diff --git a/ardublockly/font/roboto/Roboto-Medium.ttf b/ardublockly/font/roboto/Roboto-Medium.ttf old mode 100644 new mode 100755 diff --git a/ardublockly/font/roboto/Roboto-Medium.woff b/ardublockly/font/roboto/Roboto-Medium.woff old mode 100644 new mode 100755 diff --git a/ardublockly/font/roboto/Roboto-Medium.woff2 b/ardublockly/font/roboto/Roboto-Medium.woff2 old mode 100644 new mode 100755 diff --git a/ardublockly/font/roboto/Roboto-Regular.eot b/ardublockly/font/roboto/Roboto-Regular.eot old mode 100644 new mode 100755 diff --git a/ardublockly/font/roboto/Roboto-Regular.ttf b/ardublockly/font/roboto/Roboto-Regular.ttf old mode 100644 new mode 100755 diff --git a/ardublockly/font/roboto/Roboto-Regular.woff b/ardublockly/font/roboto/Roboto-Regular.woff old mode 100644 new mode 100755 diff --git a/ardublockly/font/roboto/Roboto-Regular.woff2 b/ardublockly/font/roboto/Roboto-Regular.woff2 old mode 100644 new mode 100755 diff --git a/ardublockly/font/roboto/Roboto-Thin.eot b/ardublockly/font/roboto/Roboto-Thin.eot old mode 100644 new mode 100755 diff --git a/ardublockly/font/roboto/Roboto-Thin.ttf b/ardublockly/font/roboto/Roboto-Thin.ttf old mode 100644 new mode 100755 diff --git a/ardublockly/font/roboto/Roboto-Thin.woff b/ardublockly/font/roboto/Roboto-Thin.woff old mode 100644 new mode 100755 diff --git a/ardublockly/font/roboto/Roboto-Thin.woff2 b/ardublockly/font/roboto/Roboto-Thin.woff2 old mode 100644 new mode 100755 diff --git a/ardublockly/img/ardublockly_icon.png b/ardublockly/img/ardublockly_icon.png new file mode 100755 index 0000000000..bf0fa77df3 Binary files /dev/null and b/ardublockly/img/ardublockly_icon.png differ diff --git a/ardublockly/img/ardublockly_splash.png b/ardublockly/img/ardublockly_splash.png old mode 100644 new mode 100755 diff --git a/ardublockly/img/favicon.ico b/ardublockly/img/favicon.ico old mode 100644 new mode 100755 diff --git a/ardublockly/img/sidenav_header.png b/ardublockly/img/sidenav_header.png old mode 100644 new mode 100755 diff --git a/ardublockly/index.html b/ardublockly/index.html old mode 100644 new mode 100755 index 75fa9a3538..ba18e23609 --- a/ardublockly/index.html +++ b/ardublockly/index.html @@ -36,6 +36,9 @@ + + + @@ -52,6 +55,9 @@ + + +