我有这段代码
#!/bin/bash
MEEP="$(pwd)"
cd $MEEP
$MEEP/avrdude -C $MEEP/avrdude.conf -patmega32u4 -cstk500v2 -Pusb -e -Ulock:w:0x3F:m -Uefuse:w:0xcb:m -Uhfuse:w:0xd8:m -Ulfuse:w:0xff:m
$MEEP/avrdude -C $MEEP/avrdude.conf -patmega32u4 -cstk500v2 -Pusb -Uflash:w:$MEEP/dosketch.cpp.hex:i -Ulock:w:0x2F:m
正如您可以看到avrdude avrdude.conf,hex文件和命令文件都在一个文件夹中。基本上我想要做的就是在单个文件夹中进行所有编程。我首先尝试使用“./avrdude”来表示它位于根文件夹中但仍然存在以下错误
/Users/Demon/Desktop/MEEP/prog_tecla.command: line 5: /Users/Laura/avrdude: No such file or directory
/Users/Demon/Desktop/MEEP/prog_tecla.command: line 7: /Users/Laura/avrdude: No such file or directory