Coder Social home page Coder Social logo

kinkir / microblock-ide Goto Github PK

View Code? Open in Web Editor NEW

This project forked from microblock-ide/microblock-ide

0.0 2.0 0.0 28.9 MB

Program a microcontroller with Block & MicroPython

Home Page: https://microblock.app

Shell 0.01% Python 0.03% HTML 0.45% JavaScript 98.80% CSS 0.68% Java 0.02% Swift 0.01%

microblock-ide's Introduction

microBlock IDE

Program a microcontroller with Block & MicroPython. Support ESP32, ESP8266 and STM32

Get Started

Install MicroPython

Install MicroPython to your Microcontroller. Now, microBlock IDE main support ESP32. You can read how to install MicroPython to ESP32 at http://docs.micropython.org/en/latest/esp32/tutorial/intro.html#esp32-intro

Enable Serial API

microBlock IDE is Web Service use Serial API for connect to your microcontroller. Now, Serial API support only Google Chrome and needs enable the #enable-experimental-web-platform-features flag in chrome://flags

Blink with Block programming

Go to microblock.app, Main page have 4 section

  1. Top Menu bar - Have this
    1. Mode select - you can select programming with Block or Python Code, If you have blocks in Block mode and then switch to code mode, Block will convart to Python Code but if you edit code in Python Code mode. The Python code can't convart to block so just keep in mind. You can select one mode for Project.
    2. Open Extension Dialog - if you needs more blocks you can install extension for get more blocks
    3. Open Help page - After click it, You will go to main web of microBlock IDE and then you can go Docs page for get about microBlock IDE
  2. Block Category - Have thie
    1. Pin - this category you can get digtial read , digital write , analog read and PWM write block, Drap and Drop blocks in category to Workspace for programming
    2. Control - you can get delay loop and if in this category.
    3. ....
  3. Workspace - Drap and Drop blocks in category to Workspace for programming
  4. Bottom bar - Have this 1. New project - if you want to new project you can click this (Keep in mind, Save project before New project) 2. Save Project - Blocks and Extension and other about project will convart to one file. You can share file same share code 3. Open Project - Open old project 4. Upload - Upload your code to your device 5. Open terminal - you can enter python code, Cancle code, Delete file, get all file in device via terminal. Recommend, Open terminal before Upload. You will know how microBlock upload code to you device and get Upload progress

OK, for create Blink program you needs 3 blocks

  1. digital write at Pin Category
  2. wait ... sec at Control Category
  3. forever at Control Category

How Blink program work ? Blink is turn on led and wait and turn off and wait and turn on led and wait and turn off and wait and ... do forever so

  1. Move digital write block into forever block
  2. Move wait ... sec block into forever block with append digital write block
  3. Duplicate digital write block (Right click at digital write and select Duplicate) and move new digtial write block into forever block with append wait ... sec block
  4. Duplicate wait ... sec block and move into forever block with append last digtial write block

We needs you support

microblock-ide's People

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.