Comments (2)
Found a solution:
//MbedI2C iic(6,7);
TwoWire iic(i2c1,6,7);
//TwoWire iic(i2c0,4,5);
TwoWire is instatiated as in wire,h
TwoWire(i2c_inst_t *i2c, pin_size_t sda, pin_size_t scl);
i2c_inst_t is a struct in ic2.h that contains the following specific instance references:
In i2c.h:
typedef struct i2c_inst i2c_inst_t;
...
...
extern i2c_inst_t i2c0_inst;
extern i2c_inst_t i2c1_inst;
#define i2c0 (&i2c0_inst) ///< Identifier for I2C HW Block 0
#define i2c1 (&i2c1_inst) ///< Identifier for I2C HW Block 1
```.
from freenove_ultimate_starter_kit_for_raspberry_pi.
Hi! It seemed that you are using the Raspberry Pi Pico kit, and not using the latest code.
You can download the latest one with this link:
https://github.com/Freenove/Freenove_Ultimate_Starter_Kit_for_Raspberry_Pi_Pico/archive/refs/heads/master.zip
from freenove_ultimate_starter_kit_for_raspberry_pi.
Related Issues (20)
- MPU6050 displaying errors on both codes
- Softlight.py : error file not found line 13 HOT 1
- led is on when executing on python HOT 2
- Unfinished cleanup in chapter 8 python script? HOT 1
- C code, Project 20.1 I2C LCD1602, time is displayed incorrectly
- Ultrasonic circuit overvolts GPIO HOT 3
- Instructions for installing Python Libs. HOT 1
- Issue with command line HOT 2
- The amazon store title said there were 434 pages of detailed instructions, is this the correct one? HOT 2
- Chapter 23 Infrared sensor should be connected to 5V and not 3.3V HOT 1
- temputure controlled led HOT 2
- ColorfulLED.py HOT 1
- I2CLCD turn backlight off HOT 2
- Java code for the starter kit ? HOT 5
- Combining Project 13.1 and 20.1 to have the motor speed displayed on I2C LCD
- [Solution] sudo: make: command not found HOT 2
- no username HOT 3
- Incorrect import in 3.1.1 HOT 1
- WiringPI outdated/no longer supported HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from freenove_ultimate_starter_kit_for_raspberry_pi.