Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/infchem/pxt-calliope-grove-mpr121
Seeedstudio Grove I2C Touch Sensor for Calliope Mini
https://github.com/infchem/pxt-calliope-grove-mpr121
Last synced: 2 months ago
JSON representation
Seeedstudio Grove I2C Touch Sensor for Calliope Mini
- Host: GitHub
- URL: https://github.com/infchem/pxt-calliope-grove-mpr121
- Owner: infchem
- License: mit
- Created: 2018-01-08T10:36:05.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-29T14:54:37.000Z (almost 7 years ago)
- Last Synced: 2024-08-03T17:14:55.154Z (5 months ago)
- Language: TypeScript
- Size: 195 KB
- Stars: 0
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-calliope - pxt-calliope-grove-mpr121 - I2C MPR121 Touchsensor (MakeCode Pakete)
README
# pxt-calliope-grove-mpr121 - Grove I2C Touch Sensor
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.## MakeCode Blocks Example
* English
![alt text](https://github.com/infchem/pxt-calliope-grove-mpr121/raw/master/mc_example_en.png "MakeCode Blocks Example English")
* German
![alt text](https://github.com/infchem/pxt-calliope-grove-mpr121/raw/master/mc_example_de.png "MakeCode Blocks Example German")## MakeCode JavaScript Example
```javascript
grove_mpr121.init(
)basic.forever(() => {
basic.showNumber(grove_mpr121.touchedFeeler())
})
```## License
Copyright (C) 2017 Mirek Hancl
Licensed under the MIT License (MIT). See LICENSE file for more details.
## Supported targets
* for PXT/microbit
* for PXT/calliope