4. 数字-模拟转换器
DAC的用法
#define DAC1 25
void setup() {
}
void loop() {
// 8bit DAC, 255 = 3.3V, 0 = 0.0V
for(int i = 0; i < 255; i++){
dacWrite(DAC1, i);
delay(10);
}
}Last updated
Was this helpful?
DAC的用法
#define DAC1 25
void setup() {
}
void loop() {
// 8bit DAC, 255 = 3.3V, 0 = 0.0V
for(int i = 0; i < 255; i++){
dacWrite(DAC1, i);
delay(10);
}
}Last updated
Was this helpful?
Was this helpful?