Starting off with LED lights
Ready to start coding?
Firstly, open CircuitBlocks and connect your Jay-D to your computer's USB port.
CircuitBlocks should now say "Jay-D connected".
If CircuitBlocks didn't recognize your Jay-D, please check if the USB cable is plugged in properly and if you are using a working USB port on your computer.
If you still cannot get CircuitBlocks to recognize your Jay-D, something possibly went wrong with the driver installation on your computer. Drivers are these little programs that help your computer communicate with Jay-D and they sometimes act funny. Reach out to us via email at contact@circuitmess.com if you cannot get your computer to recognize your Jay-D.
Let's make an animation on Jay-D's LED display
Find the section called "LED matrix" on the left side of the screen.
This section contains a group of blocks that can be used for displaying animations and on Jay-D's LED display (we also call this display the "LED matrix").
Find the block called "Play matrix left animation 1".
Drag and drop the block into the turquoise block that's already in the drawing area.
Stick the Play animation block under the text saying "Arduino run first".
We want to put the play animation block here so that the animation starts playing only once when the device starts.
Since Jay-D has 4 LED matrixes, let's repeat that step 3 more times for each of the matrixes. Just drag and drop the block like in the photo below and we'll then arrange the matrixes and animations.
Click on the tiny arrow on the Play animation block and a drop-down menu will appear.
You can start arranging the matrixes (left, right, middle, big) and animations (1, 2, 3). Those are the GIF animations that are saved on your Jay-D's flash memory and you can't really go wrong with them, so get creative.
Check out the following example of the blocks with matrixes and animations picked:
Now would be a good time to save your program. Click on the Save icon on the top left corner of the screen.
Pick a name for your program and click "Save":
Let's try this code out. Find the big red Run button on the top right and press it.
A yellow loading bar will appear on the top of the screen.
Your program is now going through a process called compilation.
Code compilation (or code compiling) is the transformation from a human-readable form of code (such as the colorful blocks you are looking at) into machine code (a form of code that the computer understands - ones and zeros all squashed together).
Since this is the first time you are compiling code for your Jay-D, it might take a few minutes to compile. This is happening because CircuitBlocks needs to compile all the important core parts of the code needed for your Jay-D and save it to your computer. When this compiles for the first time, it will be saved on your computer and all of your next programs will compile much faster (yay!).
If your code was compiled and uploaded successfully, you should see the new animations playing in a loop on Jay-D's LED matrix.
Is everything ok? Great, let's move on.
Something not working? Please press the Send error report on CircuitBlocks' homepage, contact us via email at contact@circuitmess.com and provide us with your error report ID.