## Instructions to writing animus mods
Animus mods must follow strict naming rules for animus builder to work properly
First, name your mod_template file in the following format:
mod_[modname]
Then, replace `uktemplate` in `#define mod_modname` with your own mod name.
Also make sure to rename this directory to [modname].
--------------------------------------------------------------------------------
## How to declare more methods and functions
If more methods or functions are needed, declare them with the following syntax:
```
[return type] modMethod([function name])([arguments])
{
}
```
An example with the method name: `blah` with return type void and 1 int argument
```
void modMethod(blah)(int input)
{
}
```
--------------------------------------------------------------------------------
## How to call methods and functions declared within the mod
If you wish to call any methods or functions declared within the mod, you should
also use modMethod.
To call the function from above with the argument value of 5, do the following:
`modMethod(blah)(5);`
If you wish to call functions from the main animus files, then you could just
call them regularly, example:
`int layer = GetLayEEPROM();`
--------------------------------------------------------------------------------
## Declaring dependancies and reserving resources
If your mod requires use of special functions or pins, you should declare it in
the comment on top of mod_[modname] in between BUILDER_REQUIREMENT_START and
BUILDER_REQUIREMENT_END, the list of special functions available:
* I2C: used by Arduino's Wire library for I2C communication
* EEPROM([addr1],[addr2],[addr3]...): declare to claim ownership of EEPROM
* Pin([pin],[pin],[pin]...): declare to claim ownership of pins
--------------------------------------------------------------------------------
## Using EEPROM
EEPROM addresses 601-999 (inclusive) are reserved for mods, you may get and set
EEPROM values with the following functions:
```
void EEPROM.update(address, valueByte);
byte EEPROM.read(address);
```
Remember to declare the EEPROM addresses used as per the previous section
--------------------------------------------------------------------------------
# Creating multiple file mods
If your mod contains multiple files, make sure to place them in the same folder,
this allows you to include multiple .ino files, .cpp files and .h files.
没有合适的资源?快使用搜索试试~ 我知道了~
arduino 兼容 atmega u 系列微控制器的键盘固件系列_C++_代码_相关文件_下载
共515个文件
ino:235个
cpp:102个
h:102个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 9 浏览量
2022-07-07
03:15:41
上传
评论
收藏 1.01MB ZIP 举报
温馨提示
介绍 这是一个基于 Arduino 的固件,供与 Arduino Leonardo 固件(Leonardo、Mico、Pro Micro 等)和 Arduino SAMD21 固件(Zero、MKR1000、M0 等)兼容的设备使用。Animus 是高度可定制和模块化的,允许在不需要编辑基本代码的情况下进行额外的修改。Animus 是同类产品中的第一个,它可以通过从主机发送的串行命令对键盘布局进行持久的实时编辑。资源管理很重要,因为硬件(atmega32u4 等)的闪存和 EEPROM 有限,为了节省资源,已经进行了大量优化。 特征 NKRO(最多 113 个键) 鼠标控制(移动、左键单击、右键单击、中键单击、上一个按钮、下一个按钮、滚轮) 实时键布局编辑(无需重新上传布局) 持久键布局(跨计算机记住键盘布局) 通过 I2C 兼容的拆分键盘(适用于 ergodox/diverge 之类的东西) 多达 256 个 FN 层,受 EEPROM 限制 最多 256 层,受 EEPROM 限制 FN 键、spaceFN、toggleFN 更多详情、使用方法,请下载后阅读README.md
资源推荐
资源详情
资源评论
收起资源包目录
arduino 兼容 atmega u 系列微控制器的键盘固件系列_C++_代码_相关文件_下载
(515个子文件)
buildall.bat 28B
AnimusBuilder.csprojAssemblyReference.cache 10KB
DesignTimeResolveAssemblyReferencesInput.cache 7KB
DesignTimeResolveAssemblyReferencesInput.cache 6KB
AnimusBuilder.csprojResolveAssemblyReference.cache 2KB
DesignTimeResolveAssemblyReferences.cache 1KB
AnimusBuilder.csproj.GenerateResource.Cache 1013B
AnimusBuilder.csproj.CoreCompileInputs.cache 41B
AnimusKeyboard.cpp 17KB
ModDualRoles.cpp 7KB
ModDualRoles.cpp 7KB
ModDualRoles.cpp 7KB
ModModifier.cpp 6KB
ModModifier.cpp 6KB
ModModifier.cpp 6KB
ModI2CHost.cpp 6KB
ModI2CHost.cpp 6KB
ModI2CHost.cpp 6KB
ArduinoKeyboard.cpp 6KB
Animus.cpp 5KB
Animus.cpp 5KB
Animus.cpp 5KB
AnimusMedia.cpp 5KB
AnimusMedia.cpp 5KB
AnimusMedia.cpp 5KB
AnimusMedia.cpp 5KB
AnimusMedia.cpp 5KB
AnimusMedia.cpp 5KB
AnimusMedia.cpp 5KB
AnimusMedia.cpp 5KB
AnimusMedia.cpp 5KB
AnimusMedia.cpp 5KB
AnimusMedia.cpp 5KB
AnimusMedia.cpp 5KB
AnimusMedia.cpp 5KB
AnimusMedia.cpp 5KB
AnimusMedia.cpp 5KB
AnimusMedia.cpp 5KB
AnimusMedia.cpp 5KB
AnimusMedia.cpp 5KB
AnimusMedia.cpp 5KB
ModI2CGuest.cpp 5KB
ModI2CGuest.cpp 5KB
ModI2CGuest.cpp 5KB
ModTapdance.cpp 5KB
ModTapdance.cpp 5KB
ModTapdance.cpp 5KB
Comms.cpp 5KB
Comms.cpp 5KB
Comms.cpp 5KB
ModSticky.cpp 4KB
ModSticky.cpp 4KB
ModSticky.cpp 4KB
FlashStorage.cpp 3KB
FlashStorage.cpp 3KB
FlashStorage.cpp 3KB
FlashStorage.cpp 3KB
PersMem.cpp 3KB
PersMem.cpp 3KB
PersMem.cpp 3KB
ModLED.cpp 2KB
ModLED.cpp 2KB
ModLED.cpp 2KB
ModMouse.cpp 2KB
ModMouse.cpp 2KB
ModMouse.cpp 2KB
ModLED.cpp 2KB
ModMacro.cpp 2KB
ModMacro.cpp 2KB
ModMacro.cpp 2KB
FlashAsEEPROM.cpp 2KB
FlashAsEEPROM.cpp 2KB
FlashAsEEPROM.cpp 2KB
FlashAsEEPROM.cpp 2KB
KeyboardInterface.cpp 2KB
KeyboardInterface.cpp 2KB
KeyboardInterface.cpp 2KB
KeyboardInterface.cpp 2KB
KeyboardInterface.cpp 2KB
KeyboardInterface.cpp 2KB
KeyboardInterface.cpp 2KB
KeyboardInterface.cpp 2KB
KeyboardInterface.cpp 2KB
KeyboardInterface.cpp 2KB
KeyboardInterface.cpp 2KB
KeyboardInterface.cpp 2KB
KeyboardInterface.cpp 2KB
KeyboardInterface.cpp 2KB
KeyboardInterface.cpp 2KB
KeyboardInterface.cpp 2KB
ModMedia.cpp 2KB
ModMedia.cpp 2KB
ModMedia.cpp 2KB
ModTemplate.cpp 1KB
ModTemplate.cpp 1KB
ModTemplate.cpp 1KB
AnimusKeyboard.cpp 1KB
AnimusKeyboard.cpp 1KB
AnimusKeyboard.cpp 1KB
ModExample.cpp 1009B
共 515 条
- 1
- 2
- 3
- 4
- 5
- 6
资源评论
快撑死的鱼
- 粉丝: 1w+
- 资源: 9149
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功