Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: bellard/mquickjs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: conoro/mquickjs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 4 commits
  • 24 files changed
  • 1 contributor

Commits on Dec 26, 2025

  1. Add ESP32 support for ESP32-S3, ESP32-C6, and ESP32-H2

    ESP-IDF Integration:
    - Add CMakeLists.txt and main/ component for ESP-IDF builds
    - Add sdkconfig.defaults for each supported target (S3, C6, H2)
    - Add Kconfig.projbuild for menuconfig integration
    
    New Features:
    - Interactive REPL over USB serial console
    - Multi-line input with bracket/brace counting
    - WS2812 RGB LED control via led.init()/rgb()/on()/off()
    - Configurable JS heap size per target
    
    Code Quality Improvements:
    - Replace magic numbers with named constants (REPL_BUF_SIZE, etc.)
    - Fix 64-bit format specifiers (PRIu32, PRIx32) for portability
    - Remove code duplication in REPL loop
    - Add CONFIG_LED conditional compilation for LED support
    - Guard likely/unlikely macros to prevent redefinition
    
    Build System:
    - Add 'make esp32' target for generating 32-bit headers
    - Add mqjs_led.o to host build with stub implementations
    - Add comprehensive .gitignore for build artifacts
    
    Documentation:
    - Extensive ESP32 build instructions in README.md
    - Troubleshooting guide for common issues
    - USB connection explanations for different targets
    conoro committed Dec 26, 2025
    Configuration menu
    Copy the full SHA
    99de8f9 View commit details
    Browse the repository at this point in the history

Commits on Dec 27, 2025

  1. Add GPIO control library for ESP32 devices

    - Implement mqjs_gpio.c/h with GPIO pin control API
    - Support for input/output modes with pull-up/pull-down resistors
    - JavaScript API: gpio.init(), gpio.write(), gpio.read(), gpio.setPull()
    - Compatible with ESP32-S3, ESP32-C6, and ESP32-H2
    - Follows same pattern as LED library with ESP_PLATFORM conditionals
    - Add example blink_led.js script for simple LED control
    - Update build system (CMakeLists.txt, Makefile) to include GPIO support
    - Add comprehensive documentation in README-ESP32.md and BUILD_ESP32H2.md
    conoro committed Dec 27, 2025
    Configuration menu
    Copy the full SHA
    f6ccffa View commit details
    Browse the repository at this point in the history

Commits on Dec 29, 2025

  1. ESP32-H2 changes

    conoro committed Dec 29, 2025
    Configuration menu
    Copy the full SHA
    0c3d8e9 View commit details
    Browse the repository at this point in the history
  2. Merge remote-tracking branch 'upstream/main'

    # Conflicts:
    #	mquickjs.c
    conoro committed Dec 29, 2025
    Configuration menu
    Copy the full SHA
    92e70c2 View commit details
    Browse the repository at this point in the history
Loading