Scrolling Name Badge!

Introduction

To tell CodeBug what to do, you need to give it a list of simple instructions. This list of instructions is known as a program.

You can use this website to create programs and you will be able to them in action before downloading them and programming CodeBug.

You will need
CodeBug CodeBug
Micro USB cable
Computer
CR2032 battery

8 Questions
  • do you like codebug? 6T8 @ Nov. 3, 2016, 11:21 a.m.

    • no — Olivia Donoghue @ Aug. 10, 2017, 4:41 a.m.

    • Yes, It is a good and fun, to learn coding — damas5 @ Sept. 19, 2018, 2:20 a.m.

    • Yes, It is a good and fun, to learn coding — damas5 @ Sept. 19, 2018, 2:20 a.m.


    " Guerinboys @ Dec. 24, 2016, 1:57 p.m.

    yes wisewoody5 @ Dec. 8, 2017, 2:26 p.m.

    yes wisewoody5 @ Dec. 8, 2017, 2:26 p.m.

    yes wisewoody5 @ Dec. 8, 2017, 2:26 p.m.

    yes wisewoody5 @ Dec. 8, 2017, 2:26 p.m.

    Answer this question:

  • do you like codebug? 6T8 @ Nov. 3, 2016, 11:21 a.m.

    • not really — ali abbas @ May 21, 2018, 4:21 a.m.

    • no — pavitra thirumakan @ May 22, 2018, 4:31 a.m.

    • no — pavitra thirumakan @ May 22, 2018, 4:31 a.m.

    • A little — Jordan Wilson-Cherry @ July 18, 2018, 5:42 a.m.

    • A little — Jordan Wilson-Cherry @ July 18, 2018, 5:42 a.m.


    Who dosen't. Beaucause if I didn't I would have sold my Codebug on Ebay and got some money for it. Guerinboys @ Dec. 24, 2016, 1:56 p.m.

    yes its awesome I think Kieran Frame @ April 26, 2017, 2:06 a.m.

    yes its awesome I think Kieran Frame @ April 26, 2017, 2:06 a.m.

    Yes nathanjoseph@ @ Aug. 8, 2017, 12:14 a.m.

    No. Codebug deserves to burn in Hell Brewmaster Kaif @ Aug. 11, 2017, 12:09 a.m.

    Answer this question:

  • is this fun or what Caleb Mathias @ April 19, 2017, 4:04 a.m.

    • its boring — Olivia Donoghue @ Aug. 10, 2017, 4:42 a.m.

    • what the f**k were the creators of code bug thinking. This is torture — Brewmaster Kaif @ Aug. 25, 2017, 12:15 a.m.

    • What is the definition of fun? — ali abbas @ May 21, 2018, 4:22 a.m.

    • FORTNITE — Jordan Wilson-Cherry @ July 18, 2018, 5:43 a.m.

    • FORTNITE — Jordan Wilson-Cherry @ July 18, 2018, 5:43 a.m.

    • FORTNITE — Jordan Wilson-Cherry @ July 18, 2018, 5:43 a.m.

    • FORTNITE — Jordan Wilson-Cherry @ July 18, 2018, 5:43 a.m.


    Answer this question:

  • are they legit free Kieran Frame @ April 26, 2017, 2:05 a.m.


    Are you that retarded. Nothing in life is free Brewmaster Kaif @ Aug. 11, 2017, 12:10 a.m.

    no Kieran Frame @ April 26, 2017, 2:06 a.m.

    Answer this question:

  • deleted


    Answer this question:

  • hello Joshua Ibukunoluwa @ April 26, 2017, 2:08 a.m.

    • Hi, Keep Coding! — damas5 @ Sept. 19, 2018, 2:23 a.m.


    you are wasting precious breathing space. Hang yourself Brewmaster Kaif @ Aug. 11, 2017, 12:12 a.m.

    Answer this question:

  • nani mou? Eric Perera @ Aug. 20, 2018, 4:03 a.m.


    Answer this question:

  • nani mou? Eric Perera @ Aug. 20, 2018, 4:03 a.m.


    Answer this question:

  • -1

    does it bite? Reanna Jade @ Oct. 18, 2016, 11:21 p.m.


    no 6T8 @ Nov. 3, 2016, 11:20 a.m.

    no 6T8 @ Nov. 3, 2016, 11:20 a.m.

    no 6T8 @ Nov. 3, 2016, 11:20 a.m.

    Why did you answer it three times"6T8"? Guerinboys @ Dec. 24, 2016, 1:58 p.m.

    they are evil Joshua Ibukunoluwa @ April 26, 2017, 2:08 a.m.

    Really. Has the autism hit you so hard its made you that retarded? Brewmaster Kaif @ Aug. 11, 2017, 12:11 a.m.

    Answer this question:

  • Ask a new question:

