Giter VIP home page Giter VIP logo

mixly / mixly_arduino Goto Github PK

View Code? Open in Web Editor NEW
240.0 240.0 104.0 385.04 MB

A visual programming editor based on blockly for Arduino、Microbit、MicroPython、Python

Home Page: http://mixly.org/

License: Apache License 2.0

JavaScript 4.24% HTML 2.52% CSS 0.19% Batchfile 0.01% C++ 16.10% Processing 0.14% C 75.81% Makefile 0.02% Shell 0.07% Python 0.71% Java 0.01% Logos 0.02% CMake 0.01% Assembly 0.01% VBScript 0.01% Rich Text Format 0.05% G-code 0.11% Elixir 0.01% XSLT 0.01%

mixly_arduino's People

Contributors

3294713004wlb avatar blue2010 avatar fredqian avatar hwq458362228 avatar hznupeter avatar justinmht avatar lqy2018 avatar luokailiang avatar macomzzl avatar nanamamoyouko avatar nisen avatar radiumray avatar shizhediao avatar tangwenjing7 avatar xiebochao avatar zyctinker avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mixly_arduino's Issues

希望能在Mixly的Wiki中增加添加开发板的指南

我想增加lgt8f328p芯片的开发板,但是不知道应该从哪里入手,希望您能在Mixly的Wiki中增加添加开发板的指南。
我手里有几块lgt8f328p的开发板,用了觉得还不错,它是atmega328p的国产替代芯片,价格实惠功能还增强许多,它兼容3.3v和5v并可以在3.3v电压运行在32Mhz,同时A6、A7引脚的功能是完整的。
厂商提供了ArduinoIDE使用的Core和Library等文件,我会使用ArduinoIDE加载这些文件来编译和上传程序。可以直接使用Arduino的328p的程序。
但我不清楚如何在Mixly中添加新的开发板,主要涉及哪些文件。希望您能在Mixly的Wiki中添加1.0版本添加开发板的教程。谢谢!

Error: java.lang.NullPointerException

Hello!

Hello!

I created a code like this using only blocks:

void setup(){
pinMode(13, OUTPUT);
}

void loop(){
digitalWrite(13,HIGH);
}

It returns the following error message when compiling:

java.lang.NullPointerException
at org.mixly.Browser_new.compile(Browser_new.java:2090)
at org.mixly.Browser_new.access$40(Browser_new.java:2035)
at org.mixly.Browser_new$52.run(Browser_new.java:1655)
at java.lang.Thread.run(Thread.java:748)

What should I do to fix this?

Mixly Jar (open source)

Hi,
Do you have mixly for raspberry pi?

In case not, I would like to know if the Mixly.jar file is also an open source?
I would like to adapt it for Raspberry in case you don't have it available. (in case you have, kindly ask you to share - can't find it in mixly.org repository).
The Linux version (32bits /64bits) does not work in ARM processor, even replacing the Arduino linux IDE for for Arduino ARM IDE
The error message received is about the java side of Mixly.

Thanks!

Edson

Loop block

To make it consistent with Arduino IDE, you need to add a loop block and have code added to the 'C' loop function only if the blocks are inside the 'loop' block.

Otherwise it is going to get very confusing for kids.

Blocks being duplicated over and over again

If you double click on a .mix file to open Mixly, all the blocks are duplicated.
So you can end up with several setup blocks for example.
The only work around is to open the .mix file from inside Mixly.

OLED内置图标占用内存过多

您好!
我是用的是1.0版本的Mixly。我用的是Arduino Nano的克隆开发板,RAM比较小。
我尝试使用OLED的显示内置图标。但是我发现使用2个内置图标之后,内存就不够了,现在只能用1个。
我觉得内置图标的数据数组最好能够使用Arduino的PROGMEM关键词从而保存在Flash里,这样就能节省RAM了,不知道是否可行,能否在下一个版本中改进?同时其他图形编辑的UI数组比如LED阵列的似乎也可以这么做来节省内存。
谢谢!

new readme

Mixly_Arduino

https://github.com/xbed/Mixly_Arduino/wiki ( English version on the right)

http://mixly.org (google translate to English)

Mixly is a visual programming editor for Arduino.
Users can drag blocks together to build programs.
The code is based on Google's Blockly which is free and open source.

How to use this project?

Step 1.Download and unzip the project.

Step 2.Download Arduino IDE : Windows ZIP file for non admin install (160MB)-Not the windows installer !!!
https://www.arduino.cc/en/Main/Software (Donate or just download)

