## 一期目标 - [x] GPIO (数字输入输出) - [x] ADC (模拟输入) - [x] PWM (模拟输出) - [x] 串口输出 - [x] Arduino通用算法库可以100%兼容 - [x] 整合RT-Thread debug输出 - [x] 软件IIC框架整合到Wire.h (未实现从机部分) - [x] 对接Adafruit_Sensor和Adafruit_BusIO框架,以此来支持Adafruit的众多传感器库,接入Adafruit生态 - [x] I2C传感器 - [x] SPI传感器 - [x] SPI - [x] 基本函数 - [ ] legacy functions https://github.com/RTduino/RTduino/commit/be07586e7f8d9e6f7cf0428a64401139b44c2cee - [x] 下载下来的zip文件可以直接免解压,sconscript自动处理 - [x] SerialUSB (使用TinyUSB CDC) - [x] 梳理所有核心函数是否已经全部被实现 - [x] 完善和强化print类和stream类 - [x] analogReadResolution() - https://www.arduino.cc/reference/en/language/functions/zero-due-mkr-family/analogreadresolution/ - [x] analogWriteResolution() - https://www.arduino.cc/reference/en/language/functions/zero-due-mkr-family/analogwriteresolution/ - [x] true analog DAC (潘多拉) - [x] analogWriteFrequency() - https://github.com/stm32duino/wiki/wiki/API#frequency - https://www.stm32duino.com/viewtopic.php?f=7&t=1007 - https://www.pjrc.com/teensy/td_pulse.html - [ ] ~~Tone() / noTone() 函数适配~~ (**不计划支持**) ## 二期目标 - [x] __FlashStringHelper https://github.com/RTduino/RTduino/commit/fd67c9d9d567e16a03ca69e898bcf89e5d3d97d2 - [ ] analogReference() 函数适配,官方不同板子定义不一致https://www.arduino.cc/reference/en/language/functions/analog-io/analogreference/ ## 三期目标 - [x] pulseIn() / pulseInLong() 函数适配 https://github.com/RTduino/RTduino/pull/10 - [x] clockCyclesPerMicrosecond() /clockCyclesToMicroseconds() / microsecondsToClockCycles() - [x] 支持 https://github.com/GorgonMeducer/perf_counter ## 四期目标 - [x] 硬件定时器的相关库 MsTimer2 - [x] upstream https://github.com/PaulStoffregen/CapacitiveSensor - [x] WCharaceter.h 中有两个函数是POSIX扩展函数,尚未实现 (toascii() / isascii()) - [ ] 支持从串口读取数据 (除console之外的串口,console串口不负责读数据)https://github.com/mysterywolf/RTduino/commit/d2e30acc5dc03994c5e6b1ca7d8a0b91ef55680b - [x] https://www.arduino.cc/reference/en/language/variables/utilities/progmem/ - [x] TinyUSB 优化 https://github.com/adafruit/Adafruit_TinyUSB_Arduino/blob/master/src/arduino/Adafruit_USBD_CDC.cpp - [ ] 解决PWM ADC功能引脚无法当做普通引脚使用的问题
一期目标
Tone() / noTone() 函数适配(不计划支持)二期目标
三期目标
四期目标