我在这一点上迷路了,感谢任何人的帮助!我从一个旧的GitHub下载了这个库,但我甚至不会编译它。
Arduino: 1.6.6 Hourly Build 2015/10/14 10:42 (Windows 8.1), Board: "ATtiny
x5 series, ATtiny85, 8 mhz (internal), B.O.D. Disabled"
Warning: platform.txt from core 'Arduino SAMD (32-bits ARM Cortex-M0+) Boards' contains deprecated recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{build.path}/{archive_file}" "{object_file}", automatically converted to recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{archive_file_path}" "{object_file}". Consider upgrading this core.
Warning: platform.txt from core 'ATtiny Classic' contains deprecated recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{build.path}/{archive_file}" "{object_file}", automatically converted to recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{archive_file_path}" "{object_file}". Consider upgrading this core.
In file included from C:\Users\Luke Bouchard\Documents\Arduino\libraries\ShiftPWM-master/ShiftPWM.h:25:0,
from C:\Users\Luke Bouchard\Documents\Arduino\test\test.ino:13:
C:\Users\Luke Bouchard\Documents\Arduino\libraries\ShiftPWM-master/pins_arduino_compile_time.h:318:3: error: 'PORTC' was not declared in this scope
&PORTC,
^
C:\Users\Luke Bouchard\Documents\Arduino\libraries\ShiftPWM-master/pins_arduino_compile_time.h:319:3: error: 'PORTD' was not declared in this scope
&PORTD,
^
exit status 1
Error compiling.
This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.发布于 2015-12-17 06:25:22
看起来您的库不支持ATTINY85芯片。
为了使代码与ATTINY兼容,我必须对库进行以下更改...
我还做了一些美观的更改,比如在编译时静态分配缓冲区,因为如果没有串行连接,就无法看到“内存不足”错误。
叉子就在这里。https://github.com/bigjosh/ShiftPWM-Redux
自述文件包含有关将代码从旧库迁移到新库(不难)的必要更改的信息。fork中的示例也进行了更新,以使用新的库,因此是一个很好的起点。
https://stackoverflow.com/questions/34322406
复制相似问题