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.
Trying to create ,my first extention
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
benim yaptıgım düzenlemeyi yaptın mi
(digitalWrite (/ {Pin_num} /, / {pin_state} /);
böyle yazmalı
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)”
Yes this will work. But I would like to know why I can’t do it the same way as in the tutorial video
onlar çok eski bilgi sevgili arkadaşım bende çok zor ögrenmek. yardım ettiğim için mutluyum
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.