A visual programming interface based on Blockly that allows children to program their Programmable MakerWear modules to control other modules in a new way!
- install node (which comes with npm)
- globally install electron:
npm install -g electron
. you should be able to run the electron app at this point by navigating to the MakerWearBlockly folder in your command line and then runningnpm start
. - install Arduino
- add your Arduino's hardware\tools\avr\bin folder to your
PATH
environment variable. you should be able to runavrdude
from now on in your command line. - install cygwin - we need it to build the generated .ino files with a Makefile. So make sure that you add "make" under dev as one of the tools to be installed.
- add cygwin's bin folder to your
PATH
environment variable. Test to see if you're able to runmake
from the command line - open the Makefile and change the following variables:
- create a symbolic link to your Arduino folder and then set
ARDUINO_DIR
to point to the Arduino folder's shortcut. Make sure that you're using a relative path and NOT an absolute path (e.g. /cygdrive/c/...) AVR_TOOLS_DIR
should point (using a relative path) to the symbolic link that you created and then /hardware/tools/avr after it.ARDMK_DIR
should point (using absolute path) to MakerWearBlockly/ArduinoMakefileBOARD_TXT
should point (using absolute path) to the bear minimum boards.txt file.
- open the upload.bat file and change following:
"C:\Program Files (x86)\Arduino\hardware\tools\avr\etc\avrdude.conf"
to the absolute path pointing to theavrdude.conf
file.- change
-PCOM3
to-PCOM#
(based on the serial port that is connected to the module that needs to be programmed.
- open the scripts.js, comment this line
cmd.run('./upload.sh');
and then uncomment this line:cmd.get('upload.bat', function(data){ console.log('uploading:\n\n',data); });
This should get you started running the application, making the programs, compiling them and uploading them onto the Module.