Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.
/ CircuitBlocks Public archive

A graphical programming interface that helps newbies get into embedded programming. It's based on Google's Blockly and turns blocks into arduino-compatible code.

License

Notifications You must be signed in to change notification settings

CircuitMess/CircuitBlocks

Repository files navigation

The desktop version of CircuitBlocks has been deprecated. Please check out the new web version of CircuitBlocks which runs directly in your browser and features Python code generation.

CircuitBlocks

A graphical programming interface that helps newbies get into embedded programming. Based on Microsoft's MakeCode, PXT-Blockly (Google Blockly fork), and carlosperate's Ardublockly.

CircuitBlocks downloads and executables can be found here.

When first started, the app will try to identify an already existing Arduino installation. If one isn't found it will download and install the Arduino IDE along with all the required drivers and libraries required for the CircuitMess Ringo board.


NOTE: You can skip these steps if you just want to use CircuitBlocks. Find the installation guide and the tutorial here.

Running a dev environtment

To build the electron native modules, you will need some build tools. More info at the nodejs/node-gyp github repo.

Clone the repository, install all core and client dependencies, build electron native modules:

git clone https://github.com/CircuitMess/CircuitBlocks.git
cd CircuitBlocks/client
yarn
cd ..
yarn
yarn electron-rebuild

And then run with yarn dev in the root directory of the repository.

The frontend server and electron backend can also be started separately. To start the server run yarn dev in the client directory, and to start the electron backend, run yarn electron-start in the root directory of the repository.

Building

The app is packaged using electron-builder. To package it, you first need to build the frontend and electron backend with yarn build. Then you can package it with yarn dist:

cd client
yarn build
cd ..
yarn build
yarn dist

This will produce the binaries for your platform in the dist directory.

Issues

yarn electron-rebuild fails

If electron-rebuild fails, you can try compiling using an older compiler version or another compiler altogether. Specifying which gcc and g++ binaries yarn should use to compile native dependencies can be done by setting the CC and CXX env variables, or by modifying the rebuild-electron script in package.json like this:

"scripts": {
  "rebuild-electron": "CC=/usr/bin/gcc-7 CXX=/usr/bin/g++-7 yarn electron-rebuild",
  ...
}

And then using yarn rebuild-electron instead of electron-rebuild.

Meta

CircuitMess - https://www.circuitmess.com/ - @circuitmess.com

Facebook - https://www.facebook.com/makerbuino/

Instagram - https://www.instagram.com/thecircuitmess/

Twitter - https://twitter.com/circuitmess

YouTube - https://www.youtube.com/channel/UCVUvt1CeoZpCSnwg3oBMsOQ

Copyright © 2021 CircuitMess

Licensed under the MIT license (See LICENSE.md)

About

A graphical programming interface that helps newbies get into embedded programming. It's based on Google's Blockly and turns blocks into arduino-compatible code.

Resources

License

Stars

Watchers

Forks

Packages

No packages published