Skip to content

Commit ac6ba5d

Browse files
committed
keywords, properties
1 parent af85cc0 commit ac6ba5d

File tree

3 files changed

+131
-6
lines changed

3 files changed

+131
-6
lines changed

examples/ScienceJournal/ScienceJournal.ino

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/*
2+
This file is part of the Arduino_GroveI2C_Ultrasonic library.
3+
Copyright (c) 2023 Arduino SA. All rights reserved.
4+
5+
This library is free software; you can redistribute it and/or
6+
modify it under the terms of the GNU Lesser General Public
7+
License as published by the Free Software Foundation; either
8+
version 2.1 of the License, or (at your option) any later version.
9+
10+
This library is distributed in the hope that it will be useful,
11+
but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13+
Lesser General Public License for more details.
14+
15+
You should have received a copy of the GNU Lesser General Public
16+
License along with this library; if not, write to the Free Software
17+
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18+
*/
19+
120
#include "ble_config.h"
221
#include "Arduino_ScienceKitCarrier.h"
322
String name;
@@ -56,7 +75,7 @@ void setup() {
5675

5776
BLE.addService(service);
5877
BLE.advertise();
59-
science_kit.startAuxiliaryThreads(); // start the bme688 thread
78+
science_kit.startAuxiliaryThreads(); // start the BME688 thread
6079
_t.start(loop_data);
6180
_tu.start(update);
6281
}

keywords.txt

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
#######################################
2+
# Syntax Coloring Map For Arduino_ScienceKitCarrier
3+
#######################################
4+
# Class
5+
#######################################
6+
7+
ScienceKitCarrier KEYWORD1
8+
9+
#######################################
10+
# Methods and Functions
11+
#######################################
12+
13+
begin KEYWORD2
14+
update KEYWORD2
15+
startAuxiliaryThreads KEYWORD2
16+
17+
18+
beginAnalogInput KEYWORD2
19+
updateAnalogInput KEYWORD2
20+
getInputA KEYWORD2
21+
getInputB KEYWORD2
22+
23+
beginAPDS KEYWORD2
24+
updateAPDS KEYWORD2
25+
getProximity KEYWORD2
26+
getRed KEYWORD2
27+
getGreen KEYWORD2
28+
getBlue KEYWORD2
29+
getClear KEYWORD2
30+
31+
beginINA KEYWORD2
32+
updateINA KEYWORD2
33+
getVoltage KEYWORD2
34+
getCurrent KEYWORD2
35+
36+
beginResistance KEYWORD2
37+
updateResistance KEYWORD2
38+
getResistance KEYWORD2
39+
40+
beginBME688 KEYWORD2
41+
updateBME688 KEYWORD2
42+
getTemperature KEYWORD2
43+
getPressure KEYWORD2
44+
getHumidity KEYWORD2
45+
getAirQuality KEYWORD2
46+
threadBME688 KEYWORD2
47+
48+
beginIMU KEYWORD2
49+
updateIMU KEYWORD2
50+
getAccelerationX KEYWORD2
51+
getAccelerationY KEYWORD2
52+
getAccelerationZ KEYWORD2
53+
getAngularVelocity KEYWORD2
54+
getAngularVelocityX KEYWORD2
55+
getAngularVelocityY KEYWORD2
56+
getAngularVelocityZ KEYWORD2
57+
58+
getMagneticField KEYWORD2
59+
getMagneticFieldX KEYWORD2
60+
getMagneticFieldY KEYWORD2
61+
getMagneticFieldZ KEYWORD2
62+
63+
beginFrequencyGeneratorData KEYWORD2
64+
updateFrequencyGeneratorData KEYWORD2
65+
getFrequency1 KEYWORD2
66+
getFrequency2 KEYWORD2
67+
getPhase1 KEYWORD2
68+
getPhase2 KEYWORD2
69+
getRange1 KEYWORD2
70+
getRange2 KEYWORD2
71+
72+
#######################################
73+
# Constants
74+
#######################################
75+
76+
INPUTA_PIN LITERAL1
77+
INPUTB_PIN LITERAL1
78+
79+
INT_APDS9960 LITERAL1
80+
81+
SHUNT_MICRO_OHM LITERAL1
82+
MAXIMUM_AMPS LITERAL1
83+
84+
RESISTANCE_PIN LITERAL1
85+
RESISTOR_AUX LITERAL1
86+
REF_VOLTAGE LITERAL1
87+
RESISTANCE_CALIBRATION_HIGH LITERAL1
88+
RESISTANCE_CALIBRATION_LOW LITERAL1
89+
90+
G_EARTH LITERAL1
91+
92+
BME688_CS LITERAL1
93+
94+
ERR_BEGIN_APDS LITERAL1
95+
ERR_BEGIN_INA LITERAL1
96+
ERR_BEGIN_IMU LITERAL1
97+
ERR_BEGIN_BME LITERAL1
98+
ERR_BEGIN_RESISTANCE LITERAL1
99+
ERR_BEGIN_FUNCTION_GENERATOR_CONTROLLER LITERAL1
100+
101+
ROUND_ROBIN_DISABLED LITERAL1
102+
ROUND_ROBIN_ENABLED LITERAL1
103+
104+
START_AUXILIARY_THREADS LITERAL1
105+
NO_AUXILIARY_THREADS LITERAL1

library.properties

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ name=Arduino_ScienceKitCarrier
22
version=0.1.0
33
author=Arduino, Giovanni di Dio Bruno
44
maintainer=Arduino <info@arduino.cc>
5-
sentence=Library and firmware for Arduino Science Kit r3
6-
paragraph=
7-
category=Sensor
5+
sentence=Library and firmware for Arduino Science Kit R3
6+
paragraph=This library can be used to flash the Arduino Science Kit R3 and hack it.
7+
category=Communication
88
url=https://github.com/gbr1/Arduino_ScienceKitCarrier
9-
architectures=*
10-
includes=Arduino_ScienceKitCarrier.h
9+
architectures=mbed,mbed_nano
10+
includes=Arduino_ScienceKitCarrier.h
11+
depends=Arduino_APDS9960,ArduinoBLE,WiFiNINA,INA2xx,Arduino_BMI270_BMM150,BSEC Software Library

0 commit comments

Comments
 (0)