BlocklyDuino

所属分类:代码编辑器
开发工具:JavaScript
文件大小:1259KB
下载次数:0
上传日期:2021-11-25 07:26:18
上 传 者sh-1993
说明:  BlocklyDuino是一个基于网络的arduino可视化编程编辑器。
(BlocklyDuino is a web-based visual programming editor for arduino.)

文件列表:
BlocklyDuino-gh-pages (0, 2021-11-25)
BlocklyDuino-gh-pages\CHANGELOG.txt (5399, 2021-11-25)
BlocklyDuino-gh-pages\arduino_web_server.py (5240, 2021-11-25)
BlocklyDuino-gh-pages\blockly (0, 2021-11-25)
BlocklyDuino-gh-pages\blockly\COPYING (10174, 2021-11-25)
BlocklyDuino-gh-pages\blockly\apps (0, 2021-11-25)
BlocklyDuino-gh-pages\blockly\apps\blocklyduino (0, 2021-11-25)
BlocklyDuino-gh-pages\blockly\apps\blocklyduino\Blob.js (5191, 2021-11-25)
BlocklyDuino-gh-pages\blockly\apps\blocklyduino\FileSaver.min.js (2479, 2021-11-25)
BlocklyDuino-gh-pages\blockly\apps\blocklyduino\blockly_helper.js (7708, 2021-11-25)
BlocklyDuino-gh-pages\blockly\apps\blocklyduino\examples (0, 2021-11-25)
BlocklyDuino-gh-pages\blockly\apps\blocklyduino\examples\blink.xml (784, 2021-11-25)
BlocklyDuino-gh-pages\blockly\apps\blocklyduino\examples\click_color.xml (714, 2021-11-25)
BlocklyDuino-gh-pages\blockly\apps\blocklyduino\examples\servo_potentio.xml (585, 2021-11-25)
BlocklyDuino-gh-pages\blockly\apps\blocklyduino\index.html (13955, 2021-11-25)
BlocklyDuino-gh-pages\blockly\apps\blocklyduino\node.manifest (1280, 2021-11-25)
BlocklyDuino-gh-pages\blockly\apps\blocklyduino\spin.js (9746, 2021-11-25)
BlocklyDuino-gh-pages\blockly\arduino_compressed.js (24160, 2021-11-25)
BlocklyDuino-gh-pages\blockly\blockly_compressed.js (592511, 2021-11-25)
BlocklyDuino-gh-pages\blockly\blockly_uncompressed.js (452765, 2021-11-25)
BlocklyDuino-gh-pages\blockly\blocks (0, 2021-11-25)
BlocklyDuino-gh-pages\blockly\blocks\base.js (7497, 2021-11-25)
BlocklyDuino-gh-pages\blockly\blocks\colour.js (3503, 2021-11-25)
BlocklyDuino-gh-pages\blockly\blocks\grove.js (19414, 2021-11-25)
BlocklyDuino-gh-pages\blockly\blocks\lists.js (22181, 2021-11-25)
BlocklyDuino-gh-pages\blockly\blocks\logic.js (15143, 2021-11-25)
BlocklyDuino-gh-pages\blockly\blocks\loops.js (9508, 2021-11-25)
BlocklyDuino-gh-pages\blockly\blocks\math.js (14996, 2021-11-25)
BlocklyDuino-gh-pages\blockly\blocks\procedures.js (27610, 2021-11-25)
BlocklyDuino-gh-pages\blockly\blocks\text.js (21762, 2021-11-25)
BlocklyDuino-gh-pages\blockly\blocks\variables.js (4289, 2021-11-25)
BlocklyDuino-gh-pages\blockly\blocks_compressed.js (79614, 2021-11-25)
BlocklyDuino-gh-pages\blockly\build.py (16147, 2021-11-25)
BlocklyDuino-gh-pages\blockly\core (0, 2021-11-25)
BlocklyDuino-gh-pages\blockly\core\block.js (40669, 2021-11-25)
BlocklyDuino-gh-pages\blockly\core\block_svg.js (68509, 2021-11-25)
BlocklyDuino-gh-pages\blockly\core\blockly.js (17722, 2021-11-25)
... ...

