parent
3a6fd07647
commit
50ffad0ad2
@ -429,11 +429,12 @@ Blockly.Arduino.sensebox_scd30 = function () {
|
|||||||
"#include <SparkFun_SCD30_Arduino_Library.h> // http://librarymanager/All#SparkFun_SCD30_Arduino_Library";
|
"#include <SparkFun_SCD30_Arduino_Library.h> // http://librarymanager/All#SparkFun_SCD30_Arduino_Library";
|
||||||
Blockly.Arduino.definitions_["SCD30"] = "SCD30 airSensor;";
|
Blockly.Arduino.definitions_["SCD30"] = "SCD30 airSensor;";
|
||||||
Blockly.Arduino.setupCode_["init_scd30"] = ` Wire.begin();
|
Blockly.Arduino.setupCode_["init_scd30"] = ` Wire.begin();
|
||||||
if (airSensor.begin() == false)
|
if (airSensor.begin() == false)
|
||||||
{
|
{
|
||||||
while (1)
|
while (1)
|
||||||
;
|
;
|
||||||
}`;
|
}`;
|
||||||
|
Blockly.Arduino.setupCode_["scd30_staleData"] = "airSensor.useStaleData(true);";
|
||||||
var code = "";
|
var code = "";
|
||||||
switch (dropdown) {
|
switch (dropdown) {
|
||||||
case "temperature":
|
case "temperature":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user