You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: BLOCKS.md
+142-6Lines changed: 142 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
# Blockly Blocks Documentation
2
2
3
-
**Generated:** 2026-03-06
3
+
**Generated:** 2026-03-07
4
4
5
-
This documentation covers all 86 blocks used in the Megahub project, including 38 custom blocks and 48 standard Blockly blocks with custom colors.
5
+
This documentation covers all 94 blocks used in the Megahub project, including 46 custom blocks and 48 standard Blockly blocks with custom colors.
6
6
7
7
Block images are rendered as high-quality PNG screenshots to accurately show all block features including text inputs, checkboxes, and statement blocks.
8
8
@@ -20,7 +20,7 @@ Block images are rendered as high-quality PNG screenshots to accurately show all
**Description:** Hysteresis (Schmitt trigger) filter. Output switches to 1 when value exceeds high threshold, and back to 0 when value drops below low threshold. Eliminates chatter near a threshold. Returns 0 or 1.
**Description:** Debounce filter for buttons and digital sensors. Output only changes when the input has been stable for the specified number of milliseconds. Returns 0 or 1. Typical stable time: 20–50 ms.
**Description:** Rate limiter (slew rate). Limits how fast the output value can change per call to avoid sudden jumps. On first call returns target immediately. The effective rate in units/second depends on how often the block is called.
**Description:** Kalman filter. Weighs measurements by noise characteristics for principled smoothing. Process noise Q: how much the true value drifts per call. Measure noise R: sensor variance. Starting values: color sensor Q=0.01 R=10, IMU Q=0.1 R=1.0.
Copy file name to clipboardExpand all lines: README.md
+21Lines changed: 21 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -96,6 +96,27 @@ pio device monitor
96
96
```
97
97
Default baud rate: **115200**.
98
98
99
+
### Testing the IDE Without Hardware
100
+
101
+
You can run the Megahub IDE locally in your browser without a physical board. This is useful for exploring the interface, building Blockly programs, and inspecting generated Lua code — no firmware flashing required.
102
+
103
+
```bash
104
+
cd frontend
105
+
npm install
106
+
npm run dev
107
+
```
108
+
109
+
Vite starts a local development server (typically at `http://localhost:5173`). Open that URL in any browser.
110
+
111
+
**What works in dev mode:**
112
+
- Full IDE UI — project management, Blockly workspace, toolbox
113
+
- Blockly drag-and-drop programming and real-time Lua code generation
114
+
- Lua Preview panel — inspect the generated code for any program
115
+
116
+
**What does not work:**
117
+
- Connecting to a device (no BLE in dev mode)
118
+
- Executing or stopping programs — the **Execute** button requires a live connection to the firmware
0 commit comments