Hi im new comer for mbot and arduino,
im trying to create a mblock extension to read a analog sensor, and return value after some calculation as a simple project.
i have read the sample of creating “LED Extension”, it is very useful to get basic information that i need. but when i try to create the extension to read the data, i m quite confusing with following:
-
seem i need to select a “number” as “block type”, but i m confusing how the the value return from my code can relate to the “number” represent by the block. do i need to set a variable to relate the return mess to the “block” or any name in the basic information is used for these aim???
-
any simple sample for connecting arduino sensor can be provide???