fixing docs enum

This commit is contained in:
Peli de Halleux 2016-04-05 13:54:48 -07:00
parent 9e9d11cb94
commit bb80874ef9
4 changed files with 19 additions and 19 deletions

View File

@ -4,25 +4,25 @@
```cards
input.onButtonPressed(.Button, () => {
input.onButtonPressed(Button.A, () => {
});
input.onGesture(.Gesture, () => {
input.onGesture(Gesture.Shake, () => {
});
input.onPinPressed(.TouchPin, () => {
input.onPinPressed(TouchPin.P0, () => {
});
input.buttonIsPressed(.Button);
input.buttonIsPressed(Button.A);
input.compassHeading();
input.temperature();
input.acceleration(.Dimension);
input.acceleration(Dimension.X);
input.lightLevel();
input.rotation(.Rotation);
input.magneticForce(.Dimension);
input.rotation(Rotation.Pitch);
input.magneticForce(Dimension.X);
input.runningTime();
input.setAccelerometerRange(.AcceleratorRange);
input.pinIsPressed(.TouchPin);
input.setAccelerometerRange(AcceleratorRange.OneG);
input.pinIsPressed(TouchPin.P0);
input.calibrate();
input.onLogoDown(() => {

View File

@ -17,5 +17,5 @@ led.plotAll();
led.screenshot();
led.toggle(0, 0);
led.toggleAll();
led.setDisplayMode(.DisplayMode);
led.setDisplayMode(DisplayMode.BackAndWhite);
```

View File

@ -7,7 +7,7 @@
music.playTone(0, 0);
music.ringTone(0);
music.rest(0);
music.noteFrequency(.Note);
music.noteFrequency(Note.C);
music.beat();
music.tempo();
music.changeTempoBy(20);

View File

@ -4,14 +4,14 @@
```cards
pins.digitalReadPin(.DigitalPin);
pins.digitalWritePin(.DigitalPin, 0);
pins.analogReadPin(.AnalogPin);
pins.analogWritePin(.AnalogPin, 1023);
pins.analogSetPeriod(.AnalogPin, 20000);
pins.servoWritePin(.AnalogPin, 180);
pins.servoSetPulse(.AnalogPin, 1500);
pins.digitalReadPin(DigitalPin.P0);
pins.digitalWritePin(DigitalPin.P0, 0);
pins.analogReadPin(AnalogPin.P0);
pins.analogWritePin(AnalogPin.P0, 1023);
pins.analogSetPeriod(AnalogPin.P0, 20000);
pins.servoWritePin(AnalogPin.P0, 180);
pins.servoSetPulse(AnalogPin.P0, 1500);
pins.map(0, 0, 1023, 0, 4);
pins.analogPitch(0, 0);
pins.analogSetPitchPin(.AnalogPin);
pins.analogSetPitchPin(AnalogPin.P0);
```