Skip to content
Snippets Groups Projects
  1. Jul 20, 2023
    • q3k's avatar
      micropython: fix compat with clang · ec666cf7
      q3k authored
      ec666cf7
    • q3k's avatar
      *: appease clang-tidy · b916089d
      q3k authored
      b916089d
    • q3k's avatar
      micropython: re-implement stat in VfsPosix · 59b15ee9
      q3k authored
      We ripped that out when initially porting VfsPosix to work on ESP32.
      This re-introduces it.
      
      Fixes #10.
      59b15ee9
    • q3k's avatar
      usermodule/badge_link: fix UAF · 76d4bf47
      q3k authored
      We were keeping GCable pointers to JackPin inside static structures
      without adding a GC root. That meant that the GC was free to collect
      them and re-use memory for something else, leading to weird UAF bugs,
      especially when soft resetting.
      
      We could've added a GC root, but it's easier to just statically allocate
      the JackPin objects, too.
      76d4bf47
  2. Jul 18, 2023
  3. Jul 17, 2023
    • q3k's avatar
      st3m: implement modality · 5deb8bc6
      q3k authored
      This change makes st3m aware of what Micropython is doing, and lets st3m
      provide some 'failsafe' functionality even if Micropython crashes.
      
      Most notably, this lets us draw some useful messages when the badge is
      in REPL mode, and lets us implement things like restarting the badge via
      buttons if that happens.
      
      This API isn't fully used yet, but this is a start.
      5deb8bc6
    • q3k's avatar
      sim: fix leds order · 3fb36b5d
      q3k authored
      3fb36b5d
    • q3k's avatar
      st4m: draw usb icon · 8ead4c86
      q3k authored
      8ead4c86
    • q3k's avatar
      usermodule/hardware: add usb functions · f20c1162
      q3k authored
      f20c1162
    • q3k's avatar
      sdkconfig.defaults: use stub to flash, again · d3b30efe
      q3k authored
      As we don't use the UART/JTAG detection mechanism anymore for rebooting
      into bootrom serial, we can use the stub again, which makes things much
      faster.
      d3b30efe
    • q3k's avatar
      st3m: implement console · ad490eb8
      q3k authored
      This moves our console implementation over to a CDC-ACM based one,
      instead of using UART/JTAG.
      
      This allows us to run multiple USB modes, and have prettier USB device
      strings :).
      
      The downside is that you now have to boot the badge into bootrom serial
      mode before being able to reflash, but I have An Idea On How To Fix This
      (tm).
      ad490eb8
    • q3k's avatar
      st3m: add usb stack (unused) · 61acee41
      q3k authored
      This implements a st3m-specific USB stack. It's effectively what
      espressif provides with their esp_tinyusb component, but allows for
      dynamic reconfiguration of the USB device.
      61acee41
    • q3k's avatar
      components/tinyusb: vendor at 0.14.3 · 7ea31a6c
      q3k authored
      This comes form the ESP component registry, but we just want to vendor
      the code instead of relying on package management.
      
      Plus, we need to hack CMakeLists.txt to make it work with our setup, for
      some reason. Otherwise we don't get callbacks...
      7ea31a6c
    • q3k's avatar
      mpy: new captouch module · 5fa3bb58
      q3k authored
      5fa3bb58
    • q3k's avatar
      badge23: hack in per-pad api for captouch · 7997b915
      q3k authored
      7997b915
    • q3k's avatar
      flow3r_bsp/i2c: expose scan to micropython · 77d95395
      q3k authored
      77d95395
    • q3k's avatar
      sim: fix leds.set_hsv · e52b5925
      q3k authored
      e52b5925
    • q3k's avatar
      micropython: limit access to safe GPIOs · 4cb1332b
      q3k authored
      Hacking on things is fun, but accidentally doing machine.Pin(1337).on()
      and frying your flow3r isn't. Especially if you're just copypasting code
      from the Internet.
      
      We might add some escape hatch for this later for board
      experimentation/testing/debugging..?
      4cb1332b
    • q3k's avatar
      usermodule/badge_link: new pretty API · 48594b2b
      q3k authored
      48594b2b
  4. Jul 16, 2023
  5. Jul 03, 2023
  6. Jul 02, 2023
  7. Jul 01, 2023
Loading