Many Faced Bug

Introduction

CodeBug can display basic images called sprites. These are simply arrangements of on and off LEDs to make a pattern.

These sprites are made using a couple of code blocks and you can use many different patterns to display your emotions.

You will need
CodeBug CodeBug
Micro USB cable
Computer
CR2032 battery (optional)

  • Ask a new question:

Designing your faces

It is best to plan out your faces so you know how many you will have. Print out this template and get a pencil to plan out which LEDs you are going to have on. Below are some example faces.


1 Question
  • what do i d o like how do i get it so it goes happy once then sad strait after once of what do i do megan cole @ March 31, 2017, 1:21 a.m.


    you put those two in a repeat while true zgodd-2 @ May 25, 2018, 4 a.m.

    Answer this question:

  • Ask a new question:

Writing your program

Now that your faces are ready, you can program up your bug. You will make CodeBug display a different face by pressing different buttons. Follow the tutorial below.


3 Questions
  • If you try to change 'button pressed' from A to B in the Sprite tutorial, you just jump to the HOME page. Please help. DEM @ Oct. 22, 2015, 6:02 a.m.

    • Have you tried saving your progress and refreshing the page? — Claire Dodd @ Nov. 2, 2015, 2:08 p.m.

    • Are you using internet explorer? If you are try using Microsoft Edge, Google Chrome, or Fire Fox. — Code@Bug @ Aug. 7, 2016, 9:27 p.m.


    Answer this question:

  • How do you "click" the legs on the bug? piersonalp @ Dec. 20, 2016, 4:12 a.m.


    Answer this question:

  • hI agrif-135 @ May 24, 2018, 1:50 a.m.


    Answer this question:

  • Ask a new question:

What next?

If you use delays between different sprites, you can create your own animations. Give it a go and post a video online.


1 Question
  • how many faces have many people made? — tb9c @ Sept. 28, 2018, 12:21 p.m.


    Answer this question:

  • Ask a new question:

Back to top