Author: Aleksandr Grigorev
What is "AdvancedArduino"
"AdvancedArduino" is an extension for the mBlock visual programming environment , which can be used instead of basic "Arduino" extension, and has a lot of extra options when working in Arduino mode.
The description of AdvancedArduino extension v1.0 (old version) see here:
Installing the AdvancedArduino Extension
If you have any questions, look at the additional instructions from the Makeblock developers:
Examples of using the AdvancedArduino extension
Blocks with custom code snippets (Arduino IDE code, "Wire" programming language) in a graphical script.
Attention! When mBlock generates Arduino code sketch, it comments out the code () and def () block values using the /* and */ directives. To make the code fragment visible to the compiler, it is necessary to put the CLOSE "bracket" ( */ ) in the BEGINNING, and the OPEN “bracket” ( /* ) at the END.
Рort number in the function parameter.
"Counter" block and "repeat" loop (use Serial monitor).
Рort number in the function parameter and "counter" block.
Transmitting of messages from Serial2 to Serial, an explicit conversion of the value to char type.
Use with ME Auriga or Arduino Mega 2560, use "Auriga Program" header or "Advanced Arduino Program" header.
Blocks with library Arduino functions (value conversion functions).
Variables of any digital type (demo of overflow with byte variable).
Variables of any digital type (how to calculate factorial).
Define custom functions that return values.
The "line" addition of the custom code snippets.
Using the text file saved on the disk.
The disk must contain a text file with the appropriate name and content. If it is necessary, change the path to this file in your script.
Contents of the text file:
2D arrays (multiplication table).
"Length" method with String objects. Names matching (visual blocks and text code).
Morse transmitter based on mCore controller.
Array of functions
Running shadow processes (use the name "myUpdateFunction" for your custom block).
Several shadow processes. Use mBot educational kit with Servo Pack and 3-axis Gyro module
Shadow processes. "Static" local variables.
Shadow processes. "Static" local variables with similar names.
External interrupts. Use names "myHandlerFunction0", "myHandlerFunction1", etc. for your custom blocks. Use "volatile" variables.
Compound operators. Increment, decrement, side-effects.
Scheduled processes. Use names "myScheduledFunction1", "myScheduledFunction2", etc. for your custom blocks.