Git Product home page Git Product logo

Comments (2)

djaus2 avatar djaus2 commented on July 24, 2024

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.

Shaynee-MO avatar Shaynee-MO commented on July 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.