### Welcome to BlocklyDuino > Check [BlockDuino v2](https://github.com/BlocklyDuino/BlocklyDuino-v2) BlocklyDuino is a **web-based visual programming editor for [Arduino](http://www.arduino.cc/)**. BlocklyDuino is based on [Blockly](https://developers.google.com/blockly/), the web-based, graphical programming editor. Provide static type language blocks and code generators for Arduino programming. BlocklyDuino also support [Grove](http://www.seeedstudio.com/wiki/GROVE_System) blocks to easily get started with microcontroller-based experimentation and learning. ### Features * Programming Arduino with visually drag and drop code blocks * Generate fully compatible Arduino source code * Interactive Arduino board with 10+ predefined Grove sensor blocks * Load different on-site examples with url parameters ### Demo BlocklyDuino is a web tool. You can give it a try at [Web](http://blocklyduino.github.io/BlocklyDuino/blockly/apps/blocklyduino/) to see the working BlocklyDuino. You can link directly to examples * [demo 1](http://blocklyduino.github.io/BlocklyDuino/blockly/apps/blocklyduino/index.html?url=examples/blink.xml) make default LED blink * [demo 2](http://blocklyduino.github.io/BlocklyDuino/blockly/apps/blocklyduino/index.html?url=examples/servo_potentio.xml) control servo with potentio rotator * [demo 3](http://blocklyduino.github.io/BlocklyDuino/blockly/apps/blocklyduino/index.html?url=examples/click_color.xml) click button to change LED colors Or watch the [video demos](http://www.youtube.com/watch?v=_swiyXcUvNY) ### Run locally on your web browser If you want to install it locally. Get code from github and open `blockly/apps/blocklyduino/index.html` in your browser. The preffered way is to put the `BlocklyDuino/web` folder into a web server and open the url like `localhost/public/blockly/apps/blocklyduino/index.html` for use. ### Integrated Arduino upload To avoid the tedious step of manually pasting code to the Arduino IDE, you can run a mini webserver that uses the [Arduino IDE](https://www.arduino.cc/en/Main/Software) to upload the code to a connected Arduino board on Windows, Mac OS X and Linux systems. Invoke this command from the BlocklyDuino root folder: ``` python arduino_web_server.py ``` You can optionally specify the port with `--port=COM3` (or `--port=/dev/tty.foo` on Linux and Mac); if you don't, it will try and guess which port to use. When the webserver is running, you can access BlocklyDuino itself on [http://127.0.0.1:8080/](http://127.0.0.1:8080/). ### Usage 1. Open browser to BlocklyDuino, drag and drop blocks to make an Arduino program 2. Select the `Arduino` tab and copy all of the source code into an existing or new project in the Arduino IDE 3. Press the `Upload` button in the Arduino IDE to burn the code into a connected Arduino board OR (if running `arduino_web_server.py`): 1. Open browser to BlocklyDuino, drag and drop blocks to make an Arduino program. 2. Select the `Arduino` tab and press the `Upload` button. (press the `Reset` button to upload an empty program) In GNU/Linux OS (i.e. Ubuntu 18.04x***) 1. Open one terminal, go the BlocklyDuino path and run: python arduino_web_server.py --port=/dev/ttyUSB0 2. Open a new terminal and run: firefox http://127.0.0.1:8080/ 3. Once BlocklyDuino is open in the browser, drag and drop blocks to make an Arduino program or load an example by clicking on `LoadXML` (e.g. /blocky/apps/blockyduino/examples/blink.xml or other in the same path) 4. Press `Upload` and wait until you see `Program uploaded ok` and press OK! 5. Close terminals with `Ctrl+c` or `Ctrl+d` ### ChangeLog Check changelog [here](https://github.com/BlocklyDuino/BlocklyDuino/blob/master/CHANGELOG.txt) ### Authors and Contributors Fred Lin (@gasolin). Thanks Neil Fraser, Q.Neutron from Blockly https://developers.google.com/blockly/ Thanks Dale Low (gumbypp) for contribute the python server to pipe BlocklyDuino source to arduino board. Thanks Arduino and Seeeduino guys for Arduino and Grove blocks. The project is also inspired by [arduiblock](https://github.com/taweili/ardublock) and [modkit](http://www.modk.it/) ### License Copyright (C) 2012~2015 Fred Lin gasolin+blockly@gmail.com * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0

近期下载者

相关文件


收藏者