Step 3. unzip arduino-1.8.5-windows.zip anywhere you want (better use 7-ZIP software : http://www.7-zip.org/download.html )

Step 4.open unzipped "arduino-1.8.5-windows" Directory to find "arduino-1.8.5" Directory

Step 5.cut or copy "arduino-1.8.5" Directory to unzipped "mixly_arduino" directory

Step 6. Open the file "mixly_arduino\setting\config.properties" with text editor.
Replace text : arduino-x.x.x/ with arduino-1.8-5/

Step 7.Run Mixly.jar to start Mixly.

Step 8.(optional)If you want to run from mixly.bat:
rightclick "mixly_arduino\mixly.bat"
select : edit
Replace text : start .\arduino-1.x.x.x\java\bin\javaw -jar Mixly.jar
with : start .\arduino-1.8.5\java\bin\javaw -jar Mixly.jar
Save

I2C从机接收存在设计错误

1、Wire.begin(address); 此处address是I2C从机的地址,但是模块上设置的是管脚。
2、最好能把 i2cReceiveEvent_5(int howMany) 中的howMany暴露给执行部分。希望能像自定义的带参数的procedure那样,通过右键菜单可以创建“获得howMany”。

Port is OK, Cant select board. arduinoPath issue.

Looks like nice software, I think the "getting started" needs more instructions though on the arduinoPath variable.

I open the config.properties and replace
arduinoPath=arduino-1.7.8/
with my arduino path:
arduinoPath=C:\Program Files (x86)\Arduino\

I connect my arduino and I can use the arduino IDE, no problem. Connection is fine (port 6)

BUT, with Mixly, I can select port 6, but cannot select the board, arduino uno. The board selection area is completly black.
When I hit "compile" a message blinks on and off so fast it is impossible to read.
When I hit "upload" I get upload failed.

I am pretty sure the problem is how I have specified the arduinoPath. I put the directory path to where my arduino.exe file is located. Is that right? But the file path doesn't like like the default arduino-1.7.8/. How can you even have arduino-1.7.8 ?? The latest release is arduino 1.6.x .

Can you please check and explain how to enter the arduinoPath variable?
Thank you,
Andrew
[email protected]

mixly ESP8266 串口写16进制hex数 的问题。

mixly 串口写16进制数 0x57AB00050501000A000017 。
我用数组+串口直接写,但是写出来,用串口助手读发现
57
AB00050501000A000017
或者
57AB00050501000A0000
17

不在同一行。因为是指令码。必须是在同一行。
如何解决?

针对之前几个我提到的一些问题我自己做了修改,关闭了之前的几个Issues

抱歉我不会用Git,我就附上修改过的文件,您可以搜索YANG来快速查询我修改的部分,我保留了原先的所有代码。
名称我只修改了zh-hans和en两种语言,其他语言没修改。

修改内容
1、Wire.begin(address); 此处address是I2C从机的地址,但是I2C从机接收模块上设置的是管脚。我额外增加了一个设置从机地址的模块,取消了接收模块的管脚。
2、添加了一个获取howMany的模块。
3、添加I2C从机读取的模块,类似现在已有的I2C从机接收模块。然后修改Arduino.js 过滤重复的Wire.begin();语句。
4、添加不带Wire.beginTransmission(address);和Wire.endTransmission();的单独的Wire.write(数据);的模块用在读取执行阶段。
5、添加Wire.write(数组,项数)的模块用在读取执行阶段。
6、Array(List)的几个创建模块增加了volatile关键字,找了一下没有看到调用Array的模块,如果以后增加,请记得在调用时在Array之前增加(byte*)因为volatile关键词可能会导致编译出问题。
7、修改了OLED和LED阵列显示时把图标的Array添加PROGMEM关键词,并在调用时使用drawXBMP()方法替换drawXBM()方法。
8、给Text增加了一个添加F()的模块。起到节省内存的作用。
YANG fix for (10.17) 20191023.zip

Why Russian translation crash startup Mixly?

Hi!

I'm make Russian translate. And add:
blockly\msg\js\company\ru.js
blockly\msg\js\company\language\ru.js

modify in blockly\apps\mixly\code.js:
Code.LANGUAGE_NAME = {
'zh-hans': '简体中文',
'zh-hant': '繁體中文',
'en': 'English',
'ru': 'Русский',

};

Code.getLang = function() {
var lang = Code.getStringParamFromUrl('lang', '');
if (Code.LANGUAGE_NAME[lang] === undefined) {
// Default to ru.
lang = 'ru';
}
return lang;
};

Modify setting\config.properties:
language=ru

Modify setting\config_bak.properties:
language=ru

After modifications don't startup Mixly. Why? Help me.

希望能增加“I2C从机读取“的相对应的模块

希望增加I2C从机读取时的功能,需要增加的有:
1、增加I2C从机读取的模块,类似现在已有的I2C从机接收模块。
2、增加不带Wire.beginTransmission(address);和Wire.endTransmission();的单独的Wire.write(数据);的模块用在读取执行阶段。
3、增加Wire.write(数组,项数)的模块用在读取执行阶段。

我最近才开始使用Mixly,所以要自己加模块还不太会。希望官方能够增加,完善I2C从机部分的功能。目前看起来Mixly I2C从机这块做的比Mind+好,所以希望您能再接再厉。

"Functions" block issue

When you put the functions block, in code there is
null procedure() { return 0; }

should be
void procedure() { return 0; }

Managing Library

Managing and importing libraries appears not to function on MacBook.

will you please introduce howto build this java project?

thank you for developing such a nice block visual style programming environment for children and the teachers who are contributing their ambitions on the Information Education. so will you please push documents that could help those who may want to personllize their project based on your jobs. thanks.

translation of Mixly to English

I am trying to use Mixly with my students who are using Chromebooks. The menus on the side do not translated into English when opened. Do you have any suggestions?

Can not run using ubuntu

I managed to run an old version using ubuntu 20.04; but I am unable to run the last version.
$ java -jar Mixly.jar Error: Could not find or load main class org.mixly.Main Caused by: java.lang.NoClassDefFoundError: javafx/application/Application
I am using java 11 (but 8 didn't work), and installed javafx package and defined
export PATH_TO_FX=/usr/share/openjfx/lib
What am I missing?

Thanks

Need email contact for mixly.org to get latest versions for education project

Hello Everyone,
I am writing educational curriculum and detailed how-to for USA students. The mixly.org site does not allow download of the latest WIN and MAC code except through a cloud server that seems inaccessable. Or perhaps my Chinese isn't good enough.
I understand that Mixly (full name Mixly_Arduino, Chinese name Mi Siqi) is a domestic independent research and development, free and open source graphical programming under the leadership of Fu Yan, the head of the Creativity Education Laboratory of the Department of Education, Beijing Normal University.
Can someone give me his email, or another email contact at MIXLY.ORG??
I will make all files available on my webspace at http://ArduinoInfo.Info
THANKS! [email protected]

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.