A staple cartridge for use with a surgical stapler and surgical stapling systems are disclosed. The staple cartridge comprises a cartridge body having a tissue-contacting surface. One or more light emitting diodes (LEDs) are positioned at the edges of the tissue-contacting surface. A plurality of staple drivers is located within the cartridge body each supporting a staple.