I recently switched from the Nano to the Nano Every due to the performance improvements. I know there are some incompabilities between these boards thus the registers of the Every must be emulated (while compiling for instance). But it seems like the code is not completely compatible as well. For the use of infrared components (Reading an infrared code) it is advised to do port manipulation to skip some clock cyles of the digitalRead() method and read the raw value. That means one uses the PIND macro to read the digital values from the pins faster as usual. That worked fine for the old Nano. The Every does not have this macro (yet?) and I did not found any alternatives to read the desired values. The Arduino IDE will not let me compile the code.
So the main questions are:
- Is that a mistake of the IDE (Should PIND be available on the Every)?
- Are there any other ways to read the pin values without PIND?