zhaofeng-shu33 / blockly-mbed

USE Blockly to build a simple mbed C code generator
8 stars 3 forks source link

issues_brought_by_brain_liang #1

Open zhaofeng-shu33 opened 6 years ago

zhaofeng-shu33 commented 6 years ago
zhaofeng-shu33 commented 6 years ago

针对变量类型的问题,父项目只实现了String类型,没有char*,这个扩展可能比较难,可以从长计议。

发现blockly原生的TextInputField只支持带双引号的字符串,这可能和脚本语言不使用char有关。

zhaofeng-shu33 commented 6 years ago

针对串口声明问题,可在block中加入Serial_Number的显示,这可以根据使用者选择的RX来动态刷新 TextField. This feature is planned to be finished by 2017/12/7/12:00.

zhaofeng-shu33 commented 6 years ago

目前使用的blockly版本(版本号未知?) Select-Copy机制是只能Select 一个Block(Svg), 可考虑的扩展是可以Select List of Block(Svg), 通过Shift 键 Append a new Block(Svg) to List or Delete an existing Block(Svg) from the List. 但这样做需要改动Blockly 库文件,目前需要先去上游git repo看一下有没有人提出类似的问题或已经实现这个feature. https://github.com/google/blockly/issues/702

zhaofeng-shu33 commented 6 years ago

针对变量类型问题,原Arduino sdk 库中头文件中有def Boolean,def String 之类的宏定义,需要在mbed中添加。 目前如果想输入单个字符串,可采用 image