BlocklyDuino / BlocklyDuino-v2

BlocklyDuino v2(020), reboot and up to date with Google Blockly, graphical programming of Arduino boards
https://blocklyduino.github.io/BlocklyDuino-v2/
GNU General Public License v3.0
89 stars 46 forks source link

Why some block cant inject others? #25

Open wjhtinger opened 1 year ago

wjhtinger commented 1 year ago

There is no reason, why?

SebCanet commented 1 year ago

Hi, could you be more explicit? Join screen capture or even video to explain what is not working properly?

wjhtinger commented 1 year ago

I capture a video to explain. In video, fff is float number, iii is int number.

https://user-images.githubusercontent.com/1773284/210293175-ff855452-fade-4663-a68e-b4bf4b41be06.mp4

SebCanet commented 1 year ago

Ok, thanks, I see what you mean. The variable typing detect is not finished in this version. I'll try to implement an auto detect system ASAP.

wjhtinger commented 1 year ago

Ok, thanks, I see what you mean. The variable typing detect is not finished in this version. I'll try to implement an auto detect system ASAP.

Thank you very much! When will you finish it? Then you can let me to do the testing

wjhtinger commented 1 year ago

How about this issue?

wjhtinger commented 1 year ago

Hi,anyone can help me on this issue? It OK too that who can give some ideals, then I could try to debug it by myeself.

RobertPHeller commented 7 months ago

Ok, thanks, I see what you mean. The variable typing detect is not finished in this version. I'll try to implement an auto detect system ASAP.

What is involved with fnishing "variable typing detect". It seems that this has not been done and it is more than a year later...

RobertPHeller commented 7 months ago

Related to this is that one can't use variables as arguments to digitalWrite(), etc. That is you can't create blocks for code like this:

`int state;

void setup() { pinMode(LED_BUILTIN, OUTPUT); state = HIGH;
} void loop() { delay(1000); digitalWrite(LED_BUILTIN, state); if (state == HIGH) state=LOW; else state=HIGH; }`

SebCanet commented 7 months ago

Really sorry but I had a lot of work, and no time for this project. I'm working on a new core, updated to Blockly v11 but still in alpha (arduino generator not finished, and I want to use same automatic typing mechanism for variable. Help welcome!

RobertPHeller commented 7 months ago

I figured that you didn't have time. I would be interested in helping, but I guess I am going to need some pointers.

I am also wondering about adding addition board types (like the ESP32 and various ARM types) and maybe adding support for additional libraries. I do see where to "install" boards and libraries (I think I can hook the install buttons to the HTTPD server to pass --install-boards and --install-libraries options to the arduino command), but also adding both to the GUI itself (eg updating the board selection menu and adding blocks for the libraries).

At Sun, 24 Mar 2024 15:06:58 -0700 BlocklyDuino/BlocklyDuino-v2 @.***> wrote:

Really sorry but I had a lot of work, and no time for this project. I'm working on a new core, updated to Blockly v11 but still in alpha (arduino generator not finished, and I want to use same automatic typing mechanism for variable. Help needed!

-- Robert Heller -- Cell: 413-658-7953 GV: 978-633-5364 Deepwoods Software -- Custom Software Services http://www.deepsoft.com/ -- Linux Administration Services @.*** -- Webhosting Services

SebCanet commented 7 months ago

Well I tested a lot of things in another project, Studio4Education: https://github.com/A-S-T-U-C-E/STudio4Education, with demos here: https://tube-sciences-technologies.apps.education.fr/c/studio4education/videos I made it quickly and it's dirty, so I would like to create a core (actually WIP https://github.com/A-S-T-U-C-E/ucBlockly), something with everything you need to create a micrcontroller VPI, and then each project, like BlocklyDuino, shoud be just a layer over µcBlockly. Roadmpa: https://github.com/orgs/A-S-T-U-C-E/projects/16