Update: 更新arduino板卡
This commit is contained in:
23
boards/default_src/arduino_esp8266/blocks/tools.js
Normal file
23
boards/default_src/arduino_esp8266/blocks/tools.js
Normal file
@@ -0,0 +1,23 @@
|
||||
import * as Blockly from 'blockly/core';
|
||||
|
||||
const TOOLS_HUE = "#555555";
|
||||
|
||||
export const esp8266_pin = {
|
||||
init: function () {
|
||||
this.appendDummyInput()
|
||||
.appendField(new Blockly.FieldImage(require('../media/ESP8266-NodeMCU.png'), 525, 346, "*"));
|
||||
this.setColour(TOOLS_HUE);
|
||||
this.setTooltip();
|
||||
this.setHelpUrl();
|
||||
}
|
||||
};
|
||||
|
||||
export const wemos_d1_mini_pin = {
|
||||
init: function () {
|
||||
this.appendDummyInput()
|
||||
.appendField(new Blockly.FieldImage(require('../media/ESP8266-WeMos-D1-Mini.png'), 525, 264, "*"));
|
||||
this.setColour(TOOLS_HUE);
|
||||
this.setTooltip();
|
||||
this.setHelpUrl();
|
||||
}
|
||||
};
|
||||
@@ -1,6 +1,8 @@
|
||||
import ArduinoESP8266Pins from './pins/pins';
|
||||
import * as ArduinoESP8266EthernetBlocks from './blocks/ethernet';
|
||||
import * as ArduinoESP8266ToolsBlocks from './blocks/tools';
|
||||
import * as ArduinoESP8266EthernetGenerators from './generators/ethernet';
|
||||
import * as ArduinoESP8266ToolsGenerators from './generators/tools';
|
||||
|
||||
import ArduinoESP8266ZhHans from './language/zh-hans';
|
||||
import ArduinoESP8266ZhHant from './language/zh-hant';
|
||||
@@ -9,7 +11,9 @@ import ArduinoESP8266En from './language/en';
|
||||
export {
|
||||
ArduinoESP8266Pins,
|
||||
ArduinoESP8266EthernetBlocks,
|
||||
ArduinoESP8266ToolsBlocks,
|
||||
ArduinoESP8266EthernetGenerators,
|
||||
ArduinoESP8266ToolsGenerators,
|
||||
ArduinoESP8266ZhHans,
|
||||
ArduinoESP8266ZhHant,
|
||||
ArduinoESP8266En
|
||||
|
||||
5
boards/default_src/arduino_esp8266/generators/tools.js
Normal file
5
boards/default_src/arduino_esp8266/generators/tools.js
Normal file
@@ -0,0 +1,5 @@
|
||||
export const esp8266_pin = function () {
|
||||
return '';
|
||||
}
|
||||
|
||||
export const wemos_d1_mini_pin = esp8266_pin;
|
||||
@@ -55,7 +55,9 @@ import {
|
||||
import {
|
||||
ArduinoESP8266Pins,
|
||||
ArduinoESP8266EthernetBlocks,
|
||||
ArduinoESP8266ToolsBlocks,
|
||||
ArduinoESP8266EthernetGenerators,
|
||||
ArduinoESP8266ToolsGenerators,
|
||||
ArduinoESP8266ZhHans,
|
||||
ArduinoESP8266ZhHant,
|
||||
ArduinoESP8266En
|
||||
@@ -104,7 +106,8 @@ Object.assign(
|
||||
ArduinoAVRTextBlocks,
|
||||
ArduinoAVRToolsBlocks,
|
||||
ArduinoAVRVariablesBlocks,
|
||||
ArduinoESP8266EthernetBlocks
|
||||
ArduinoESP8266EthernetBlocks,
|
||||
ArduinoESP8266ToolsBlocks
|
||||
);
|
||||
|
||||
Object.assign(
|
||||
@@ -130,5 +133,6 @@ Object.assign(
|
||||
ArduinoAVRTextGenerators,
|
||||
ArduinoAVRToolsGenerators,
|
||||
ArduinoAVRVariablesGenerators,
|
||||
ArduinoESP8266EthernetGenerators
|
||||
ArduinoESP8266EthernetGenerators,
|
||||
ArduinoESP8266ToolsGenerators
|
||||
);
|
||||
BIN
boards/default_src/arduino_esp8266/media/ESP8266-NodeMCU.png
Normal file
BIN
boards/default_src/arduino_esp8266/media/ESP8266-NodeMCU.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 45 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 30 KiB |
@@ -1,9 +1,10 @@
|
||||
{
|
||||
"name": "@mixly/arduino-esp8266",
|
||||
"version": "1.2.0",
|
||||
"version": "1.3.0",
|
||||
"description": "适用于mixly的arduino esp8266模块",
|
||||
"scripts": {
|
||||
"build:dev": "webpack --config=webpack.dev.js",
|
||||
"build:prod": "webpack --config=webpack.prod.js",
|
||||
"publish:board": "npm publish --registry https://registry.npmjs.org/"
|
||||
},
|
||||
"main": "./export.js",
|
||||
|
||||
Reference in New Issue
Block a user