New answers tagged

3

The Atmega2560 has a total of 24 pins associated to the PinChange interrupt. You cannot change that. It is an internal property of the microcontroller. As you already have seen yourself, you need to use extra chips to extent the available IO pins. There are different options to consider: IO-Port-Expanders (available for I2C or SPI) (for example the PCF8574. ...


1

So if you click your 2nd link, it includes sample code for various sections of the multi-function shield. One of them is titled "segment display". If you look at that code, line 7 defines the bit patterns for each of the digits from 0 to 9: const byte SEGMENT_MAP[] = {0xC0,0xF9,0xA4,0xB0,0x99,0x92,0x82,0xF8,0X80,0X90}; If you map them out in ...


Top 50 recent answers are included