microsoft / pxt-robotis

Microsoft MakeCode for ROBOTIS
https://5d8c71b7-aa36-4a68-a9cb-288b989efb08.pxt.io/
MIT License
3 stars 7 forks source link

Display same blocks in different categories. #5

Closed kigateG closed 4 years ago

kigateG commented 4 years ago

I have "block_1", "block_2" I want to display "block_1", "block_2" in "category_1" for "robot_1". I want to display "block_1" in "category_1", "block_2" in "category_2" for "robot_2".

Is it possible to create common blocks and display them in different category of different robots?

Now I made the code as shown below.

Set "dependencies: file:../robot_1_blocks" for "robot_1". Make a ".ts file" in "robot_1_blocks" and defile "namespace c1 {b1, b2}"

Set "dependencies: file:../robot_2_blocks" for "robot_2". Make a ".ts file" in "robot_2_blocks" and defile "namespace c1 {b1}, namespace c2 {b2}"

Thank you.

pelikhan commented 4 years ago

could you write the i2c requirement here?