Scrolling text

CodeBug’s LED grid can display letters. If we move these letters from one side of the grid to the other, we can have another letter moving in after it.

It is easy to drag and drop a few blocks on the website to build a scrolling name badge program. Follow the tutorial below to get coding!


6 Questions
  • I can't display the scrolling text tutorialon my browser. (http://www.codebug.org.uk/tutorial/codebug/51/scrolling-text/?from_course_slug=getting-started-codebug&from_activity_index=2#title) I'm using firefox 43.0.3 on openSuSE 13.1. Are there any known issues? David Casson @ Jan. 7, 2016, 11:07 a.m.

    • we are currently experiencing some issues, these will be resolved shortly. Thanks — Thomas Macpherson-Pope @ Jan. 7, 2016, 12:01 p.m.


    Sorry I don't speak Chinese Brewmaster Kaif @ Aug. 11, 2017, 12:16 a.m.

    If you want I can tell you here how to do a"Scrolling Text" program. Guerinboys @ Dec. 24, 2016, 1:59 p.m.

    Answer this question:

  • I just tried using "Konqueror" as web browser and received an error message about an internal error on the server. If you wish I can submit further details? David Casson @ Jan. 7, 2016, 11:43 a.m.

    • us google chrome — mark cross @ Jan. 21, 2016, 4:05 p.m.


    Try using an internet browser that can spell. Last time I checked you spell conqueror, c-o-n-q-u-e-r-o-r. Perhaps the creators just had a bit too much to drink. Maybe they should they should leave the Wine at home next time and not bring it into work. Brewmaster Kaif @ Aug. 11, 2017, 12:20 a.m.

    Try getting Mozilla Firefox web browser, then, using it, you couild try again. If another error occours, just tell me all of the details from the smallest full stop to the biggest piece of text Guerinboys @ Dec. 24, 2016, 2:02 p.m.

    Answer this question:

  • Now seems to be working fine. Thank you. ;-) David Casson @ Jan. 7, 2016, 1:21 p.m.

    • great — mark cross @ Jan. 21, 2016, 4:06 p.m.

    • great — mark cross @ Jan. 21, 2016, 4:06 p.m.

    • Sp00ky — Spicy Memes @ Aug. 25, 2017, 12:15 a.m.


    the tutorials have now been fixed, sorry for any inconvenience Thomas Macpherson-Pope @ Jan. 7, 2016, 4:33 p.m.

    Answer this question:

  • Just a question on the while loop - "repeat while true" - while what is true?? Robert_787@hotmail.com @ Jan. 8, 2016, 9:15 p.m.

    • This means endless. While "true" is true. — nanna @ April 3, 2016, 7:39 a.m.


    its true that you are retarded and have autism Brewmaster Kaif @ Aug. 11, 2017, 12:21 a.m.

    That really means: repeat while some condition is true, e.g. while some counter is above a value. If it is below the value, the condition will be false and the loop will end. The simplest condition is "true", which means, the loop runs forever. Walter Ampa @ April 15, 2016, 8:04 p.m.

    Answer this question:

  • Anyone really bored by this they just want to hang themselves from the classroom ceiling fan? Brewmaster Kaif @ Aug. 11, 2017, 12:16 a.m.

    • xD — Mikaela Dobosz @ July 18, 2018, 5:45 a.m.


    Answer this question:

  • deleted


    Answer this question:

  • -3

    nothing mark cross @ Jan. 21, 2016, 4:06 p.m.


    boooooooooooooooooooooooooooooooooooooooooo Code@Bug @ Aug. 7, 2016, 10:02 p.m.

    that is not a question Code@Bug @ Aug. 7, 2016, 10:02 p.m.

    I say that nothing is a great question sarcasm Kieran Frame @ April 26, 2017, 2:07 a.m.

    You is much retarded. Does the autism make you think you are the bestest evers? Brewmaster Kaif @ Aug. 11, 2017, 12:13 a.m.

    Answer this question:

  • Ask a new question:

