# I2C Problem

**URL:** <https://forum.calliope.cc/t/i2c-problem/1025>\
**Category:** Software allgemein\
**Created:** [6. Februar 2019 um 14:13 UTC](https://forum.calliope.cc/t/i2c-problem/1025 "2019-02-06T14:13:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![klmi](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.calliope.cc/klmi/32/763_2.png) [@klmi](https://forum.calliope.cc/u/klmi)\
**Post date:** [6. Februar 2019 um 14:13 UTC](https://forum.calliope.cc/t/i2c-problem/1025/1 "2019-02-06T14:13:57Z")

</div>

Ich habe hier den micro Maqueen. Der läuft auch am microbit wunderbar. Die Motoren laufen über I2C. Ich habe den Calliobit easy aufgesteckt und lasse die Motoren über Grove-Stecker am microbit mit dem Grove-Shield laufen --\> läuft wunderbar.

 ![IMG_7239](https://canada1.discourse-cdn.com/flex027/uploads/calliope/original/2X/7/70455c00d84a75408a39b0dd8c591272e530bdef.jpeg)  
Gleicher Code am Calliope Mini – nichts rührt sich. Woran könnte es liegen?  
Code folgt weiter unten  
 ![IMG_7238](https://canada1.discourse-cdn.com/flex027/uploads/calliope/original/2X/d/d3279fd1617b1654571113c9218ee751bd782c3f.jpeg)

```
input.onButtonPressed(Button.A, () => {
maqueen.MotorRun(maqueen.aMotors.M1, maqueen.Dir.CW, 255)
maqueen.MotorRun(maqueen.aMotors.M2, maqueen.Dir.CW, 255)
led.plot(0, 0)

```

})

// % weight=10 color=#008B00 icon="\uf136"  
// block=“maqueen”  
namespace maqueen {

```
export enum aMotors {
    //% blockId="M1" block="M1"
    M1 = 0,
    //% blockId="M2" block="M2"
    M2 = 1
}

export enum Dir {
    //% blockId="CW" block="CW"
    CW = 0x0,
    //% blockId="CCW" block="CCW"
    CCW = 0x1
}

export function MotorRun(index: aMotors, direction: Dir, speed: number): void {
    let buf = pins.createBuffer(3);
    if (index == 0) {
        buf[0] = 0x00;
    }
    if (index == 1) {
        buf[0] = 0x02;
    }
    buf[1] = direction;
    buf[2] = speed;
    pins.i2cWriteBuffer(0x10, buf);
}

```

}

---

<div class="post-metadata">

**Author:** ![Weja](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.calliope.cc/weja/32/89_2.png) [@Weja](https://forum.calliope.cc/u/Weja)\
**Post date:** [6. Februar 2019 um 16:07 UTC](https://forum.calliope.cc/t/i2c-problem/1025/2 "2019-02-06T16:07:49Z")

</div>

nur eine Vermutung:  
Beim Calliope sind die beiden I2C Pins auf C18/C19 gelegt.  
Beim micro:bit jedoch auf C19/C20

---

<div class="post-metadata">

**Author:** ![klmi](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.calliope.cc/klmi/32/763_2.png) [@klmi](https://forum.calliope.cc/u/klmi)\
**Post date:** [6. Februar 2019 um 16:10 UTC](https://forum.calliope.cc/t/i2c-problem/1025/3 "2019-02-06T16:10:20Z")

</div>

Leider nein, diese Änderung ist in der Calliobit-Platine schon eingebaut und funktioniert auch so bei anderen Microbiterweiterungen wie dem Scrollbit 😢
