Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md #8

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,37 @@ More testing is needed to verify that the firmware works correctly, this project

* SDA (i2c data): GPIO 2
* SCL (i2c clock): GPIO 3

## Installation:

Make sure you have a clone of the PICO_SDK
https://github.com/raspberrypi/pico-sdk
```
cd ~
git clone https://github.com/raspberrypi/pico-sdk.git
git submodule update --init
```

clone this repo
```
cd ~
git clone https://github.com/Nicolai-Electronics/rp2040-i2c-interface.git
```

create a build folder, link the pico-sdk and run cmake from it
```
cd ~
cd rp2040-i2c-interface
mkdir build
cd build
export PICO_SDK_PATH=~/pico-sdk
cmake ..
```

build

```
make
```

copy the i2c_adapter.uf2 file to your RP2040 by dropping it on the drive it shows when turning it on by holding the boot button.