Skip to content

Commit 49ea46e

Browse files
authored
Make Spell-check workflow happy 😊 (#121)
* docs: spelling fixes * docs: `Commander.py` spelling fixes * ci: update ignored word list * docs: Add pres to ignored word list * ci: change words to lower case * ci: add `ser` to ignored word list * fix: add missing `.` to `.codespellrc` * docs: fix more spelling * docs: replace `colour` with US spelling `color`
1 parent 9c72fb9 commit 49ea46e

File tree

13 files changed

+30
-30
lines changed

13 files changed

+30
-30
lines changed

docs/readme.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This library allows the Nicla Sense ME to interface with the onboard 6-axis IMU
66
- Easy access to data from Nicla Sense ME sensors using sensor ID
77
- Wrapper for [Bosch BHY2-Sensor-API](https://github.com/BoschSensortec/BHY2-Sensor-API)
88
- DFU (Device Firmware Update) of the ANNA-B112 and the BHI260AP
9-
- All functionality avaliable over both ESLOV and BLE
9+
- All functionality available over both ESLOV and BLE
1010

1111
## Usage
1212

@@ -35,7 +35,7 @@ For additional information on the Arduino_BHY2 library (including a list of Sens
3535
- [App](https://github.com/arduino-libraries/Arduino_BHY2/blob/main/examples/App/App.ino) : Control Nicla Sense ME from an external device acting as a host via I2C or ESLOV
3636
- [AppLowDelay](https://github.com/arduino-libraries/Arduino_BHY2/blob/main/examples/AppLowDelay/AppLowDelay.ino) : Control Nicla Sense ME from an external device acting as a host via I2C or ESLOV with a lower delay
3737
- [BHYFirmwareUpdate](https://github.com/arduino-libraries/Arduino_BHY2/tree/main/examples/BHYFirmwareUpdate) : Update BHI260 firmware to latest version. Can also be used to upload custom firmware binary.
38-
- [Fail_Safe_flasher](https://github.com/arduino-libraries/Arduino_BHY2/blob/main/examples/Fail_Safe_flasher/Fail_Safe_flasher.ino) : Fail Safe flashing of a RGB blink sketch. Writes binary file to the SPI flash, then peforms CRC to ensure successful writing of binary file to flash memory.
38+
- [Fail_Safe_flasher](https://github.com/arduino-libraries/Arduino_BHY2/blob/main/examples/Fail_Safe_flasher/Fail_Safe_flasher.ino) : Fail Safe flashing of a RGB blink sketch. Writes binary file to the SPI flash, then performs CRC to ensure successful writing of binary file to flash memory.
3939
- [ReadSensorConfiguration](https://github.com/arduino-libraries/Arduino_BHY2/blob/main/examples/ReadSensorConfiguration/ReadSensorConfiguration.ino) : Send sample rate, latency and range for accelerator, gyroscope, rotation, temperature and gas sensor over Serial
4040
- [ShowSensorList](https://github.com/arduino-libraries/Arduino_BHY2/blob/main/examples/ShowSensorList/ShowSensorList.ino) : List sensors of the Nicla Sense ME board
4141
- [Standalone](https://github.com/arduino-libraries/Arduino_BHY2/blob/main/examples/Standalone/Standalone.ino) : Read motion, temperature and gas data and send over Serial

examples/BHYFirmwareUpdate/conv.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ if [ -f "$1" ] ; then
55
echo const > fw.h && xxd -i BHI260AP_NiclaSenseME-flash.fw >> fw.h
66
else
77
echo "Usage: $0 <bhy_fw_bin_filename>"
8-
echo "\t<bhy_fw_bin_filename> ususally has a pattern: xxxx-flash.fw"
8+
echo "\t<bhy_fw_bin_filename> usually has a pattern: xxxx-flash.fw"
99
echo "\tExample:"
1010
echo "\t\t$0 ./BHI260AP_NiclaSenseME_basic+bsec-flash.fw"
1111
fi

examples/BSEC2GasScannerClassify/BSEC2GasScannerClassify.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* This sketch shows how the Nicla board could be used to scan / classify certian gases of interest
2+
* This sketch shows how the Nicla board could be used to scan / classify certain gases of interest
33
* using the on-board BME688 4-in-1 evnironmental sensor cluster
44
*
55
*/

examples/BSEC2GasScannerCollectData/tools/BSEC2DataLogConverter.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
class BSEC2DataLogConverter():
1414
# sometimes you may want to add an offset to the converted data in situations such as reset of the board, this way
15-
# the converted data contains timestamp that will succeed eariler log files,
15+
# the converted data contains timestamp that will succeed earlier log files,
1616
# otherwise, there will be overlap of timestamp ranges among the converted data which might confuse the AI studio software
1717
def __init__(self, log_file_name, gas_label, bmeconfig_file, timestamp_offset_ms = 0, dbg=False):
1818
self.log_file_name = log_file_name

examples/DataHarvester/extras/Commander/Commander.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# It waits for user input to control the data acquisition operations and the
77
# connection to the Arduino board and to save the received data to a CSV file.
88
#
9-
# It establish a serial communication to the board and uses COBS as enconding and
9+
# It establish a serial communication to the board and uses COBS as encoding and
1010
# reliable transport protocol.
1111
#
1212
# The main thread will always wait for user input while a second one is created
@@ -35,7 +35,7 @@
3535

3636

3737
# The main serial object
38-
# Initialise later
38+
# initialize later
3939
ser = serial.Serial()
4040

4141
# The function to be run in the Arduino-facing thread
@@ -96,7 +96,7 @@ def receiver(cmd_q, uart, name, tag):
9696
# The main thread
9797
if __name__ == '__main__':
9898

99-
# Parse arugments
99+
# Parse arguments
100100
# - port == Arduino Serial Port
101101
# - name == Filename
102102
# - tag == Custom tag to append to filename

examples/StandaloneFlashStorage/StandaloneFlashStorage.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
This example shows how to use MbedOS-native Storage APIs
88
- https://os.mbed.com/docs/mbed-os/v6.15/apis/data-storage.html
99
10-
C/C++ storage APIs are supporte too
10+
C/C++ storage APIs are supported too
1111
- C-based STDIO: https://en.cppreference.com/w/cpp/header/cstdio
1212
- Stream-based: https://en.cppreference.com/w/cpp/io
1313
*/
@@ -58,7 +58,7 @@ void setup()
5858
}
5959
Serial.println(" done.");
6060

61-
Serial.print("Initialising the sensors... ");
61+
Serial.print("Initializing the sensors... ");
6262
BHY2.begin();
6363

6464
accel.begin();

src/Arduino_BHY2.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ enum NiclaWiring {
3535
*
3636
*/
3737
enum NiclaConfig {
38-
NICLA_I2C = 0x1, /*!< I2C Configuration, relavent for both ESLOV and Shield configurations */
38+
NICLA_I2C = 0x1, /*!< I2C Configuration, relevant for both ESLOV and Shield configurations */
3939
NICLA_BLE = 0x2, /*!< Bluetooth via the onboard ANNA-B112 module */
4040
NICLA_BLE_AND_I2C = NICLA_I2C | NICLA_BLE,/*!< Enable I2C (ESLOV/Shield) and BLE simultaneously */
4141
NICLA_STANDALONE = 0x4 /*!< Operate in standalone, without external data transfer */
@@ -81,7 +81,7 @@ class Arduino_BHY2 {
8181

8282
// Necessary API. Update function should be continuously polled
8383
/**
84-
* @brief Initialise the BHY2 functionality for the Nicla Sense ME, for a given @ref NiclaSettings configuration.
84+
* @brief initialize the BHY2 functionality for the Nicla Sense ME, for a given @ref NiclaSettings configuration.
8585
*
8686
* @note When called without input parameters, I2C and BLE are enabled by default. I2C communication is over ESLOV.
8787
*

src/BLEHandler.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ class BLEHandler {
2020
virtual ~BLEHandler();
2121

2222
/**
23-
* @brief Set advertised local name and initialise BLE advertising for DFU and sensor data transfer
23+
* @brief Set advertised local name and initialize BLE advertising for DFU and sensor data transfer
2424
*
25-
* @return true Successful initialisation of BLE device
25+
* @return true Successful initialization of BLE device
2626
*/
2727
bool begin();
2828
/**

src/BoschParser.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class BoschParser {
6161

6262
private:
6363
/**
64-
* @brief The Arduino_BHY2 class can accces both private and public methods of BoschParser
64+
* @brief The Arduino_BHY2 class can access both private and public methods of BoschParser
6565
*
6666
*/
6767
friend class Arduino_BHY2;

src/BoschSensortec.h

+8-8
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ extern "C"
3838
*
3939
*/
4040
enum SensorAckCode {
41-
SensorAck = 0x0F, /*!< Acknowledgement */
42-
SensorNack = 0x00 /*!< Negative Acknowledgement */
41+
SensorAck = 0x0F, /*!< Acknowledgment */
42+
SensorNack = 0x00 /*!< Negative Acknowledgment */
4343
};
4444

4545
/**
@@ -55,7 +55,7 @@ class BoschSensortec {
5555
/**
5656
* @brief Setup SPI interface between BHI260 and ANNA-B112
5757
*
58-
* @return true successful initialisation of SPI interface
58+
* @return true successful initialization of SPI interface
5959
*/
6060
bool begin();
6161
/**
@@ -107,15 +107,15 @@ class BoschSensortec {
107107
bool hasSensor(uint8_t sensorId);
108108

109109
/**
110-
* @brief Return available size of avaliable sensor data
110+
* @brief Return available size of available sensor data
111111
*
112-
* @return uint8_t size of avaliable sensor data
112+
* @return uint8_t size of available sensor data
113113
*/
114114
uint8_t availableSensorData();
115115
/**
116-
* @brief Return available size of avaliable long sensor data
116+
* @brief Return available size of available long sensor data
117117
*
118-
* @return uint8_t size of avaliable sensor long data
118+
* @return uint8_t size of available sensor long data
119119
*/
120120
uint8_t availableLongSensorData();
121121
/**
@@ -165,7 +165,7 @@ class BoschSensortec {
165165

166166
private:
167167
/**
168-
* @brief The Arduino_BHY2 class can accces both private and public methods of BoschSensortec
168+
* @brief The Arduino_BHY2 class can access both private and public methods of BoschSensortec
169169
*
170170
*/
171171
friend class Arduino_BHY2;

src/DFUManager.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ enum DFUType {
1717
};
1818

1919
/**
20-
* @brief Acknowledgement handler for the DFU
20+
* @brief Acknowledgment handler for the DFU
2121
*
2222
*/
2323
enum DFUAckCode {
24-
DFUAck = 0x0F, /*!< Acknowledgement */
25-
DFUNack = 0x00 /*!< Negative Acknowledgement */
24+
DFUAck = 0x0F, /*!< Acknowledgment */
25+
DFUNack = 0x00 /*!< Negative Acknowledgment */
2626
};
2727

2828
/**
@@ -104,7 +104,7 @@ class DFUManager {
104104

105105
private:
106106
/**
107-
* @brief The Arduino_BHY2 class can accces both private and public methods of DFUManager
107+
* @brief The Arduino_BHY2 class can access both private and public methods of DFUManager
108108
*
109109
*/
110110
friend class Arduino_BHY2;

src/EslovHandler.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class EslovHandler {
4545
/**
4646
* @brief Start I2C communication over ESLOV
4747
*
48-
* @return true I2C communication initialised successfully.
48+
* @return true I2C communication initialized successfully.
4949
*/
5050
bool begin();
5151
/**
@@ -89,7 +89,7 @@ class EslovHandler {
8989

9090
private:
9191
/**
92-
* @brief The Arduino_BHY2 class can accces both private and public methods of EslovHandler
92+
* @brief The Arduino_BHY2 class can access both private and public methods of EslovHandler
9393
*
9494
*/
9595
friend class Arduino_BHY2;

src/sensors/DataParser.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ struct DataBSEC {
5151
uint16_t iaq_s; //iaq value for stationary use cases
5252
float b_voc_eq; //breath VOC equivalent (ppm)
5353
uint32_t co2_eq; //CO2 equivalent (ppm) [400,]
54-
float comp_t; //compensated temperature (celcius)
54+
float comp_t; //compensated temperature (celsius)
5555
float comp_h; //compensated humidity
5656
uint32_t comp_g; //compensated gas resistance (Ohms)
5757
uint8_t accuracy; //accuracy level: [0-3]

0 commit comments

Comments
 (0)