The code in setup will run once when Arduino powered on, and run in loop repeatedly. Generally, main procedure of Arduino includes two subprocedures, we call them setup and loop.
Please enter Codecraft, and click "Add device" in sidebar on the left, then choose "Arduino Uno/Mega".Ĭodecraft Assistant can help you to upload code in Codecraft to Arduino, please refer CH MAKER Ed-Documents to download and install it. Basic Tutorial ¶Ĭodecraft can support both Grove Zero and Arduino Uno/Mega, so before using Codecraft with Arduino, you need to add Arduino support to it. Please refer to the CodeCraft Grove Compatible List to confirm if your Grove is supported. These block can be placed inside Boolean Blocks and C blocks. Output Boolean Blocks are hexagonal shaped blocks that checks if a condition is “true” or “false” and performs an operation once the condition is met. C blocks can be bumped at the bottom, or capped. There’re five C blocks, and they can be found in the Control category. Also known as “Wrap blocks”, these blocks loop the blocks within Cs or check if a condition is true. It is shaped with round edges.Ĭ blocks are blocks that take the shape of “C’s”. It is not just equations however, it can report a variable, for example, “What is your age?”. It is like asking a friend, for example, “What is 2+2?”, and they would answer “4”. Reporter blocks can hold numbers and strings. For example, asking a computer: “Is 2+2=4?”, and it would either tell you “Yes” or “No”. They are shaped with a notch at the top and a bump on the bottom - so blocks can be placed above and below them.īoolean blocks are the conditions - they are either true or false.
Stack Blocks are the blocks that perform the main commands. Here are the main types of blocks used in Codecraft. In Device mode, users can connect with a Grove Zero or an Arduino to build their cool projects by simply dragging and dropping code blocks into the IDE. Also, this mode can be used to help students learn about shapes, arithmetic and also other areas of math. In Stage Mode, users can control an object which is called a “sprite” by using code blocks. There are 2 modes in Codecraft which are Stage Mode and Device Mode. Furthermore, when you’re ready, you can always convert the code blocks to Arduino, Python, or JavaScript to learn more about the most popular languages. With Codecraft, children are able to design engaging stories, games and animations, and use various electronic kits which CH Maker Ed and Seeedstudio provides to create interactive smart applications.
It’s a versatile software tool for STEM education. Codecraft is a programming software based on Scratch3.0 and supports both graphical and text programming languages.