update Board definition
This commit is contained in:
parent
4565b4e482
commit
562a7b53e2
@ -15,8 +15,6 @@
|
|||||||
"@fortawesome/react-fontawesome": "^0.1.11",
|
"@fortawesome/react-fontawesome": "^0.1.11",
|
||||||
"@material-ui/core": "^4.11.0",
|
"@material-ui/core": "^4.11.0",
|
||||||
"@monaco-editor/react": "^4.3.1",
|
"@monaco-editor/react": "^4.3.1",
|
||||||
"@sentry/react": "^6.0.0",
|
|
||||||
"@sentry/tracing": "^6.0.0",
|
|
||||||
"@testing-library/jest-dom": "^5.16.1",
|
"@testing-library/jest-dom": "^5.16.1",
|
||||||
"@testing-library/react": "^12.1.2",
|
"@testing-library/react": "^12.1.2",
|
||||||
"@testing-library/user-event": "^7.2.1",
|
"@testing-library/user-event": "^7.2.1",
|
||||||
|
@ -114,10 +114,8 @@ Blockly.Blocks["sensebox_sensor_sds011"] = {
|
|||||||
)
|
)
|
||||||
.appendField(Blockly.Msg.senseBox_sds011_dimension)
|
.appendField(Blockly.Msg.senseBox_sds011_dimension)
|
||||||
.appendField(
|
.appendField(
|
||||||
new Blockly.FieldDropdown([
|
new Blockly.FieldDropdown(
|
||||||
[Blockly.Msg.senseBox_sds011_serial1, "Serial1"],
|
selectedBoard().serial),
|
||||||
[Blockly.Msg.senseBox_sds011_serial2, "Serial2"],
|
|
||||||
]),
|
|
||||||
"SERIAL"
|
"SERIAL"
|
||||||
);
|
);
|
||||||
this.setOutput(true, Types.DECIMAL.typeName);
|
this.setOutput(true, Types.DECIMAL.typeName);
|
||||||
|
@ -131,51 +131,38 @@ const sensebox_mcu = {
|
|||||||
parseKey: "_*_",
|
parseKey: "_*_",
|
||||||
};
|
};
|
||||||
|
|
||||||
//Just for test purposes
|
//senseBox MCU mini
|
||||||
const sensebox_mini = {
|
const sensebox_mini = {
|
||||||
description: "senseBox Mini",
|
description: "senseBox Mini",
|
||||||
compilerFlag: "arduino:samd",
|
compilerFlag: "arduino:samd",
|
||||||
digitalPins: [
|
digitalPins: [
|
||||||
["Test", "1"],
|
["IO1", "1"],
|
||||||
["A2", "2"],
|
["IO2", "2"],
|
||||||
["B3", "3"],
|
|
||||||
["B4", "4"],
|
|
||||||
["C5", "5"],
|
|
||||||
["C6", "6"],
|
|
||||||
],
|
],
|
||||||
digitalPinsLED: [
|
digitalPinsLED: [
|
||||||
["BUILTIN_1", "7"],
|
["BUILTIN_1", "7"],
|
||||||
["BUILTIN_2", "8"],
|
["BUILTIN_2", "8"],
|
||||||
["A1", "1"],
|
["IO1", "1"],
|
||||||
["A2", "2"],
|
["IO2", "2"],
|
||||||
["B3", "3"],
|
|
||||||
["B4", "4"],
|
|
||||||
["C5", "5"],
|
|
||||||
["C6", "6"],
|
|
||||||
],
|
],
|
||||||
digitalPinsRGB: [
|
digitalPinsRGB: [
|
||||||
["on Board", "7"],
|
["on Board", "7"],
|
||||||
["B", "8"],
|
["IO1", "8"],
|
||||||
["C", "1"],
|
["IO2", "1"],
|
||||||
],
|
],
|
||||||
digitalPinsButton: [
|
digitalPinsButton: [
|
||||||
["on Board", "0"],
|
["on Board", "0"],
|
||||||
["A1", "1"],
|
["IO1", "1"],
|
||||||
["A2", "2"],
|
["IO2", "2"],
|
||||||
|
|
||||||
],
|
],
|
||||||
pwmPins: [
|
pwmPins: [
|
||||||
["A1", "1"],
|
["IO1", "1"],
|
||||||
["A2", "2"],
|
["IO2", "2"],
|
||||||
["B3", "3"],
|
|
||||||
["B4", "4"],
|
|
||||||
["C5", "5"],
|
|
||||||
["C6", "6"],
|
|
||||||
],
|
],
|
||||||
serial: [
|
serial: [
|
||||||
["serial", "SerialUSB"],
|
["serial", "SerialUSB"],
|
||||||
["serial_1", "Serial1"],
|
["serial_1", "Serial1"],
|
||||||
["serial_2", "Serial2"],
|
|
||||||
],
|
],
|
||||||
serialPins: {
|
serialPins: {
|
||||||
SerialUSB: [
|
SerialUSB: [
|
||||||
|
11
src/index.js
11
src/index.js
@ -3,18 +3,7 @@ import ReactDOM from "react-dom";
|
|||||||
import "./index.css";
|
import "./index.css";
|
||||||
import App from "./App";
|
import App from "./App";
|
||||||
import * as serviceWorker from "./serviceWorker";
|
import * as serviceWorker from "./serviceWorker";
|
||||||
import * as Sentry from "@sentry/react";
|
|
||||||
import { Integrations } from "@sentry/tracing";
|
|
||||||
|
|
||||||
Sentry.init({
|
|
||||||
dsn: "https://ffe5d54461f64c46b4bed5d77c130d6f@o507523.ingest.sentry.io/5598758",
|
|
||||||
autoSessionTracking: true,
|
|
||||||
integrations: [new Integrations.BrowserTracing()],
|
|
||||||
|
|
||||||
// We recommend adjusting this value in production, or using tracesSampler
|
|
||||||
// for finer control
|
|
||||||
tracesSampleRate: 1.0,
|
|
||||||
});
|
|
||||||
|
|
||||||
ReactDOM.render(
|
ReactDOM.render(
|
||||||
<React.StrictMode>
|
<React.StrictMode>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user