Download code onto CodeBug

Well done! You’ve created your first program to tell CodeBug how to scroll your name.

If you are happy with your code, it is time to download it to CodeBug! Follow the instructions on the "Download to CodeBug" pop-up or activity.

Follow the next steps to make a more advanced badge!


2 Questions

Button interaction

Let’s make CodeBug interactive, so that it responds to you pressing either of the buttons.

This can be done by adding a block to your program to wait until either button has been pressed. Follow the tutorial to add this block.


2 Questions
  • There is change also when button B is pressed. But you have not mentioned this in tutorial. I know it is very basic but might be confusing for other users. I Hope you might mention the use of the other sprite block with the button name being mentioned. Dixon Selvan @ Oct. 24, 2015, 7:32 a.m.

    • "Wait until button changes" reacts to press and release of buttons A and B. It is not only button A. — Walter Ampa @ April 15, 2016, 8:08 p.m.


  • The program works on the emulator but not on the bug. As soon as I press B to start the program it scrolls. Speaking of starting, how do I re-run a program after it finishes? Laura Dinsmoor @ July 28, 2016, 6:47 p.m.


    Put a"repeat While True do..." around your whole program. Prob solved! Guerinboys @ Dec. 23, 2016, 7:21 p.m.

    Answer this question:

  • deleted


    Answer this question:

  • Ask a new question:

What next?

See what else you can add to your program and impress your friends! The possibilities with CodeBug and programming are endless!


7 Questions
  • Also I would like a tutorial guide made for"Managing a Profile" so I can understand how to use my profile. Cheers! P.S. Seasons' Greetings! Guerinboys @ Dec. 23, 2016, 7:50 p.m.


    Answer this question:

  • How could you make it so if you press a different button it says something different? — benjamin25 @ Nov. 27, 2015, 5:32 p.m.



    Use an if else block with a button A pressed block snapped to it. put your scroll block inside the if and another inside the else. put that inside your while loop after the sleep until input Thomas Macpherson-Pope @ Nov. 28, 2015, 9:47 a.m.

    Answer this question:

  • I've finnished this course(as seen on my profile(Guerinboys)) and I don't know how to do another one. Help Thomas Macpherson-Pope! I NEED cesperate HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Guerinboys @ Dec. 23, 2016, 7:49 p.m.


    just click explore at the top — GGryffindor @ Jan. 8, 2017, 11:46 a.m.

    Answer this question:

  • Can we have acces to hex or ascii code ? Vincent PREMEL @ Jan. 8, 2017, 8:48 p.m.


    Answer this question:

  • how can i adjust the codebug on my t-shirt ? gpapid @ Sept. 8, 2017, 10:27 a.m.


    Answer this question:

  • How do you change the code bug colour? (Lights) — flabby_butts @ May 24, 2018, 6:21 a.m.


    Answer this question:

  • -1

    Can you slow its scroll rate down? Richard Kelly @ Sept. 27, 2016, 5:16 a.m.


    yes, when you get the scroll sprite box it has a default of 100 ms and by changing the umber it will go faster of slower. — GGryffindor @ Jan. 8, 2017, 11:45 a.m.

    The scroll sprite block takes a number block to control the speed. By default this is 100 milliseconds (between each movement of the scroll), increasing this number will slow down the scroll rate. Thomas Macpherson-Pope @ Sept. 27, 2016, 3:01 p.m.

    Answer this question:

  • Ask a new question:

Back to top