Approved content

The content below is provided by a partner.

KitronikLtd/pxt-kitronik-fischertechnik 1.0.3 GitHub

pxt-kitronik-fischertechnik

Kitronik blocks for micro:bit

Blocks that support Kitronik kits and shields for the micro:bit This package is for the [Kitronik :CREATE BBC micro:bit interface for Fischertechnik] (http://www.kitronik.co.uk/5656)

Interface for Fischertechnik

    input.onButtonPressed(Button.A, function () {

    Kitronik_IFF.motorOn(Kitronik_IFF.Motors.Motor1, Kitronik_IFF.MotorDirection.Forward, 100)
})
    input.onButtonPressed(Button.B, function () {

    Kitronik_IFF.motorOff(Kitronik_IFF.Motors.Motor1)
    item = Kitronik_IFF.ntc(Kitronik_IFF.PinSelection.P0)
    item = Kitronik_IFF.readPhototransistor(Kitronik_IFF.PinSelection.P0)
    Kitronik_IFF.led(Kitronik_IFF.PinSelection.P0, Kitronik_IFF.Illumination.On)
    basic.pause(1000)
    Kitronik_IFF.led(Kitronik_IFF.PinSelection.P0, Kitronik_IFF.Illumination.Off)
    basic.pause(1000)

License

MIT

Supported targets