Skip to content
Snippets Groups Projects
  1. Aug 02, 2023
    • Mark Frost's avatar
      Add #ifdef support for CH3/CH4 in tim2_pwm example · 2ddc2fea
      Mark Frost authored
      -Implement CH3 and CH4 optionally via #define
      -By default only CH1 and CH2 are enabled.
      -Channels 3 and 4 can be enabled by uncommenting the appropriate line
      -Choose whether default of PWM pins is HIGH (0xff) or LOW (0x00)
      
      NOTES:
      -Channel 3 is on a different port (GPIOC) which will be enabled if
      needed.
      
      -Channel 4 is on the NRST pin so not usable unless you use `minichlink -d`
      to disable the NRST function so the pin can be used as a GPIO
      
      -If your board has a bypass capacitor on PD7 for a reset button the
      waveforms observed on CH4 will not be nice square waves.
      2ddc2fea
    • Mark Frost's avatar
      tim2_encoder example based on tim2_pwm_remap · b9215844
      Mark Frost authored
      Uses partially remapped pins to read a rotary encoder (or any quadrature
      input) using pins that should be 5V tolerant
      b9215844
  2. Aug 01, 2023
  3. Jul 30, 2023
  4. Jul 27, 2023
  5. Jul 25, 2023
  6. Jul 20, 2023
  7. Jul 19, 2023
  8. Jul 14, 2023
  9. Jul 04, 2023
  10. Jul 03, 2023
  11. Jul 01, 2023
  12. Jun 30, 2023
  13. Jun 28, 2023
    • recallmenot's avatar
      GPIO example funconfig changes · 882394de
      recallmenot authored
      882394de
    • cnlohr's avatar
      Oops: don't turn off printf onthe printf demo. · 3430c4a6
      cnlohr authored
      3430c4a6
    • cnlohr's avatar
      Major change for adding funconfig. · f2ca15af
      cnlohr authored
       * No more needing to decide between printf and UART in code.
       * Better debugprintf input
       * Unified code for all clock sources.
       * TINYVECTOR now saves like another 120 bytes of space.
       * None of the `Makefile`s except `bootloader` need anything extra
       * All configuration via `funconfig.h`
       * Sane defaults.
       * `SystemInit()` also initializes debugging (UART or SWIO depending on configuration)
       * Tunable timeout on debug printf.
       * Configurable UART baud rate.
       * `funconfig.h` is automatically included by `ch32v003fun.h`
       * Paves the way for other, non-003 processors.
      f2ca15af
  14. Jun 26, 2023
  15. Jun 21, 2023
  16. Jun 20, 2023
  17. Jun 13, 2023
  18. Jun 08, 2023
  19. Jun 07, 2023
    • recallmenot's avatar
      GPIO branchless (#155) · 406e622a
      recallmenot authored
      
      * one GPIO library to rule them all
      
      * GPIO example makefile transfer
      
      * GPIO README.md video upload
      
      * Update README.md
      
      * Update README.md
      
      * GPIO library path recitified
      
      * GPIO pretty paths please
      
      * platformio.ini removed GPIO_analogRead test
      
      * GPIO removed implementation block (unused)
      
      * restoring blink.bin #1
      
      * restoring blink.bin #2
      
      * GPIO_branchless added branching digitalWrite (sometimes necessary)
      
      ---------
      
      Co-authored-by: default avatarrecallmenot <edmund.raile@proton.me>
      406e622a
  20. Jun 03, 2023
  21. Jun 02, 2023
Loading