CH32 Risc-V for Arduino IDE
https://raw.githubusercontent.com/ch32-riscv-ug/arduino_core_ch32_riscv_arduino/main/package_ch32-riscv-arduino.json
This board manager is for building CH32's RISC-V series with Arduino IDE.
This is a board manager that runs EVT as is, with the addition of the Arduino Core API.
-
Common
- GPIO
- void pinMode(pin_size_t pinNumber, PinMode pinMode)
- PinStatus digitalRead(pin_size_t pinNumber)
- void digitalWrite(pin_size_t pinNumber, PinStatus status)
- void attachInterrupt(pin_size_t interruptNumber, voidFuncPtr callback, PinStatus mode)
- void attachInterruptParam(pin_size_t interruptNumber, voidFuncPtrParam callback, PinStatus mode, void *param)
- void detachInterrupt(pin_size_t interruptNumber)
- uint8_t shiftIn(pin_size_t dataPin, pin_size_t clockPin, BitOrder bitOrder)
- void shiftOut(pin_size_t dataPin, pin_size_t clockPin, BitOrder bitOrder, uint8_t val)
- unsigned long pulseIn(pin_size_t pin, uint8_t state, unsigned long timeout)
- unsigned long pulseInLong(pin_size_t pin, uint8_t state, unsigned long timeout)
- ADC
- void analogReference(uint8_t mode)
- int analogRead(pin_size_t pinNumber)
- DAC
- void analogWrite(pin_size_t pinNumber, int value)
- SysTick
- unsigned long micros(void)
- unsigned long millis(void)
- void delay(unsigned long ms)
- void delayMicroseconds(unsigned int us)
- GPIO
-
USART/UART(Serial, UartClass)
-
I2C(Wire Master)
-
I2C(Wire Slave)
-
I2S
-
SPI
-
Timer
-
WDT
-
RTC
-
USB Client
-
USB Host
-
USB PD
-
Ethernet