Skip to content

Commit

Permalink
Merge remote-tracking branch 'entrylabs/develop-hw' into develop-hw
Browse files Browse the repository at this point in the history
  • Loading branch information
maru-shlee committed Oct 22, 2024
2 parents deee0d0 + cdb83f0 commit eae4129
Show file tree
Hide file tree
Showing 24 changed files with 20,693 additions and 2,955 deletions.
4 changes: 2 additions & 2 deletions extern/lang/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -1124,8 +1124,8 @@ Lang.Blocks = {
EXPANSION_WEATHER_finedust: 'concentration of fine dust(㎍)',
ardublock_motor_forward: 'Forward',
ardublock_motor_backward: 'Backward',
ARDUINO_on: 'On',
ARDUINO_off: 'Off',
ARDUINO_on: 'Turn on',
ARDUINO_off: 'Turn off',
EXPANSION_FESTIVAL_title: 'Title',
EXPANSION_FESTIVAL_area: 'area',
EXPANSION_FESTIVAL_start_date: 'start date',
Expand Down
Binary file modified images/hw_lite/arduinolite.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/hw_lite/robotis_robotai_lite.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/hw_lite/whalesbotlite.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
40 changes: 39 additions & 1 deletion src/playground/blocks/hardware/block_altino_lite.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Entry.AltinoLite = {
dot6: 0,
dot7: 0,
dot8: 0,
ir: 0
},
setZero: function() {
var portMap = Entry.AltinoLite.PORT_MAP;
Expand Down Expand Up @@ -68,6 +69,7 @@ Entry.AltinoLite.blockMenuBlocks = [
'altino_lite_dot_display_hex',
'altino_lite_dot_display_matrix_on',
'altino_lite_dot_display_matrix_off',
'altino_lite_ir_reset',
];

Entry.AltinoLite.setLanguage = function() {
Expand Down Expand Up @@ -150,6 +152,7 @@ Entry.AltinoLite.setLanguage = function() {
altino_lite_sound: '소리 %1 %2 %3',
altino_lite_steering_hex: '조향 %1%2',
altino_lite_steering: '조향 %1°%2',
altino_lite_ir_reset: '알티노 라이트 IR 센서 초기화',
},
},
en: {
Expand Down Expand Up @@ -230,6 +233,7 @@ Entry.AltinoLite.setLanguage = function() {
altino_lite_sound: 'Sound %1 %2 %3',
altino_lite_steering_hex: 'Steering %1%2',
altino_lite_steering: 'Steering %1°%2',
altino_lite_ir_reset: 'Reset Altino lite IR Sensor',
},
},
};
Expand Down Expand Up @@ -562,7 +566,7 @@ Entry.AltinoLite.getBlocks = function() {
skeleton: 'basic',
statements: [],
params: [
{
{
type: 'Dropdown',
options: [
['1-' + Lang.Blocks.altino_lite_sound_oct, '1'],
Expand Down Expand Up @@ -1385,6 +1389,40 @@ Entry.AltinoLite.getBlocks = function() {
},
syntax: { js: [], py: ['AltinoLite.dot_display_hex(%1, %2, %3, %4, %5, %6, %7, %8)'] },
},
altino_lite_ir_reset: {
color: EntryStatic.colorSet.block.default.HARDWARE,
outerLine: EntryStatic.colorSet.block.darken.HARDWARE,
skeleton: 'basic',
statements: [],
params: [
{
type: 'Indicator',
img: 'block_icon/hardware_icon.svg',
size: 12,
},
],
events: {},
def: {
params: [
null,
],
type: 'altino_lite_ir_reset',
},
paramsKeyMap: {
DEVICE : 0,
},
class: 'altino_lite_output',
isNotFor: ['altino_lite'],
func: function(sprite, script) {
var sq = Entry.hw.sendQueue;

// sq.rightWheel = 300;//script.getNumberValue('rightWheel');
// sq.leftWheel = 300;//script.getNumberValue('leftWheel');
sq.ir = 6;
return script.callReturn();
},
syntax: { js: [], py: ['AltinoLite.ir_reset'] },
},
//endregion Altino 알티노
};
};
Expand Down
Loading

0 comments on commit eae4129

Please sign in to comment.