Seeed Studio Grove Modul für Calliope MakeCode -> Anpassung der ThingSpeak-Cloud auf rlp.schule
Go to file
2018-01-30 14:40:13 +08:00
_locales/ja Modify ja locale. 2017-10-03 09:55:58 +09:00
.gitattributes 🎉 Added .gitattributes & .gitignore files 2017-06-23 09:54:17 +08:00
.gitignore 🎉 Added .gitattributes & .gitignore files 2017-06-23 09:54:17 +08:00
icon.png Update icon 2018-01-29 17:29:21 +08:00
main.ts optimize blocks 2017-10-23 10:23:08 +08:00
Makefile Update 2017-06-23 09:54:44 +08:00
pxt.json Add ja locale. 2017-09-01 10:42:36 +09:00
README.md Modify readme.md 2018-01-30 14:40:13 +08:00
test.ts Update 2017-06-28 13:39:51 +08:00
tsconfig.json Update 2017-06-23 09:54:44 +08:00

Grove

A Microsoft MakeCode package for for Seeed Studio Grove module.

Basic usage

Grove - Gesture

Create gesture events.

grove.onGesture(GroveGesture.Up, () => {
    basic.showString("Up")
})
grove.onGesture(GroveGesture.Down, () => {
    basic.showString("Down")
})

Grove - Ultrasonic Ranger

Measure distance in centimeters, specify the signal pin.

let distance = 0
distance = grove.measureInCentimeters(DigitalPin.P0)

Measure distance in inches, specify the signal pin.

let distance = 0
distance = grove.measureInInches(DigitalPin.P0)

Grove - 4 digital display

Create a 4 Digital Display driver, specify the clk and data pin, and set the brightness level, then start display value.

let display: grove.TM1637 = null
display = grove.createDisplay(DigitalPin.P0, DigitalPin.P1)
display.set(7)
display.show(1234)

More operation

Grove - 4 digital display

Use ||bit|| to display one bit number.

Use ||point|| to open or close point dispay.

Use ||clear|| to clean display.

License

MIT

Supported targets

  • for PXT/microbit