Hi!
I built a custom Board with the Sam3X8E Chip. Im using the direct Port manipulation since it is quite fast, also not all Physical Pins are mapped to the Arduino environement.
REG_PIOB_SODR = 0x1 << 27;
REG_PIOB_CODR = 0x1 << 27;
But how can I use the extended Pins with some Arduino functions like, for example, AttachInterrupt?
attachInterrupt(PIN_PIOB1 , readTacho1, RISING);
Of course it is not working since PIN_PIOB1 is not the correct name: Analog_Board.ino:33: error: 'PIN_PIOB1' was not declared in this scope
How can I use all the Pins within my sketches without changing the Arduino Pin mapping files?
Thanks!