forked from taweili/ardublock
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
79 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
#ArduBlock | ||
# ArduBlock | ||
|
||
|
||
ArduBlock is a Block Programming Language for Arduino. The language and functions model closely to [Arduino Language Reference](http://arduino.cc/en/Reference/HomePage) | ||
|
||
##Users | ||
## Users | ||
Ardublock is a free graphical programming environment to make programming physical computing with Arduino as easy as drag and drop. It is based on the popular ‘scratch’ programming language, which many will already be familiar with. Ardublock generates code in C, a text based language used by the Arduino IDE, which can then be studied and modified if desired. | ||
|
||
Ardublock is an extension to the Arduino IDE so that will need to be downloaded as well (found here https://www.arduino.cc/en/Main/Software). | ||
* Ardublock is tested with version 1.8.2, available here: https://www.arduino.cc/download_handler.php?f=/arduino-1.8.2-windows.exe | ||
* Ardublock is tested with version 1.8.4, available here: https://www.arduino.cc/download_handler.php?f=/arduino-1.8.4-windows.exe | ||
|
||
Code written in Ardublock has the file extension .abp. | ||
|
||
####Getting Started with ArduBlock | ||
#### Getting Started with ArduBlock | ||
1. Install the Arduino IDE, from https://www.arduino.cc/en/Main/Software | ||
2. Download ardublock-all.jar https://github.com/stfc/ardublock/releases/latest | ||
3. Copy ardublock-all.jar to C:/Users/<username>/Arduino/tools/ArduBlockTool/tool/ardublock-all.jar under | ||
|
@@ -20,19 +20,19 @@ Code written in Ardublock has the file extension .abp. | |
* In Linux, /home/<username>/sketchbook/tools/ArduBlockTool/tool/ardublock-all.jar | ||
4. Start the Arduino IDE and find ArduBlock under the Tool menu | ||
|
||
##Developers | ||
If you wish to develop ardublock, follow the instructions below. A prerequsite is openblocks, which can be found here https://github.com/gregcorbett/openblocks/archive/v1.0.zip | ||
###Installation | ||
## Developers | ||
If you wish to develop ardublock, follow the instructions below. A prerequsite is openblocks, which can be found here https://github.com/gregcorbett/openblocks | ||
### Installation | ||
|
||
The project is managed by Maven. After checking out the source for the first time, one should run the following to install Arduino's pde.jar into the local repository. | ||
|
||
$ mvn validate | ||
|
||
###Usage | ||
### Usage | ||
|
||
$ mvn exec:java -Dexec.mainClass="com.ardublock.Main" | ||
|
||
###Development | ||
### Development | ||
|
||
Change the /src/main/resources/com/ardublock/block/ardublock_def.xml to add new blocks to ArduBlock | ||
|
||
|
@@ -42,15 +42,15 @@ Change the /src/main/resources/com/ardublock/block/ardublock_def.xml to add new | |
|
||
The Visual Block environment should show up. Happy Hacking! ;) | ||
|
||
###Deploy | ||
### Deploy | ||
|
||
Edit code of ardublock | ||
|
||
$ mvn clean package | ||
|
||
copy the target/ardublock-all.jar to Arduino\tools\ArduBlockTool\tool | ||
|
||
##Authors | ||
## Authors | ||
|
||
The original code (https://github.com/taweili/ardublock) was developed at MIT and the authors can be contacted below. | ||
|
||
|
@@ -59,7 +59,7 @@ The original code (https://github.com/taweili/ardublock) was developed at MIT an | |
|
||
The author/maintainer of this fork can be contacted at [email protected]. | ||
|
||
##License | ||
## License | ||
Copyright (C) 2011 David Li and He Qichen | ||
|
||
This file is part of ArduBlock. | ||
|
@@ -75,4 +75,4 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
GNU General Public License for more details. | ||
|
||
You should have received a copy of the GNU General Public License | ||
along with ArduBlock. If not, see <http://www.gnu.org/licenses/>. | ||
along with ArduBlock. If not, see <http://www.gnu.org/licenses/>. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
src/main/java/com/ardublock/translator/block/tinker/TinkerHallBlockAnalog.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package com.ardublock.translator.block.tinker; | ||
|
||
import com.ardublock.translator.Translator; | ||
|
||
public class TinkerHallBlockAnalog extends AbstractTinkerReadAnalogBlock | ||
{ | ||
public TinkerHallBlockAnalog(Long blockId, Translator translator, String codePrefix, String codeSuffix, String label) | ||
{ | ||
super(blockId, translator, codePrefix, codeSuffix, label); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+6.88 KB
(250%)
src/main/resources/com/ardublock/block/arduino/Tinker_Hall.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+11.1 KB
src/main/resources/com/ardublock/block/arduino/Tinker_Hall_Analog.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters