New extensions with custom blocks for UNO


#1

I’d like to write some blocks for simple commands to have different code outputs like below:

pinMode(14, INPUT_PULLUP) instead of pinMode(14, INPUT)

if (digitalRead(14) == LOW) instead of if (digitalRead(14))

Do I find these blocks in some already made extensions ?
If not where can I find samples to view ?

Thanks


#2

I found a nice tutorial to create the block for upload use
https://www.youtube.com/watch?v=6UBscEZmbi4

Instructions for live mode are not very clear:
https://www.mblock.cc/doc/en/developer-documentation/tutorials/how-to-write-sprite-role-extension.html