Trying to create ,my first extention


#1

I am just trying to make my first extension and have picked something super easy, just be able to turn an pin on/off. I did follow this example here https://www.youtube.com/watch?v=6UBscEZmbi4 but when I try to upload from mblok5 it gets compile error.
Capture
Capture2


Capture4


#2

dropdown degişkenine (pin state) kullanmısın dropdown şöyle olabilir (digitalWrite(/{Pin_num}/,/{pin_state}/);

pin_state value low low
hıgh hıgh
yazmalısın


#3

I still get this compile error
Capture5


#4

benim yaptıgım düzenlemeyi yaptın mi
(digitalWrite (/ {Pin_num} /, / {pin_state} /);
böyle yazmalı


#5

ATM it compiler hasn’t got that far. It list the error as “error: ‘Pin_state’ was not declared in this scope if(Pin_state==HIGH)


#6




bu şekilde olmalı


#7

gönderdigim resimlerde yıldızlar gözükmüyor. bu resme dikkat et


#8

Yes this will work. But I would like to know why I can’t do it the same way as in the tutorial video


#9

onlar çok eski bilgi sevgili arkadaşım bende çok zor ögrenmek. yardım ettiğim için mutluyum


#10

Hi OutoftheBOTS,
Here is the guidance for extension builder.
Hope it will work to you.
https://www.mblock.cc/doc/en/developer-documentation/developer-documentation.html
Thanks.