Read up to 12 different feelers with MakeCode, your micro:bit or Calliope mini. The read block returns the touched feeler id, -1 if multiple feelers are touched, -2 if no feeler is touched.
grove_mpr121.init(
)
basic.forever(() => {
basic.showNumber(grove_mpr121.touchedFeeler())
})
Copyright (C) 2017 Mirek Hancl
Licensed under the MIT License (MIT). See LICENSE file for more details.
- for PXT/microbit
- for PXT/calliope