From fb1c6f7fb4a4809350b65e48cc16c50d39e6f446 Mon Sep 17 00:00:00 2001 From: Marcel Schulz Date: Wed, 22 Nov 2017 00:23:53 +0100 Subject: [PATCH] Changed the comments in the example sketches. --- examples/BME280_Client/BME280_Client.ino | 13 ++++++------ .../GettingStartedClient.ino | 20 +++++++++--------- .../GettingStartedMaster.ino | 18 ++++++++-------- .../UniversalSensorMaster.ino | 21 +++++++++---------- 4 files changed, 36 insertions(+), 36 deletions(-) diff --git a/examples/BME280_Client/BME280_Client.ino b/examples/BME280_Client/BME280_Client.ino index fb75c15..d242d59 100644 --- a/examples/BME280_Client/BME280_Client.ino +++ b/examples/BME280_Client/BME280_Client.ino @@ -11,12 +11,13 @@ * * Step 2 - Connect the BME280 sensor to your arduino/wemos device * Connect Arduino --> BME280 -* A4 --> SDA -* A5 --> SCL -* 3V3 --> VCC -* GND --> GND -* empty --> CSB -* empty --> SD0 +* ------------------ +* A4 --> SDA +* A5 --> SCL +* 3V3 --> VCC +* GND --> GND +* empty --> CSB +* empty --> SD0 * The I2C Address of BME280 usually is 0x76 --> Put this into bme.begin(0x76) at setup function. If this is not working try 0x77. * * Step 3 - Download and include the Sparkfun BME280 library. diff --git a/examples/GettingStartedClient/GettingStartedClient.ino b/examples/GettingStartedClient/GettingStartedClient.ino index fb5791f..be706c2 100644 --- a/examples/GettingStartedClient/GettingStartedClient.ino +++ b/examples/GettingStartedClient/GettingStartedClient.ino @@ -7,16 +7,16 @@ * If you want to use a Wemos, then change the line 38 "SBNetwork networkDevice(true, 6, 7);" to the correct pinout for a Wemos "SBNetwork networkDevice(true, D2, D8);". * ************************************************************** * Step 1 - Prepare your device -* Connect a nRF24L01 transmitter to the Arduino or to a Wemos D1 mini. -* WEMOS > RF24 ARDUINO > RF24 --------------------------------------- -* ------------ -------------- | GND # # VCC TOP VIEW | -* 3V3 > VCC VCC > VCC | CE # # CSN OF nRF24L01 | -* GND > GND GND > GND | SCK # # MOSI | -* D2 > CE 6 > CE | MISO # # IRQ | -* D8 > CSN 7 > CSN | | -* D7 > MOSI 11 > MOSI --------------------------------------- -* D6 > MISO 12 > MISO -* D5 > SCK 13 > SCK +* Connect a nRF24L01 transmitter to a Wemos D1 mini or an Arduino Device +* WEMOS > RF24 ARDUINO > RF24 -------------------------------------- +* ------------ -------------- | GND # # VCC TOP VIEW | +* 3V3 > VCC VCC > VCC | CE # # CSN of nRF24L01 | +* GND > GND GND > GND | SCK # # MOSI | +* D2 > CE 6 > CE | MISO # # IRQ | +* D8 > CSN 7 > CSN | | +* D7 > MOSI 11 > MOSI -------------------------------------- +* D6 > MISO 12 > MISO +* D5 > SCK 13 > SCK * * Step 2 - Build the sketch for the client device * Connect the Arduino via USB to the PC, select the right board and COM interface in the tools menu and run the project. diff --git a/examples/GettingStartedMaster/GettingStartedMaster.ino b/examples/GettingStartedMaster/GettingStartedMaster.ino index f676b79..60c2f68 100644 --- a/examples/GettingStartedMaster/GettingStartedMaster.ino +++ b/examples/GettingStartedMaster/GettingStartedMaster.ino @@ -8,15 +8,15 @@ * ************************************************************** * Step 1 - Prepare your device * Connect a nRF24L01 transmitter to a Wemos D1 mini or an Arduino Device -* WEMOS > RF24 ARDUINO > RF24 --------------------------------------- -* ------------ -------------- | GND # # VCC TOP VIEW | -* 3V3 > VCC VCC > VCC | CE # # CSN OF nRF24L01 | -* GND > GND GND > GND | SCK # # MOSI | -* D2 > CE 6 > CE | MISO # # IRQ | -* D8 > CSN 7 > CSN | | -* D7 > MOSI 11 > MOSI --------------------------------------- -* D6 > MISO 12 > MISO -* D5 > SCK 13 > SCK +* WEMOS > RF24 ARDUINO > RF24 -------------------------------------- +* ------------ -------------- | GND # # VCC TOP VIEW | +* 3V3 > VCC VCC > VCC | CE # # CSN of nRF24L01 | +* GND > GND GND > GND | SCK # # MOSI | +* D2 > CE 6 > CE | MISO # # IRQ | +* D8 > CSN 7 > CSN | | +* D7 > MOSI 11 > MOSI -------------------------------------- +* D6 > MISO 12 > MISO +* D5 > SCK 13 > SCK * * Step 2 - Build the sketch for the master device * Connect the Wemos via USB to the PC, select the right board and COM interface in the tools menu and run the project. diff --git a/examples/UniversalSensorMaster/UniversalSensorMaster.ino b/examples/UniversalSensorMaster/UniversalSensorMaster.ino index 0a245b1..492da81 100644 --- a/examples/UniversalSensorMaster/UniversalSensorMaster.ino +++ b/examples/UniversalSensorMaster/UniversalSensorMaster.ino @@ -4,20 +4,19 @@ * See further library details on https://github.com/Schullebernd/SBNetwork * ************************************************************* * This Getting started is prepared for using it with a Wemos D1 mini as a master device. -* If you want to use an Arduino, then change the line 39 "SBNetwork networkDevice(false, D2, D8);" to the correct pinout for an Arduino "SBNetwork networkDevice(false, 6, 7)". -* +* If you want to use an Arduino, then change the line 36 "SBNetwork networkDevice(false, D2, D8);" to the correct pinout for an Arduino "SBNetwork networkDevice(false, 6, 7)". * ************************************************************** * Step 1 - Prepare your device * Connect a nRF24L01 transmitter to a Wemos D1 mini or an Arduino Device -* WEMOS > RF24 ARDUINO > RF24 --------------------------------------- -* ------------ -------------- | GND # # VCC TOP VIEW | -* 3V3 > VCC VCC > VCC | CE # # CSN OF nRF24L01 | -* GND > GND GND > GND | SCK # # MOSI | -* D2 > CE 6 > CE | MISO # # IRQ | -* D8 > CSN 7 > CSN | | -* D7 > MOSI 11 > MOSI --------------------------------------- -* D6 > MISO 12 > MISO -* D5 > SCK 13 > SCK +* WEMOS > RF24 ARDUINO > RF24 -------------------------------------- +* ------------ -------------- | GND # # VCC TOP VIEW | +* 3V3 > VCC VCC > VCC | CE # # CSN of nRF24L01 | +* GND > GND GND > GND | SCK # # MOSI | +* D2 > CE 6 > CE | MISO # # IRQ | +* D8 > CSN 7 > CSN | | +* D7 > MOSI 11 > MOSI -------------------------------------- +* D6 > MISO 12 > MISO +* D5 > SCK 13 > SCK * * Step 2 - Build the sketch for the master device * Connect the Wemos via USB to the PC, select the right board and COM interface in the tools menu and run the project.