浏览代码

T3 - Bug in PINC

Reading wrong register for one bit...
teensy4-core
Kurt Eckhardt 6 年前
父节点
当前提交
d28e889454
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      teensy3/avr_emulation.h

+ 1
- 1
teensy3/avr_emulation.h 查看文件

int ret = 0; int ret = 0;
if (digitalReadFast(14)) ret |= (1<<0); if (digitalReadFast(14)) ret |= (1<<0);
if (digitalReadFast(15)) ret |= (1<<1); if (digitalReadFast(15)) ret |= (1<<1);
if (digitalReadFast(15)) ret |= (1<<2);
if (digitalReadFast(16)) ret |= (1<<2);
if (digitalReadFast(17)) ret |= (1<<3); if (digitalReadFast(17)) ret |= (1<<3);
if (digitalReadFast(18)) ret |= (1<<4); if (digitalReadFast(18)) ret |= (1<<4);
if (digitalReadFast(19)) ret |= (1<<5); if (digitalReadFast(19)) ret |= (1<<5);

正在加载...
取消
保存