1. How do I test the value of a pin if it is LOW or HIGH. Look at the screenshot you created above. The IF statement isn’t complete.
It says: if (digitalRead(3))

but it should be: if (digitalRead(3) == HIGH)
or
if (digitalRead(3) == LOW)

I tried but could not put them in the = operator block. It appears there used to be a ‘pin test’ block from earlier blog posts but I don’t see it at all.

2. How do you tell it how to generate code in the setup function? It appears to generate pinMode commands but how do I initialize variables to a particular value?

3. I do not see a block that allows you to turn on the internal pull up resistors on the digital pins. This is useful to use if you are using push buttons (because otherwise I need to physically add a pull down resistor on).

4. Is the I2C Read and Write blocks still in beta? Just some things to think about… The address of a device is normally 7 bits and should be bit shifted before passing to the wire library. Normally I do this in my code using the following macro:

I downloaded the source code Ardublock but I can’t run it.
How can I solve this problem described below?
Thanks.

Scanning for projects…

————————————————————————
Building ArduBlock 0.1.0-SNAPSHOT
————————————————————————
The POM for edu.mit:openblocks:jar:1.0-20110819 is missing, no dependency information available
————————————————————————
BUILD FAILURE
————————————————————————
Total time: 0.536s
Finished at: Wed Feb 01 16:30:19 BRST 2012
Final Memory: 11M/247M
————————————————————————
Failed to execute goal on project ardublock: Could not resolve dependencies for project org.ardublock:ardublock:jar:0.1.0-SNAPSHOT: Failure to find edu.mit:openblocks:jar:1.0-20110819 in http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]

To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.

Could you give an more concrete example? Currently, we don’t allow the digital input to be use directly as analog value. You can put the digitalPin input in a if/else blog and output to the analog according to the true/false (high/low) values.

Using Ardublocks to teach children. Really like the simple format without having set OUTPUTS and INPUTS etc. Just wondering how do do calculations with digital variables. For example to change a boolean from TRUE to FALSE. Is there a way? Please help.