Skip to content

Commit 9568e96

Browse files
author
GitHub Actions
committed
Merge branch 'main' of github.com:UNIT-Electronics-MX/unit_bme688_environmental_sensor_4_in_1
2 parents 68bcc05 + bf96ce2 commit 9568e96

6 files changed

Lines changed: 93 additions & 1 deletion

File tree

docs/datasheet_professional.pdf

0 Bytes
Binary file not shown.
2.73 MB
Binary file not shown.

docs/mdbook/print.html

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,52 @@ <h3 id="2-software-installation"><a class="header" href="#2-software-installatio
364364
<div style="break-before: page; page-break-before: always;"></div><h1 id="examples"><a class="header" href="#examples">Examples</a></h1>
365365
<h2 id="arduinoc-examples"><a class="header" href="#arduinoc-examples">Arduino/C++ Examples</a></h2>
366366
<p>The following examples demonstrate various features of this development board.</p>
367+
<h3 id="-i2c-example1ino"><a class="header" href="#-i2c-example1ino">⚡ i2c: example1.ino</a></h3>
368+
<pre><code class="language-cpp">#include &lt;Arduino.h&gt;
369+
#include "bme68xLibrary.h"
370+
#include &lt;Wire.h&gt;
371+
372+
#define SDA_PIN 21
373+
#define SCL_PIN 22
374+
375+
Bme68x bme;
376+
377+
void setup() {
378+
Serial.begin(115200);
379+
while (!Serial) delay(10);
380+
381+
Wire.begin(SDA_PIN, SCL_PIN);
382+
Wire.setClock(100000); // 100 kHz
383+
384+
// ✅ Solo llama a begin, sin usar if
385+
bme.begin(0x77, Wire);
386+
387+
// Verifica estado del sensor
388+
</code></pre>
389+
<p><a href="https://github.com/UNIT-Electronics-MX/unit_bme688_environmental_sensor_4_in_1/blob/main/software/examples/c/i2c/example1.ino">📄 Ver código completo en GitHub</a></p>
390+
<h3 id="-spi-example_spiino"><a class="header" href="#-spi-example_spiino">⚡ spi: example_spi.ino</a></h3>
391+
<pre><code class="language-cpp">#include &lt;Arduino.h&gt;
392+
#include &lt;SPI.h&gt;
393+
#include "bme68xLibrary.h"
394+
395+
// Pines personalizados para ESP32-C6
396+
#define PIN_MOSI 7
397+
#define PIN_MISO 2
398+
#define PIN_SCK 6
399+
#define PIN_CS 18
400+
401+
SPIClass mySPI(0); // Bus SPI #0 para ESP32-C6
402+
Bme68x bme;
403+
404+
void setup() {
405+
Serial.begin(115200);
406+
while (!Serial);
407+
408+
// Inicializar SPI con pines personalizados
409+
mySPI.begin(PIN_SCK, PIN_MISO, PIN_MOSI, PIN_CS);
410+
411+
</code></pre>
412+
<p><a href="https://github.com/UNIT-Electronics-MX/unit_bme688_environmental_sensor_4_in_1/blob/main/software/examples/c/spi/example_spi.ino">📄 Ver código completo en GitHub</a></p>
367413
<div style="break-before: page; page-break-before: always;"></div><h1 id="datasheet--documentation"><a class="header" href="#datasheet--documentation">Datasheet &amp; Documentation</a></h1>
368414
<h2 id="-professional-datasheet"><a class="header" href="#-professional-datasheet">📄 Professional Datasheet</a></h2>
369415
<p>Complete technical specifications and professional documentation.</p>
2.73 MB
Binary file not shown.

docs/mdbook/searchindex.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/mdbook/software/examples.html

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,52 @@ <h1 class="menu-title"></h1>
178178
<h1 id="examples"><a class="header" href="#examples">Examples</a></h1>
179179
<h2 id="arduinoc-examples"><a class="header" href="#arduinoc-examples">Arduino/C++ Examples</a></h2>
180180
<p>The following examples demonstrate various features of this development board.</p>
181+
<h3 id="-i2c-example1ino"><a class="header" href="#-i2c-example1ino">⚡ i2c: example1.ino</a></h3>
182+
<pre><code class="language-cpp">#include &lt;Arduino.h&gt;
183+
#include "bme68xLibrary.h"
184+
#include &lt;Wire.h&gt;
185+
186+
#define SDA_PIN 21
187+
#define SCL_PIN 22
188+
189+
Bme68x bme;
190+
191+
void setup() {
192+
Serial.begin(115200);
193+
while (!Serial) delay(10);
194+
195+
Wire.begin(SDA_PIN, SCL_PIN);
196+
Wire.setClock(100000); // 100 kHz
197+
198+
// ✅ Solo llama a begin, sin usar if
199+
bme.begin(0x77, Wire);
200+
201+
// Verifica estado del sensor
202+
</code></pre>
203+
<p><a href="https://github.com/UNIT-Electronics-MX/unit_bme688_environmental_sensor_4_in_1/blob/main/software/examples/c/i2c/example1.ino">📄 Ver código completo en GitHub</a></p>
204+
<h3 id="-spi-example_spiino"><a class="header" href="#-spi-example_spiino">⚡ spi: example_spi.ino</a></h3>
205+
<pre><code class="language-cpp">#include &lt;Arduino.h&gt;
206+
#include &lt;SPI.h&gt;
207+
#include "bme68xLibrary.h"
208+
209+
// Pines personalizados para ESP32-C6
210+
#define PIN_MOSI 7
211+
#define PIN_MISO 2
212+
#define PIN_SCK 6
213+
#define PIN_CS 18
214+
215+
SPIClass mySPI(0); // Bus SPI #0 para ESP32-C6
216+
Bme68x bme;
217+
218+
void setup() {
219+
Serial.begin(115200);
220+
while (!Serial);
221+
222+
// Inicializar SPI con pines personalizados
223+
mySPI.begin(PIN_SCK, PIN_MISO, PIN_MOSI, PIN_CS);
224+
225+
</code></pre>
226+
<p><a href="https://github.com/UNIT-Electronics-MX/unit_bme688_environmental_sensor_4_in_1/blob/main/software/examples/c/spi/example_spi.ino">📄 Ver código completo en GitHub</a></p>
181227

182228
</main>
183229

0 commit comments

Comments
 (0)