Skip to content
This repository has been archived by the owner on Aug 6, 2024. It is now read-only.

Commit

Permalink
fix: restore accidentally removed blocks (rgb / gesture) (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
rmoesbergen authored Dec 10, 2023
1 parent 9ecc6a7 commit 67232b6
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/state/app.state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class AppState {
'Leaphy Original Extension', 'Leaphy Extra Extension', 'Servo', 'Adafruit GFX Library', 'Adafruit SSD1306', 'Adafruit LSM9DS1 Library', 'Adafruit Unified Sensor'
]
private static leaphyOriginalRobotType = new RobotType('l_original', 'Leaphy Original', 'orig.svg', 'Arduino UNO', 'arduino:avr:uno', 'hex', 'arduino:avr',
AppState.defaultLibraries.concat(['QMC5883LCompass'])
AppState.defaultLibraries.concat(['QMC5883LCompass', 'Arduino_APDS9960'])
);
private static leaphyFlitzRobotType = new RobotType('l_flitz', 'Leaphy Flitz', 'flitz.svg', 'Arduino UNO', 'arduino:avr:uno', 'hex', 'arduino:avr',
AppState.defaultLibraries, true, false
Expand All @@ -34,7 +34,7 @@ export class AppState {
AppState.defaultLibraries.concat(['Leaphy WiFi Extension'])
);
public static genericRobotType = new RobotType('l_code', 'Generic Robot', null, 'Arduino UNO', 'arduino:avr:uno', 'hex', 'arduino:avr',
AppState.defaultLibraries.concat(['QMC5883LCompass'])
AppState.defaultLibraries.concat(['QMC5883LCompass', 'Arduino_APDS9960'])
);
private static leaphyFlitzNanoRobotType = new RobotType('l_flitz_nano', 'Flitz Nano', 'flitz_nano.svg', 'Arduino Nano', 'arduino:avr:nano', 'hex', 'arduino:avr',
AppState.defaultLibraries, true, false
Expand Down
18 changes: 18 additions & 0 deletions src/assets/blockly/leaphy-toolbox.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@
<sep gap="8"></sep>
<block type="leaphy_compass_degrees">
</block>
<sep gap="8"></sep>
<block type="leaphy_i2c_rgb_color">
</block>
<sep gap="8"></sep>
<block type="leaphy_i2c_gesture">
</block>
</category>
<category id="l_flitz" toolboxitemid="l_flitz" name="%{BKY_LEAPHY_FLITZ_CATEGORY}" categorystyle="leaphy_category">
<block type="leaphy_flitz_read_stomach_sensor">
Expand Down Expand Up @@ -163,6 +169,12 @@
<sep gap="8"></sep>
<block type="leaphy_compass_degrees">
</block>
<sep gap="8"></sep>
<block type="leaphy_i2c_rgb_color">
</block>
<sep gap="8"></sep>
<block type="leaphy_i2c_gesture">
</block>
</category>
<category id="l_wifi" toolboxitemid="l_wifi" name="%{BKY_SENSOREN_CATEGORY}" categorystyle="leaphy_category">
</category>
Expand Down Expand Up @@ -728,6 +740,12 @@
<sep gap="8"></sep>
<block type="leaphy_compass_degrees">
</block>
<sep gap="8"></sep>
<block type="leaphy_i2c_rgb_color">
</block>
<sep gap="8"></sep>
<block type="leaphy_i2c_gesture">
</block>
</category>
<category id="l_nano_extra" toolboxitemid="l_extra" name="%{BKY_ACTUATOREN_CATEGORY}" categorystyle="leaphy_category">
<block type="leaphy_original_set_led">
Expand Down

0 comments on commit 67232b6

Please sign in to comment.