# Can the Pico RGB Keyboard and Keybow 2040. run the same code.py

**URL:** <https://forums.pimoroni.com/t/can-the-pico-rgb-keyboard-and-keybow-2040-run-the-same-code-py/17746>\
**Category:** Support\
**Created:** [August 22, 2021, 9:52am UTC](https://forums.pimoroni.com/t/can-the-pico-rgb-keyboard-and-keybow-2040-run-the-same-code-py/17746 "2021-08-22T09:52:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Babydalek](https://avatars.discourse-cdn.com/v4/letter/b/e68b1a/32.png) [@Babydalek](https://forums.pimoroni.com/u/Babydalek)\
**Post date:** [August 22, 2021, 9:52am UTC](https://forums.pimoroni.com/t/can-the-pico-rgb-keyboard-and-keybow-2040-run-the-same-code-py/17746/1 "2021-08-22T09:52:54Z")

</div>

I will hold my hands up that this should be a obvious question. But no matter how I try I cant get the same code.py to work on both devices. I have copied the same libraries across to each but is there some obvious I am missing. Perhaps my 2040 is not running circuitpython :(

I think my code is just rubbish and I should try again :(  
What i am trying to do is build two pads with multiple layers that can send key commands to Windows and control multimedia keys. I can do the first bit and have working code that allows different layers, but I cant mix the key commands and mulitmedia keys? i have based all my code on examples found on github so perhaps it is a case of going back to square one and learn to program in circuitpython

---

<div class="post-metadata">

**Author:** ![alphanumeric](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/alphanumeric/32/2729_2.png) [@alphanumeric](https://forums.pimoroni.com/u/alphanumeric)\
**Post date:** [August 22, 2021, 10:07am UTC](https://forums.pimoroni.com/t/can-the-pico-rgb-keyboard-and-keybow-2040-run-the-same-code-py/17746/2 "2021-08-22T10:07:47Z")

</div>

Maybe this will help.

> [@Pico RGB Keypad Base support in CircuitPython](https://forums.pimoroni.com/t/pico-rgb-keypad-base-support-in-circuitpython/17496):
>
> Hello! Just letting anyone interested now that I’ve forked Kebow 2040 library so it supports both Keybow 2040 and Pico RGB Keypad Base: Feel free to comment with suggestions (-:

---

<div class="post-metadata">

**Author:** ![Babydalek](https://avatars.discourse-cdn.com/v4/letter/b/e68b1a/32.png) [@Babydalek](https://forums.pimoroni.com/u/Babydalek)\
**Post date:** [August 22, 2021, 4:34pm UTC](https://forums.pimoroni.com/t/can-the-pico-rgb-keyboard-and-keybow-2040-run-the-same-code-py/17746/3 "2021-08-22T16:34:28Z")

</div>

Thanks for this. I will give it a try. I have read the instructions at [GitHub - matemaciek/keybow2040-circuitpython: CircuitPython library for the Pimoroni Keybow 2040](https://github.com/matemaciek/keybow2040-circuitpython#hardware-independent-part) and notice that you need to

## Hardware-independent part

Finally, drop the `lib` contents ( `keybow2040.py` file and `keybow_hardware` folder) from this library into the `lib` folder on your `CIRCUITPY` drive also, and you’re all set!

Which lib is this referring to? thanks again :)

---

<div class="post-metadata">

**Author:** ![Babydalek](https://avatars.discourse-cdn.com/v4/letter/b/e68b1a/32.png) [@Babydalek](https://forums.pimoroni.com/u/Babydalek)\
**Post date:** [August 22, 2021, 5:01pm UTC](https://forums.pimoroni.com/t/can-the-pico-rgb-keyboard-and-keybow-2040-run-the-same-code-py/17746/4 "2021-08-22T17:01:02Z")

</div>

Is this the location for keybow\_hardware folder? [GitHub - matemaciek/keybow2040-circuitpython: CircuitPython library for the Pimoroni Keybow 2040\</titl](https://github.com/matemaciek/keybow2040-circuitpython)

---

<div class="post-metadata">

**Author:** ![alphanumeric](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/alphanumeric/32/2729_2.png) [@alphanumeric](https://forums.pimoroni.com/u/alphanumeric)\
**Post date:** [August 22, 2021, 6:53pm UTC](https://forums.pimoroni.com/t/can-the-pico-rgb-keyboard-and-keybow-2040-run-the-same-code-py/17746/5 "2021-08-22T18:53:54Z")

</div>

Yes, that’s the correct place to get it from.
