1957 views|2 replies

1w

Posts

25

Resources
The OP
 

[SAMR21 New Gameplay] 16. Switching between Graphical Programming and Code Programming [Copy link]

 

We have previously introduced the graphical programming method using MakeCode. By using the graphical method, you can easily and quickly write programs. Through extensions (libraries), it is also very easy to drive sensors and peripherals.

Although the graphical method is simple, it is more convenient to use code programming for slightly more complex programs. For example, if there are dozens of data to be input, the graphical method not only takes up a lot of space, but also has many input steps and is prone to errors; the code method is much more convenient.

MakeCode supports both graphical (block) programming and code programming.

Click on the javascript icon in the middle of the programming interface to switch to code mode.

Interface after switching

The code mode uses the typescript language, which is very easy for users familiar with JavaScript and not difficult for most engineers who use C language. The graphical mode can be directly switched to the code mode, but the code mode may not be able to switch back to the graphical mode, because some code functions are not supported by the graphical mode. For unfamiliar functions, you can start with graphical programming. After switching to the code mode, the corresponding statements will be automatically generated, which can help you learn code programming.


This content is originally created by dcexpert , a user of EEWORLD forum. If you want to reprint or use it for commercial purposes, you must obtain the author's consent and indicate the source

Latest reply

Is JLINK supported?   Details Published on 2019-10-9 21:45
 
 

5303

Posts

454

Resources
2
 

Is JLINK supported?

Comments

If it is a board designed by yourself, you can use jlink to download the bootloader for the first time, and then download it via USB, and you will no longer need jlink.  Details Published on 2019-10-9 21:51
 
 
 

1w

Posts

25

Resources
3
 

If it is a board designed by yourself, you can use jlink to download the bootloader for the first time, and then download it via USB, and you will no longer need jlink.

 
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list