refreshed docs
This commit is contained in:
parent
74b333dee4
commit
f39703e6f7
5
docs/reference/String.md
Normal file
5
docs/reference/String.md
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
# String
|
||||||
|
|
||||||
|
```cards
|
||||||
|
String.fromCharCode(0);
|
||||||
|
```
|
@ -8,6 +8,7 @@ pins.digitalWritePin(DigitalPin.P0, 0);
|
|||||||
pins.analogReadPin(AnalogPin.P0);
|
pins.analogReadPin(AnalogPin.P0);
|
||||||
pins.analogWritePin(AnalogPin.P0, 1023);
|
pins.analogWritePin(AnalogPin.P0, 1023);
|
||||||
pins.analogSetPeriod(AnalogPin.P0, 20000);
|
pins.analogSetPeriod(AnalogPin.P0, 20000);
|
||||||
|
pins.map(0, 0, 1023, 0, 4);
|
||||||
pins.onPulsed(DigitalPin.P0, PulseValue.High, () => {
|
pins.onPulsed(DigitalPin.P0, PulseValue.High, () => {
|
||||||
|
|
||||||
});
|
});
|
||||||
@ -16,7 +17,6 @@ pins.servoWritePin(AnalogPin.P0, 180);
|
|||||||
pins.servoSetPulse(AnalogPin.P0, 1500);
|
pins.servoSetPulse(AnalogPin.P0, 1500);
|
||||||
pins.i2cReadNumber(0, NumberFormat.Int8LE);
|
pins.i2cReadNumber(0, NumberFormat.Int8LE);
|
||||||
pins.i2cWriteNumber(0, 0, NumberFormat.Int8LE);
|
pins.i2cWriteNumber(0, 0, NumberFormat.Int8LE);
|
||||||
pins.map(0, 0, 1023, 0, 4);
|
|
||||||
pins.analogPitch(0, 0);
|
pins.analogPitch(0, 0);
|
||||||
pins.analogSetPitchPin(AnalogPin.P0);
|
pins.analogSetPitchPin(AnalogPin.P0);
|
||||||
```
|
```
|
||||||
|
@ -8,4 +8,5 @@ serial.writeNumber(0);
|
|||||||
serial.writeValue(x, 0);
|
serial.writeValue(x, 0);
|
||||||
serial.writeString("");
|
serial.writeString("");
|
||||||
serial.readLine();
|
serial.readLine();
|
||||||
|
serial.redirect(SerialPin.P0, SerialPin.P0, BaudRate.BaudRate115200);
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user