Skip to content

v2.1.0-beta.1

Compare
Choose a tag to compare
@microbit-carlos microbit-carlos released this 30 Aug 18:54
· 77 commits to master since this release
8970afb

GitHub milestone: https://github.com/microbit-foundation/micropython-microbit-v2/milestone/4?closed=1

  • Add log module for data logging (bbcmicrobit/micropython#720)
  • Add audio.SoundEffect class to create custom sounds (#103, bbcmicrobit/micropython#753)
  • Add initial version of the power module for power management (#60, bbcmicrobit/micropython#754)
  • Add microbit.run_every function/decorator, to schedule functions at a set interval (bbcmicrobit/micropython#720)
  • Add microbit.scale() function to scale values between different ranges (#102, bbcmicrobit/micropython#762)
  • Add microbit.accelerometer.get_strength() method (#81)
  • Add microbit.accelerometer.set_range() method (bbcmicrobit/micropython#264)
  • Add microbit.Image.SCISSORS image (bbcmicrobit/micropython#602)
  • Allow value of 2 to be set for radio.config() data_rate parameter, to select the 250 Kbit rate for compatibility for V1 (#87)
  • Importing the radio module now turns on the radio automatically (#97)
  • A couple of sound differences with V1 fixed via CODAL update (#47, #67)
  • Fix shift_down(), shift_left(), shift_right(), shift_up(), methods from microbit.Image to retain the original image width/height (bbcmicrobit/micropython#718)
  • Fix issues where the first return value of microbit.microphone.current_event() could be None instead of the "quiet" sound event (#86)
  • Fix filesystem issue where it wouldn't sweep when there was just a few free chunks (#105)
  • Lock scheduler when starting audio pipeline to avoid scheduler starting a fetch at the same time (#47)
  • Update MicroPython from v1.6 to v1.18: micropython/micropython@1e2f0d2...v1.18
  • Update CODAL from v0.2.31 to v0.2.40 tag.
    • codal-microbit-v2:
      • stabilize I2C communications between NRF52 and KL27 DAPLINK chip when
        running on battery
      • improvements and optimizations to MicroBitLog
      • ensure mutual exclusion for all MicroBitLog APIs
      • introduce workaround for back-to-back I2C Flash transactions using KL27
        DAPLink firmware
      • move to runtime configuration of I2C DAPLink interface
      • update MicroBitLog serial mirroring to emit CRLF
      • option for Nordic Default UART characteristics
      • BLE: make Device Info Service Model Number String sensitive to board ID
      • fix typo in MicroBitLog units
      • increase resolution of SoundOutputPin playback; this reduces the period
        of generated sound from 50ms to 5ms, providing better approximation to
        micro:bit v1 PWM based behaviour
      • update to DAPLink I2C Protocol v2
      • implement fixed size journal and metadata regions
      • unify available off-chip flash
      • introduce delay following FLASH_ERASE request
      • remove verbose debug in source/MicroBitUSBFlashManager.cpp
      • align DAPLink v1/v2 workarounds
      • add MicroBitPowerManager::readInterfaceRequest()
      • change variable sampleRate to float to avoid rounding errors when
        generating frequencies
      • improve audio input pipeline for microphone support
      • add per-channel volume control methods
      • increase DAPLink I2C wait for data to be ready timeout
      • add missing end frequency parameter to the log generator function
      • add polyphonic real-time synthesizer
      • fix MicroBitBLEManager support for MicroBitPowerManager::deepSleep
      • add support for the BUSY flag on the KL27
      • add the DAPLink version to the data logging HTM page
      • add MicroBitLog::readData
    • codal-core:
      • optimize and fix logical error in inline ManagedString != method
      • remove sample endpointRequest() impl
      • don't crash when not initialized
      • add REAL_TIME_FUNC attribute
      • put REAL_TIME_FUNC on functions that disable IRQs or are used from ISRs
      • use new FORCE_RAM_FUNC attribute
      • shorten IRQ-disabled period in DMESG
      • fix warnings
      • mark more functions real-time
      • FORCE_RAM_FUNC now correctly uses .data.ramfuncs rather than plain .data,
        to work with newer gcc versions
    • codal-nrf52
      • introduce transaction timeout for NRF52I2C
      • add case for 31250 in switch(baudrate)
    • codal-microbit-nrf5sdk
      • no changes

For a full list of commits since the last release: v2.0.0...v2.1.0-beta.1