I understand that the internal arduino pull up (down) resisters can be set by adding a few lines of C code, but cant find the relevant C code, could someone please give an explanation or examples of how to set them please?
![Very Happy :D](./images/smilies/icon_biggrin.gif)
Regards,
Chris
Code: Select all
MCUCR &= 0xEF; //Global Enable Pull Ups - Clear PUD bit
DDRB |= 0x01; //Port pin B0 configured as input
PORTB |= 0x01; //Pull up enable