主要内容

系统外设

配置和使用 GPIO、输入捕获等系统外设

利用具有不同架构的 Arduino® 板的硬件功能执行任务,例如通过 GPIO 模块读写模拟和数字信号,以及通过设备控制模块控制设备。

模块

全部展开

Analog InputMeasure voltage of analog input pin
Analog OutputGenerate voltage on the specified DAC pin
Analog Input SAMDRead ADC register value after ADC conversion at the analog pin of Arduino SAMD21 core (自 R2023b 起)
Analog Input AVRRead ADC register value after ADC conversion at analog pin of Arduino AVR core (自 R2024a 起)
Digital InputGet logical state of digital input pin on Arduino
Digital OutputSet logical state of digital output pin on Arduino
PWM CommonGenerate pulse width modulated signal on analog output pin
PWM SAMDGenerate pulse width modulated signal on analog output pin of Arduino SAMD21 core (自 R2023b 起)
PWM AVRGenerate pulse width modulated signal on analog output pin of Arduino AVR core (自 R2024a 起)
Input CaptureMeasure frequency and duty cycle of external input signal
NeoPixelControl color and brightness of RGB and RGBW Adafruit NeoPixel LED strip (自 R2024a 起)

主题

精选示例