1. 19 Sep, 2021 3 commits
  2. 14 Sep, 2021 1 commit
    • Maximilian Gerhardt's avatar
      Add PlatformIO support (#250) · 3df3f074
      Maximilian Gerhardt authored
      * Add package.json
      
      To make package easily integratable with PlatformIO
      
      * Correct name back to original one
      
      * Format package.json
      
      * Add first shot at builder script
      
      * Add USB stack flags, fix compile flags
      
      * Formatting
      
      * Add more link & USB flags
      
      * Build Boot2 bootloader
      
      * Formatting
      
      * Generate linkerscript, linker fixes
      
      * Fix linkflags, make firmware runnable
      
      * Update USB flags and RAM size
      
      * Correct USB flags, add dynamic sketch partitioning
      
      * Restructure filesystem size and flash size logic into platform code
      
      * Move C++ only flags to CXXFLAGS
      
      * Add PlatformIO documentation
      
      * Link to new platform.io document in the docs TOC
      
      * Fix typos in platformio docs
      
      * Fix one additional typo in platformio.rst
      
      * Update docs
      
      * Remove wrongly commited build folder
      3df3f074
  3. 03 Sep, 2021 1 commit
  4. 30 Aug, 2021 1 commit
  5. 24 Aug, 2021 2 commits
  6. 17 Aug, 2021 1 commit
  7. 12 Aug, 2021 3 commits
  8. 29 Jul, 2021 4 commits
  9. 23 Jul, 2021 3 commits
  10. 22 Jul, 2021 1 commit
    • Earle F. Philhower, III's avatar
      Set available() to 0 when Wire.requestFrom fails (#259) · cb9931f3
      Earle F. Philhower, III authored
      Wire::requestFrom() returns the number of bytes read from the slave.  In
      the case of error, the slave can end up returning a very large integer
      for PICO_GENERIC_ERROR which would then be used as the # of bytes read
      causing crashes and errors.
      
      Running TalkingToMyself without connecting the I2C ports would show
      this behavior.
      
      Now, when PICO_GENERIC_ERROR is returned, set the read-back buffer len
      to 0 explicitly.
      cb9931f3
  11. 20 Jul, 2021 1 commit
  12. 19 Jul, 2021 2 commits
  13. 17 Jul, 2021 1 commit
  14. 15 Jul, 2021 1 commit
    • Earle F. Philhower, III's avatar
      Fix PWM frequency at low and high frequencies (#244) · 05356da2
      Earle F. Philhower, III authored
      The PWM HW can only divide 125MHZ sysclk by 1...256.  That's only down to
      about 500khz.  If the max count of the PWM (analogWriteScale) is too low
      then the actual PWM period will be much less than desired (and PWM frequency
      of course much higher).
      
      For example, at analogWriteFreq(100); analogWriteScale(256); the true
      PWM period would be 125M / 256 (pwmdiv) / 256 (scale) = ~2khz.
      
      Conversely, at high frequencies and large scales it is impossible to achieve
      the requested frequency and a much lower one would be generated.  For
      example: freq(60K), scale(32768). PWM period = 125M / 1 (pwmdiv) / 32768 =
      ~4kHz.
      
      Avoid this by adjusting the analogWrite scale in the core to either increase
      the PWM count for low frequencies, or decrease it for high frequencies.
      This is done behind the scenes and code is not required to be changed.
      
      The PWM frequency will still not be perfcetly exact due to the divider HW
      and clocks involved, but it will be very close across the whole range.
      
      Fixes #234
      05356da2
  15. 07 Jul, 2021 1 commit
  16. 06 Jul, 2021 1 commit
  17. 04 Jul, 2021 2 commits
  18. 30 Jun, 2021 3 commits
  19. 29 Jun, 2021 2 commits
  20. 26 Jun, 2021 3 commits
  21. 19 Jun, 2021 1 commit
    • Earle F. Philhower, III's avatar
      Fix file creation on SD and SDFS (#216) · 35c974d4
      Earle F. Philhower, III authored
      The O_CREAT/etc. flags on the Pico are a full 32-bits in size, but the
      core was generating a flag for SdFat using an 8-bit type, so all the
      O_CREAT, O_TRUNC, O_APPEND, etc. flags got cut off.
      
      Fix the flag size.
      
      Fixes #214
      35c974d4
  22. 16 Jun, 2021 2 commits