feat: sync arduino source board configurations
This commit is contained in:
53
mixly/boards/default_src/arduino_avr/blocks/pinout.js
Normal file
53
mixly/boards/default_src/arduino_avr/blocks/pinout.js
Normal file
@@ -0,0 +1,53 @@
|
||||
import * as Blockly from 'blockly/core';
|
||||
|
||||
const PINOUT_HUE = '#555555';
|
||||
|
||||
export const uno_pin = {
|
||||
init: function () {
|
||||
this.appendDummyInput()
|
||||
.appendField(new Blockly.FieldImage(require('../media/boards/Uno.png'), 515, 372, '*'));
|
||||
this.setColour(PINOUT_HUE);
|
||||
this.setTooltip();
|
||||
this.setHelpUrl();
|
||||
}
|
||||
};
|
||||
|
||||
export const nano_pin = {
|
||||
init: function () {
|
||||
this.appendDummyInput()
|
||||
.appendField(new Blockly.FieldImage(require('../media/boards/Nano.png'), 515, 368, '*'));
|
||||
this.setColour(PINOUT_HUE);
|
||||
this.setTooltip();
|
||||
this.setHelpUrl();
|
||||
}
|
||||
};
|
||||
|
||||
export const mega_pin = {
|
||||
init: function () {
|
||||
this.appendDummyInput()
|
||||
.appendField(new Blockly.FieldImage(require('../media/boards/Mega.png'), 515, 736, '*'));
|
||||
this.setColour(PINOUT_HUE);
|
||||
this.setTooltip();
|
||||
this.setHelpUrl();
|
||||
}
|
||||
};
|
||||
|
||||
export const promini_pin = {
|
||||
init: function () {
|
||||
this.appendDummyInput()
|
||||
.appendField(new Blockly.FieldImage(require('../media/boards/ProMini.png'), 515, 371, '*'));
|
||||
this.setColour(PINOUT_HUE);
|
||||
this.setTooltip();
|
||||
this.setHelpUrl();
|
||||
}
|
||||
};
|
||||
|
||||
export const leonardo_pin = {
|
||||
init: function () {
|
||||
this.appendDummyInput()
|
||||
.appendField(new Blockly.FieldImage(require('../media/boards/Leonardo.png'), 515, 371, '*'));
|
||||
this.setColour(PINOUT_HUE);
|
||||
this.setTooltip();
|
||||
this.setHelpUrl();
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user