Skip to content

0.2.28

Choose a tag to compare

@lovyan03 lovyan03 released this 25 Oct 01:33
· 133 commits to master since this release
368ad60

Board fixes

  • CoreP4X: the IMU X axis was reversed; the accelerometer and gyroscope X axes are inverted in the board mapping. (by @hlym123, #414)
  • External displays (Module Display, Unit OLED / MiniOLED / GLASS / GLASS2 / LCD, Module RCA, Unit RCA): begin() reset and cleared them regardless of cfg.clear_display; they now follow the flag like the internal display. (#416)
  • RX8130 RTC: begin() enabled backup charging (CHGEN) on every board, so ToughC5 charged its CR2032 primary cell. Charging is now on only where VBAT holds something chargeable (Tab5, StamPLC, StopWatch, PaperMono) and is cleared on the other boards, including a bit left set by an earlier firmware. The bit is cleared only when the internal RTC is initialized (not with cfg.internal_rtc = false). Code that constructs RX8130_Class directly gets charging off by default; pass true as the fourth constructor argument for a rechargeable backup. (#418)
  • Tab5: periodic RTC timer IRQs are no longer enabled on the built-in RTC. setTimerIRQ() with a positive period stops any running timer and returns 0, and Power.timerSleep(int seconds) returns without sleeping; use timerSleep(time) or timerSleep(date, time). (#419)
  • RX8130 RTC: begin() and disableIRQ() also stop the periodic timer (the IRQ flags are kept for getIRQstatus()), and setAlarmIRQ() clears the alarm flag before enabling the alarm interrupt. (#419)
  • Power.timerSleep(time) / timerSleep(date, time): return without sleeping when no RTC is available or the RTC driver reports that the alarm could not be set. (#419)

Audio

  • M5Stack Core (internal DAC): a short pop at the start and at the end of each sound. The fade-out was written in whole DAC steps (a staircase of 1-LSB clicks at the default volume), and after about 85 ms of silence I2S and the DAC were stopped, so the next sound stepped the output when they were turned on again. The hold level and the fades now carry the fraction below one DAC step, and I2S keeps running at the zero level for about one second after a sound, so pauses in a melody no longer restart it. (#415)

Requires M5GFX 0.2.35 or later.