SpenceKonde 在 ATTinyCore 上支持的 Arduino 功能
Supported Arduino functions on ATTinyCore by SpenceKonde
我刚刚发现 ATtiny84/85 芯片并订购了一些用于某些项目。我对它对通过 Arduino IDE 和 Uno 进行编程的所有支持进行了高低评价,并且遇到了 high-low tech 的网站和该核心中支持的 arduino 功能。
然后我遇到了 SpenceKonde 的 ATTinyCore,它是 ATTiny 系列中另一个备受推崇的内核。问题是我找不到任何关于该内核支持哪些经典 Arduino 功能的信息。我的意思是像一个列表。我确定支持基本功能,但如何使用睡眠模式/低功耗模式和其他一些东西。 Arduino.h 库中的所有内容都受支持吗?
抱歉,如果这是一个愚蠢的问题,我们将不胜感激。
我已经就此事联系了 Arduino 论坛上的 DrAzzy a.k.a Spence Konde,我将在下面引用他给我的回复。
ATTinyCore (and my other cores) implements all of the standard Arduino API functions that are logically coherent for the hardware in question. Everything should work, even the stuff that I think is a dumb idea (eg, SerialEvent, yield()) - if it doesn't, it should be reported to me as a bug. There are only a few places where I knowingly departed from the official Arduino behavior
Stuff that isn't arduino API, like the stuff that's included with avrlibc, has no dependence on the core whatsoever. If the hardware supports it, those libraries should work. If it fails to compile with the library (or a specific call in the library) in the sketch (generally giving either a #error saying it's unsupported, or an "undefined reference" to a register or bit name - actually calling it at a sensible time or uploading and verifying it behaves the way you want is usually unnecessary)
希望对大家有所帮助。再次感谢 Spence Konde (DrAzzy) 出色的 ATTinyCore 和他在这件事上的帮助。
我刚刚发现 ATtiny84/85 芯片并订购了一些用于某些项目。我对它对通过 Arduino IDE 和 Uno 进行编程的所有支持进行了高低评价,并且遇到了 high-low tech 的网站和该核心中支持的 arduino 功能。
然后我遇到了 SpenceKonde 的 ATTinyCore,它是 ATTiny 系列中另一个备受推崇的内核。问题是我找不到任何关于该内核支持哪些经典 Arduino 功能的信息。我的意思是像一个列表。我确定支持基本功能,但如何使用睡眠模式/低功耗模式和其他一些东西。 Arduino.h 库中的所有内容都受支持吗?
抱歉,如果这是一个愚蠢的问题,我们将不胜感激。
我已经就此事联系了 Arduino 论坛上的 DrAzzy a.k.a Spence Konde,我将在下面引用他给我的回复。
ATTinyCore (and my other cores) implements all of the standard Arduino API functions that are logically coherent for the hardware in question. Everything should work, even the stuff that I think is a dumb idea (eg, SerialEvent, yield()) - if it doesn't, it should be reported to me as a bug. There are only a few places where I knowingly departed from the official Arduino behavior
Stuff that isn't arduino API, like the stuff that's included with avrlibc, has no dependence on the core whatsoever. If the hardware supports it, those libraries should work. If it fails to compile with the library (or a specific call in the library) in the sketch (generally giving either a #error saying it's unsupported, or an "undefined reference" to a register or bit name - actually calling it at a sensible time or uploading and verifying it behaves the way you want is usually unnecessary)
希望对大家有所帮助。再次感谢 Spence Konde (DrAzzy) 出色的 ATTinyCore 和他在这件事上的帮助。