refreshed docs

This commit is contained in:
Peli de Halleux 2016-05-27 08:55:40 -07:00
parent 74b333dee4
commit f39703e6f7
3 changed files with 7 additions and 1 deletions

5
docs/reference/String.md Normal file
View File

@ -0,0 +1,5 @@
# String
```cards
String.fromCharCode(0);
```

View File

@ -8,6 +8,7 @@ pins.digitalWritePin(DigitalPin.P0, 0);
pins.analogReadPin(AnalogPin.P0);
pins.analogWritePin(AnalogPin.P0, 1023);
pins.analogSetPeriod(AnalogPin.P0, 20000);
pins.map(0, 0, 1023, 0, 4);
pins.onPulsed(DigitalPin.P0, PulseValue.High, () => {
});
@ -16,7 +17,6 @@ pins.servoWritePin(AnalogPin.P0, 180);
pins.servoSetPulse(AnalogPin.P0, 1500);
pins.i2cReadNumber(0, NumberFormat.Int8LE);
pins.i2cWriteNumber(0, 0, NumberFormat.Int8LE);
pins.map(0, 0, 1023, 0, 4);
pins.analogPitch(0, 0);
pins.analogSetPitchPin(AnalogPin.P0);
```

View File

@ -8,4 +8,5 @@ serial.writeNumber(0);
serial.writeValue(x, 0);
serial.writeString("");
serial.readLine();
serial.redirect(SerialPin.P0, SerialPin.P0, BaudRate.BaudRate115200);
```