1 Star 0 Fork 0

DFRobot/pxt-DFRobot_HuskyLens

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
i2c.cpp 293 Bytes
一键复制 编辑 原始数据 按行查看 历史
TgJe 提交于 2021-01-04 10:44 +08:00 . Modify I2C driver weak problem
#include "pxt.h"
#include "nrf_gpio.h"
#include "pxtbase.h"
//% color=50 weight=80
//% icon="\uf1eb"
namespace i2c {
//%
void init(){
nrf_gpio_cfg(32,NRF_GPIO_PIN_DIR_INPUT,NRF_GPIO_PIN_INPUT_CONNECT,NRF_GPIO_PIN_PULLDOWN,NRF_GPIO_PIN_S0D1,NRF_GPIO_PIN_NOSENSE);
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/dfrobot/pxt-DFRobot_HuskyLens.git
git@gitee.com:dfrobot/pxt-DFRobot_HuskyLens.git
dfrobot
pxt-DFRobot_HuskyLens
pxt-DFRobot_HuskyLens
master

搜索帮助