1. 06 Dec, 2019 7 commits
  2. 05 Dec, 2019 2 commits
  3. 25 Nov, 2019 10 commits
  4. 22 Nov, 2019 4 commits
    • fuchsi*'s avatar
      chore(preload): Change preload app author to 'card10 contributors' · fbeb7766
      fuchsi* authored and Rahix's avatar Rahix committed
    • Rahix's avatar
      Merge 'wiki: bluetooth: add NimBLE page' · f5b8e643
      Rahix authored
      Added a page to the wiki which describes how to setup NimBLE on the ESP32.
      See merge request card10/firmware!358
    • coon's avatar
      docs(BLE): Add NimBLE page · bcfa458f
      coon authored and Rahix's avatar Rahix committed
    • Rahix's avatar
      Merge 'faulty unsigned comparisons' · cac0bcf3
      Rahix authored
      Fix faulty error handling due to always-false unsigned comparisons.
      `-Wtype-limits` revealed three errors in the firmware:
          ../pycardium/modules/sys_leds.c: In function 'mp_leds_get_rocket':
          ../pycardium/modules/sys_leds.c:207:10: warning: comparison is
                      always false due to limited range of data type [-Wtype-limits]
            207 |  if (ret == -EINVAL) {
                |          ^~
          ../pycardium/mphalport.c: In function 'mp_hal_set_interrupt_char':
          ../pycardium/mphalport.c:115:8: warning: comparison is always true
                      due to limited range of data type [-Wtype-limits]
            115 |  if (c != -1) {
                |        ^~
          ../epicardium/modules/bhi.c: In function 'epic_bhi160_enable_sensor':
          ../epicardium/modules/bhi.c:134:12: warning: comparison is always
                      false due to limited range of data type [-Wtype-limits]
            134 |  if (vs_id < 0) {
                |            ^
          ../epicardium/modules/bhi.c: In function 'epic_bhi160_disable_sensor':
          ../epicardium/modules/bhi.c:191:12: warning: comparison is always
                      false due to limited range of data type [-Wtype-limits]
            191 |  if (vs_id < 0) {
                |            ^
      Note that on the target platform `char` and `enum`s are unsigned.  The
      compiler has probably removed all of these `if`s so far because the
      conditions were determined to always be false.
      See merge request card10/firmware!357
  5. 19 Nov, 2019 1 commit
  6. 13 Nov, 2019 7 commits
    • Rahix's avatar
      chore: Update CHANGELOG · 87bccda8
      Rahix authored
    • Rahix's avatar
      feat(utime): Implement ticks_ms() and ticks_us() · 8926fd02
      Rahix authored
      Implement the hal functions necessary for utime.ticks_ms() and
      utime.ticks_us().  This enables much more accurate measurements of time
      taken in Pycardium (useful for profiling).
      Please note that the tick counter will reset whenever a new app is
      Signed-off-by: Rahix's avatarRahix <rahix@rahix.de>
    • Rahix's avatar
      fix(menu): Fix UX issues in USB-Mode · 020050f4
      Rahix authored
      Add a short delay after opening USB-Mode to prevent immediate exit which
      happened when pressing the select-button for a very short time.
      Also exit the menu-app after exiting USB-Mode to force a reload and thus
      immediately display changes in the apps/ folder.
      Signed-off-by: Rahix's avatarRahix <rahix@rahix.de>
    • Rahix's avatar
      fix(pmic): Turn on display before printing · 30ae2751
      Rahix authored
      Fix the display backlight staying off while the pmic task prints its
      messages (power-off/sleep & battery critial).
      Signed-off-by: Rahix's avatarRahix <rahix@rahix.de>
    • fgross's avatar
      feat(pycardium): Enable framebuf module · c27f3fcc
      fgross authored and Rahix's avatar Rahix committed
      The framebuf module provides a framebuffer implementation running purely
      in MicroPython which will increase drawing performance by a lot.  A
      follow-up change will be necessary to connect this framebuffer
      implementation to the display API.
      This commit is implements a part of MR !211.
    • Rahix's avatar
      Merge 'Implement proper delays for Pycardium' · 3c1645ce
      Rahix authored
      Closes #177
      See merge request card10/firmware!324
    • Rahix's avatar
      fix(pycardium): Fix delay implementation · dbeec980
      Rahix authored
      Rewrite the delay implementation to be more accurate and properly handle
      incoming MicroPython interrupts (See issue #177).
      For this, the delay is split into two functions:
      - systick_delay_precise(): Delay with microsecond accuracy for delays
            less than 1 ms.
      - systick_delay_sleep(): Sleep for a potentially very long time, using
            WFI to put the CPU to sleep.  Whenever the CPU wakes up, this
            function will poll the MicroPython scheduler so it can execute
            pending interrupts.
      Ontop, this implementation allows for a future, fast, tick-based
      monotonic time implementation (e.g. mp_hal_ticks_ms).
      Signed-off-by: Rahix's avatarRahix <rahix@rahix.de>
  7. 12 Nov, 2019 1 commit
  8. 11 Nov, 2019 1 commit
  9. 10 Nov, 2019 7 commits