A web-based visual programming interface for controlling Arduino LEDs using Blockly and SvelteKit.
- Visual block-based programming interface
- Custom blocks for LED control
- Real-time Python code generation
- Arduino integration via PyFirmata
- Intuitive drag-and-drop interface
- Node.js (v14 or higher)
- npm or yarn
- Arduino board
- Python with PyFirmata installed
- Clone the repository:
git clone https://github.com/uv547756/Blockly_Arduino.git 
- Install Dependencies:
cd Blockly_Arduino npm install
- Start the server
npm run dev 
- Open http://localhost:5173 in your browser
src/
├── lib/
│   ├── blocks/
│   │   └── ledBlocks.js
│   ├── generators/
│   │   └── pythonGenerators.js
│   ├── config/
│   │   └── toolbox.js
│   └── utils/
│       └── codeGenerator.js
├── routes/
│   └── +page.svelte
└── styles/
    └── global.css
 1.Connect your Arduino board
 2.Use the Blockly interface to create your LED control program
 3.Click "Generate Code" to see the Python code
 4.Run the generated code to control your Arduino
MIT