I'm making a digital dice with two 7-segments and an atmega8a
I want to connect 7-segments directly to Atmega8a pins with a 330 ohms resistor for each pin
As I measured, each segment has 5 mA consumption, and a 7-segment displaying numbers between 1 and 6 consumes a maximum of 30 mA, which is 60 mA for two 7-segments.
Due to Atmega8a datasheet, the maximum tolerable current of each pin is 40 mA and the maximum consumption current of atmega8a can be up to 300 mA
is driving these two 7-segments with an Atmega8a a standard method?
would this method harm atmega8a in a long period of time?