update Board definition
This commit is contained in:
parent
4565b4e482
commit
562a7b53e2
@ -15,8 +15,6 @@
|
||||
"@fortawesome/react-fontawesome": "^0.1.11",
|
||||
"@material-ui/core": "^4.11.0",
|
||||
"@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/react": "^12.1.2",
|
||||
"@testing-library/user-event": "^7.2.1",
|
||||
|
@ -114,10 +114,8 @@ Blockly.Blocks["sensebox_sensor_sds011"] = {
|
||||
)
|
||||
.appendField(Blockly.Msg.senseBox_sds011_dimension)
|
||||
.appendField(
|
||||
new Blockly.FieldDropdown([
|
||||
[Blockly.Msg.senseBox_sds011_serial1, "Serial1"],
|
||||
[Blockly.Msg.senseBox_sds011_serial2, "Serial2"],
|
||||
]),
|
||||
new Blockly.FieldDropdown(
|
||||
selectedBoard().serial),
|
||||
"SERIAL"
|
||||
);
|
||||
this.setOutput(true, Types.DECIMAL.typeName);
|
||||
|
@ -131,51 +131,38 @@ const sensebox_mcu = {
|
||||
parseKey: "_*_",
|
||||
};
|
||||
|
||||
//Just for test purposes
|
||||
//senseBox MCU mini
|
||||
const sensebox_mini = {
|
||||
description: "senseBox Mini",
|
||||
compilerFlag: "arduino:samd",
|
||||
digitalPins: [
|
||||
["Test", "1"],
|
||||
["A2", "2"],
|
||||
["B3", "3"],
|
||||
["B4", "4"],
|
||||
["C5", "5"],
|
||||
["C6", "6"],
|
||||
["IO1", "1"],
|
||||
["IO2", "2"],
|
||||
],
|
||||
digitalPinsLED: [
|
||||
["BUILTIN_1", "7"],
|
||||
["BUILTIN_2", "8"],
|
||||
["A1", "1"],
|
||||
["A2", "2"],
|
||||
["B3", "3"],
|
||||
["B4", "4"],
|
||||
["C5", "5"],
|
||||
["C6", "6"],
|
||||
["IO1", "1"],
|
||||
["IO2", "2"],
|
||||
],
|
||||
digitalPinsRGB: [
|
||||
["on Board", "7"],
|
||||
["B", "8"],
|
||||
["C", "1"],
|
||||
["IO1", "8"],
|
||||
["IO2", "1"],
|
||||
],
|
||||
digitalPinsButton: [
|
||||
["on Board", "0"],
|
||||
["A1", "1"],
|
||||
["A2", "2"],
|
||||
["IO1", "1"],
|
||||
["IO2", "2"],
|
||||
|
||||
],
|
||||
pwmPins: [
|
||||
["A1", "1"],
|
||||
["A2", "2"],
|
||||
["B3", "3"],
|
||||
["B4", "4"],
|
||||
["C5", "5"],
|
||||
["C6", "6"],
|
||||
["IO1", "1"],
|
||||
["IO2", "2"],
|
||||
],
|
||||
serial: [
|
||||
["serial", "SerialUSB"],
|
||||
["serial_1", "Serial1"],
|
||||
["serial_2", "Serial2"],
|
||||
],
|
||||
serialPins: {
|
||||
SerialUSB: [
|
||||
|
11
src/index.js
11
src/index.js
@ -3,18 +3,7 @@ import ReactDOM from "react-dom";
|
||||
import "./index.css";
|
||||
import App from "./App";
|
||||
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(
|
||||
<React.StrictMode>
|
||||
|
Loading…
x
Reference in New Issue
Block a user