pxt-calliope/libs/hello/hello.ts
2016-10-10 11:20:25 -07:00

7 lines
136 B
TypeScript

led.plot(0, 0)
basic.pause(1000);
basic.forever(() => {
const a = input.acceleration(Dimension.X);
led.plotBarGraph(a, 1023)
})