-

More about your CodeBit

You’ve probably already learned about the codeBit that allows you to program how your Bits work with block programming, but now, we’re going to tell you about some of the codeBit’s other hidden features!

Before we get started, you may want to check out the codeBit’s entry in the Code Kit Bit Index here.

RESTART BUTTON

 

The restart button is easy to find because it is the only button on your codeBit! This button does a few different things, but most often you’ll use it to identify which codeBit is yours inside of the Code Kit app. Tapping the restart button in the connect your codeBit window, will highlight the name of your codeBit with a green pulsing circle.

 

 

The restart button on your codeBit also allows you to restart whatever code you have uploaded to your codeBit from the beginning. For example, let’s say that you’ve uploaded the following code to your codeBit. This code counts the number of times someone hits a button target and stores it in a variable called “score”.

 

 

Imagine you’ve been playing the game and you’ve hit the target 5 times (so your “score” variable is now 5). If you were to press the restart button at this point, the codeBit would go back to the [START] block at the beginning of the code and the ‘score’ variable would go back to 0. So, remember, tapping the restart button will make the code start over from the beginning.

If you hold the restart button down for ten seconds, the codeBit will be restored to the factory settings and sent into service mode. This mode is for the littleBits support team to help with troubleshooting. To exit service mode, disconnect and reconnect your codeBit to power. This means that any code you had previously uploaded to the codeBit will be erased.

 

UPLOADING CODE VIA USB CORD

As you probably already know, you can upload your code wirelessly through BLE with the codeBit dongle. However, you can also upload code to your codeBit through a wired USB connection using one of the USB cords included in the kit.

 

 

It’s important to note that attaching the codeBit to your computer with the USB cord will not power your circuit. This means that you will still need to power your circuit with your p3 USB power Bit and rechargeable battery.

 

OUT 1 CAN ALSO SEND SERIAL DATA

The codeBit has 3 bitSnaps that can receive information from the world around you and 3 bitSnaps that you can use to send information from the codeBit.

 

The three input bitSnaps receive signals from pink input Bits like the button, dimmer, slide dimmer, sound trigger, and pressure sensor. The three output bitSnaps all send signals to green output Bits like the bargraph, LED matrix, speaker, and servo.

 

 

OUT 2 AND OUT 3 CAN SEND TONES AND FREQUENCIES

The OUT 1 BitSnap is the only bitSnap on the codeBit that can send serial data to the LED matrix Bit. Serial communication is made up of a series of ‘on’ and ‘off’ signals and allows you to send complex information, like scrolling text and images, to other devices and Bits like the LED matrix Bit. So, if you are sending images or scrolling text to your LED matrix, make sure you’ve connected it to OUT 1 on your codeBit.

 

If you are planning to send tones from the Code Kit app to your speaker Bit, be sure to connect your speaker to either the OUT 2 or OUT 3 bitSnaps on your codeBit.

More Tips & Tricks

Tips & Tricks
Temperature Sensor

The temperature sensor responds to the temperature surrounding its probe. The higher the temperature it senses, the more signal it...

Tips & Tricks
IR Transmitter & the AC Switch

The IR transmitter and the AC switch make a powerful pair that lets you control your household power outlets with your littleBits ...

Tips & Tricks
powerSnap

  THE BASICS Every Bit needs an electrical signal running through it in order to work, and it gets this signal from through i...