用avrstudio要安装两个软件avrstudio和 winavr
都是来自网页的答案,再次感谢分享。
编译出现错误代码
main.c:382: fatal error: opening dependency file .dep/main.o.d: No such file or directory
gcc plug-in: No AVR Toolchain installation found. The AVR GCC plug-in can still be used if you set up your own build tools.
opening dependency file dep/sss.o.d: No such file or directory
链接:https://pan.baidu.com/s/1TepZqFKa_AnlaXvIeRWsLg?pwd=pwv6
提取码:pwv6
#include <avr/io.h>
int main()
{
DDRC=0Xff;
PORTC=0X6F;
}
AVRSTUDIO 和porteus仿真 很简单网上很多例子 在portues点单片机找打AVRSTUDIO工程里面的.hex文件