米缸虫

导航

2022年12月11日 #

作业题之蜂鸣器

摘要: 使用寄存器,输出440Hz的方波。 #include <avr/io.h>#include <ee1/bit.h>int main(){ set_bit(DDRB, 3); TCCR0A = 0x42; TCCR0B = 0x04; OCR0A = 110;} 阅读全文

posted @ 2022-12-11 09:50 米缸虫 阅读(20) 评论(0) 推荐(0) 编辑