# ESP Flasher Component A Vue 3 component for flashing ESP32 series microcontrollers directly from the browser using the Web Serial API. This component is based on `esptools-js`. ## Features - Supports ESP32, ESP32-C3, ESP32-S3, and more. - Built-in Xterm.js terminal for progress and logging. - Support for multiple firmware image options. - Dark mode support via prop. ## Usage ### Props | Prop | Type | Description | | :--- | :--- | :--- | | `imageOptions` | `ImageOption[]` | An array of firmware images available for flashing. | | `isDark` | `boolean` | (Optional) Toggle dark mode for the terminal. | #### ImageOption Object ```typescript type ImageOption = { value: string; // Display name of the firmware link: string; // Path/URL to the .bin file target: string; // Target chip (e.g., 'ESP32-C3', 'ESP32', 'ESP32-S3') }; ``` ### Example ```vue ``` ## Dependencies - `vue` - `xterm` - `xterm-addon-fit` - `crypto-js` ## Credits This tool uses a modified version of [esptools-js](https://github.com/espressif/esptools-js).