Skip to content

Commit b836e0f

Browse files
Fix indentations
1 parent a7a60e4 commit b836e0f

File tree

3 files changed

+30
-41
lines changed

3 files changed

+30
-41
lines changed

docs/example-I2C.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -241,11 +241,9 @@ Users can find this sketch in the **File** > **Examples** > **BME68x Sensor libr
241241

242242
- The chip select pin no longer needs to be defined:
243243

244-
{--
245-
#ifndef PIN_CS
244+
{--#ifndef PIN_CS
246245
#define PIN_CS SS
247-
#endif
248-
--}
246+
#endif--}
249247

250248
- The I^2^C bus must be initialized, instead of the SPI bus:
251249

docs/example-codeless.md

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -138,19 +138,17 @@ In order to operate the `codelessBLE_peripheral.ino` and `codelessBLE_central.in
138138
{--BME280 myBME280;--}
139139
{++Bme68x bme;++}
140140

141-
- Initialize and configure the sensor:
141+
- Initialize and configure the sensor in the `setup()`:
142142

143-
{--
144-
if(!myBME280.beginI2C())
143+
{--if(!myBME280.beginI2C())
145144
{
146145
Serial.println("Sensor didn't respond. Check wiring!");
147146
while(1);
148147
}
149148

150-
Serial.println("Connected to BME280.");
151-
--}
152-
{++
153-
bme.begin(BME68X_I2C_ADDR_LOW, Wire)
149+
Serial.println("Connected to BME280.");--}
150+
151+
{++bme.begin(BME68X_I2C_ADDR_LOW, Wire)
154152

155153
if(bme.checkStatus())
156154
{
@@ -169,13 +167,11 @@ In order to operate the `codelessBLE_peripheral.ino` and `codelessBLE_central.in
169167
bme.setTPH();
170168

171169
/* Configure the sensor to forced mode */
172-
bme.setOpMode(BME68X_FORCED_MODE);
173-
++}
170+
bme.setOpMode(BME68X_FORCED_MODE);++}
174171

175172
- Update the `loop()` to retrieve data from the BME688
176173

177-
{--
178-
if((loop_start_time - millis()) > 100) // If it's been more than 100ms
174+
{--if((loop_start_time - millis()) > 100) // If it's been more than 100ms
179175
{
180176
reset_loop = true;
181177
if(bleConnected)
@@ -184,11 +180,9 @@ In order to operate the `codelessBLE_peripheral.ino` and `codelessBLE_central.in
184180
printstring = "|"+String(myBME280.readTempC())+","+String(myBME280.readFloatHumidity())+","+String(myBME280.readFloatPressure());
185181
Serial.print(myBLEPeripheral.sendCommand(printstring));
186182
digitalWrite(LED_BUILTIN, LOW);
187-
}
188-
--}
189-
{++
183+
}--}
190184

191-
bme68xData data;
185+
{++bme68xData data;
192186

193187
if((loop_start_time - millis()) > 100) // If it's been more than 100ms
194188
{
@@ -208,8 +202,7 @@ In order to operate the `codelessBLE_peripheral.ino` and `codelessBLE_central.in
208202

209203
Serial.print(myBLEPeripheral.sendCommand(printstring));
210204
digitalWrite(LED_BUILTIN, LOW);
211-
}
212-
++}
205+
}++}
213206

214207

215208

docs/example-digital.md

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -34,19 +34,17 @@ On the RA6M5 Thing Plus, the GPIO pin connected to the `STAT` LED is also capabl
3434
<div markdown>
3535

3636
!!! code "`Fade.ino`"
37-
{--int led = 9; // the PWM pin the LED is attached to--}
38-
{++int led = LED_BUILTIN; // the PWM pin the LED is attached to++}
39-
int brightness = 0; // how bright the LED is
40-
int fadeAmount = 5; // how many points to fade the LED by
37+
int led = {--9; // the PWM pin the LED is attached to--}
38+
int led = {++LED_BUILTIN; // the PWM pin the LED is attached to++}
4139

4240
</div>
4341

4442

4543
<div markdown>
4644

4745
!!! code "`Fading.ino`"
48-
{--int ledPin = 9; // LED connected to digital pin 9--}
49-
{++int ledPin = LED_BUILTIN; // LED connected to digital pin 14++}
46+
int ledPin = {--9; // LED connected to digital pin 9--}
47+
int ledPin = {++LED_BUILTIN; // LED connected to digital pin 14++}
5048

5149
</div>
5250

@@ -251,25 +249,25 @@ On the RA6M5 Thing Plus, the ++"USRBTN"++ button is the perfect component for op
251249

252250
---
253251

254-
int pushButton = {--2--};
255-
int pushButton = {++31++};
252+
int pushButton = {--2--};
253+
int pushButton = {++31++};
256254

257255
`Button.ino` and `Debounce.ino`
258256

259257
---
260258

261-
const int buttonPin = {--2--}; // the number of the pushbutton pin
262-
const int buttonPin = {++31++}; // the number of the pushbutton pin
259+
const int buttonPin = {--2--}; // the number of the pushbutton pin
260+
const int buttonPin = {++31++}; // the number of the pushbutton pin
263261

264262
`InputPullupSerial.ino`
265263

266264
---
267265

268-
pinMode({--2--}, INPUT_PULLUP);
269-
pinMode({++31++}, INPUT_PULLUP);
266+
pinMode({--2--}, INPUT_PULLUP);
267+
pinMode({++31++}, INPUT_PULLUP);
270268

271-
int sensorVal = digitalRead({--2--});
272-
int sensorVal = digitalRead({++31++});
269+
int sensorVal = digitalRead({--2--});
270+
int sensorVal = digitalRead({++31++});
273271

274272
</div>
275273

@@ -281,18 +279,18 @@ On the RA6M5 Thing Plus, the ++"USRBTN"++ button is the perfect component for op
281279

282280
---
283281

284-
const int ledPin = {--13--}; // the number of the LED pin
285-
const int ledPin = {++LED_BUILTIN++}; // the number of the LED pin
282+
const int ledPin = {--13--}; // the number of the LED pin
283+
const int ledPin = {++LED_BUILTIN++}; // the number of the LED pin
286284

287285
`InputPullupSerial.ino`
288286

289287
---
290288

291-
pinMode({--13--}, OUTPUT);
292-
digitalWrite({--13--}, value);
289+
pinMode({--13--}, OUTPUT);
290+
digitalWrite({--13--}, value);
293291

294-
pinMode({++LED_BUILTIN++}, OUTPUT);
295-
digitalWrite({++LED_BUILTIN++}, value);
292+
pinMode({++LED_BUILTIN++}, OUTPUT);
293+
digitalWrite({++LED_BUILTIN++}, value);
296294

297295
</div>
298296

0 commit comments

Comments
 (0)