# First time flashing - RGB speed overly increased

**URL:** https://community.keyboard.io/t/first-time-flashing-rgb-speed-overly-increased/1609
**Category:** Programming
**Created:** [June 7, 2018, 11:24am UTC](https://community.keyboard.io/t/first-time-flashing-rgb-speed-overly-increased/1609 "2018-06-07T11:24:00Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![jamadagni](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.keyboard.io/jamadagni/32/2030_2.png) [@jamadagni](https://community.keyboard.io/u/jamadagni)
#### Post date: [June 7, 2018, 11:24am UTC](https://community.keyboard.io/t/first-time-flashing-rgb-speed-overly-increased/1609/1 "2018-06-07T11:24:00Z")

</div>

Hello. Today finally got around to installing Arduino Studio and going through the instructions on [this starting instructions page](https://github.com/keyboardio/Kaleidoscope/wiki/Install-arduino-support-on-linux).

I have been using the RGB right to left flow as my LED scheme the past few days since getting my new M01. After flashing I find that the right to left speed has increased so much as to be distracting. Kindly advise how I can reduce this to default speed.

---

<div class="post-metadata">

### Author: ![algernon](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.keyboard.io/algernon/32/4404_2.png) [@algernon](https://community.keyboard.io/u/algernon)
#### Post date: [June 7, 2018, 12:32pm UTC](https://community.keyboard.io/t/first-time-flashing-rgb-speed-overly-increased/1609/2 "2018-06-07T12:32:18Z")

</div>

The reason for this is that in the past, the rainbow effects were timed by counting how many times the main cycle ran, so it depended on the speed of the cycle. We… made the main loop a lot faster, and that sped up the animations too. They were fixed to use millisecond-timing instead, but may not have found their way into an `Arduino-Boards` release yet.

The easiest you can do is to download the latest version of `Kaleidoscope-LEDEffect-Rainbow` from [here](https://github.com/keyboardio/Kaleidoscope-LEDEffect-Rainbow/archive/master.zip), and unzip it on top of the one installed by the board manager. That should resolve the issue.

---

<div class="post-metadata">

### Author: ![jamadagni](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.keyboard.io/jamadagni/32/2030_2.png) [@jamadagni](https://community.keyboard.io/u/jamadagni)
#### Post date: [June 10, 2018, 11:16am UTC](https://community.keyboard.io/t/first-time-flashing-rgb-speed-overly-increased/1609/3 "2018-06-10T11:16:30Z")

</div>

Hello and thanks for the reply. However the [step-and-step introduction](https://github.com/keyboardio/Kaleidoscope/wiki/Keyboardio-Model-01-Introduction) does not teach how to do this:

> [@algernon](#):
>
> unzip it on top of the one installed by the board manager

as it stops at the **Edit A Keymap** page.

I am reluctant to do anything without proper instructions as I have no Arduino experience. The current contents of my `~/Arduino` directory are as follows:

```auto
.
├── libraries
│ └── readme.txt
└── Model01-Firmware
    └── Model01-Firmware.ino

2 directories, 2 files

```

I haven’t cloned any Keyboardio Git repos yet and I have some experience with that so willing to follow Git-based instructions. Since all the plugins are Git repos I presume they are to be cloned somewhere that the Arduino build process can find. But where?

Apart from fixing this rainbow problem, I want to enable OneShot and make modifications to my keymap. Later I want to setup my own LED effect. Please advise. 🍎🍇💐

---

<div class="post-metadata">

### Author: ![algernon](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.keyboard.io/algernon/32/4404_2.png) [@algernon](https://community.keyboard.io/u/algernon)
#### Post date: [June 10, 2018, 11:26am UTC](https://community.keyboard.io/t/first-time-flashing-rgb-speed-overly-increased/1609/4 "2018-06-10T11:26:31Z")

</div>

> [@jamadagni](#):
>
> Since all the plugins are Git repos I presume they are to be cloned somewhere that the Arduino build process can find. But where?

You can clone the [Arduino-Boards](https://github.com/keyboardio/Arduino-Boards) repo to `~/Arduino/hardware/keyboardio/avr`, like this:

```plaintext
git clone --recurse-submodules https://github.com/keyboardio/Arduino-Boards \
  ~/Arduino/hardware/keyboardio/avr

```

This will pull all the latest plugins and whatnot. I’d recommend backing up `~/Arduino/hardware` first, just in case. (And it should be moved away before doing the `git clone`, so git won’t complain.)

> [@jamadagni](#):
>
> Apart from fixing this rainbow problem, I want to enable OneShot and make modifications to my keymap. Later I want to setup my own LED effect. Please advise.

With the plugins installed (either installing the board manager via the IDE, or doing a git clone of `Arduino-Boards` like above will install the official plugins), you can just `#include "Kaleidoscope-OneShot.h"` and follow the examples in its README or its example sketch. There’s no additional thing to install.

To make modifications to your keymap, I suggest forking the `Model01-Firmware` repository, and committing any changes you make to your own fork. That makes it easier to pull in changes, should you want to. Not to mention that having one’s keymap under version control is very useful. 🙂

As for setting up your own LED effect, that can be either easy or challenging, depending on what you want. We’ll be happy to help here on the forums should you need assistance with it!

---

<div class="post-metadata">

### Author: ![jamadagni](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.keyboard.io/jamadagni/32/2030_2.png) [@jamadagni](https://community.keyboard.io/u/jamadagni)
#### Post date: [June 10, 2018, 12:05pm UTC](https://community.keyboard.io/t/first-time-flashing-rgb-speed-overly-increased/1609/5 "2018-06-10T12:05:33Z")

</div>

> [@algernon](#):
>
> You can clone the [Arduino-Boards](https://github.com/keyboardio/Arduino-Boards) repo to `~/Arduino/hardware/keyboardio/avr` , like this:
> 
> ```auto
> git clone --recurse-submodules https://github.com/keyboardio/Arduino-Boards \
> ~/Arduino/hardware/keyboardio/avr
> 
> ```
> 
> This will pull all the latest plugins and whatnot. I’d recommend backing up `~/Arduino/hardware` first, just in case. (And it should be moved away before doing the `git clone` , so git won’t complain.)

Wow quick reply! I did some digging in the meanwhile and found that Arduino Studio seems to have downloaded the plugins to `~/.arduino15/packages/keyboardio/hardware/avr/1.23.0/libraries/` and there is no `~/Arduino/hardware` directory. Should I delete those to avoid version conflict or something?

---

<div class="post-metadata">

### Author: ![algernon](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.keyboard.io/algernon/32/4404_2.png) [@algernon](https://community.keyboard.io/u/algernon)
#### Post date: [June 10, 2018, 12:44pm UTC](https://community.keyboard.io/t/first-time-flashing-rgb-speed-overly-increased/1609/6 "2018-06-10T12:44:26Z")

</div>

> [@jamadagni](#):
>
> Should I delete those to avoid version conflict or something?

I’d rather back them up - though if you used the IDE to download it, you can always download it again, so… yeah, delete them.

---

<div class="post-metadata">

### Author: ![jamadagni](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.keyboard.io/jamadagni/32/2030_2.png) [@jamadagni](https://community.keyboard.io/u/jamadagni)
#### Post date: [June 11, 2018, 11:52pm UTC](https://community.keyboard.io/t/first-time-flashing-rgb-speed-overly-increased/1609/7 "2018-06-11T23:52:08Z")

</div>

OK so I succesfully compiled the downloaded Git repos and got back my old speed. Feeling slightly more confident about touching the .ino file. Just like any other C program. Thanks @algernon!
