2. Block Category
2.1 Differences between device blocks and extension blocks
- Device blocks include default category (Events, Control, etc.)
- Extension blocks do not have default category
2.2 Block category settings
- ID:
- ID is the unique identification of an extension. Developers use ID to distinguish different extensions. ID is also used as the identification of programs for different extensions.
- Naming conventions:
- Lower-case English characters or numbers
- Use "_" to connect multiple words, such as
arduino_uno
- Category name:
- The name of the block category, which will be displayed to users
- Naming conventions: less than 12 characters
- Category icon:
- The icon displayed in front of the block category
- Image formats:
- Background: transparent
- File type: SVG
- Size: 100 × 100
- Colored image
- Block icon:
- The icon displayed in front of the block
- Image formats:
- Background: transparent
- File type: SVG
- Size: 100 × 100
- Color: white
- Block color:
- The color of the block category
- Use recommended color
- When block category icon is not set, block color will be used as the icon
2.3 Default blocks settings
Check the box to enable default block/blocks.