The document discusses using light instead of electricity for digital logic circuits to overcome limitations of miniaturized electronic systems. It proposes that optical switching speeds could exceed electrical switching and have very low power consumption. Photonic crystals that selectively allow or block wavelengths could be used to efficiently channel and manipulate light for all-optical digital devices. Specifically, electro-optic devices have been made using opals and inverse opals that can tune photonic crystals by changing their behavior in an electric field, and all-optical circuits could theoretically operate faster than electro-optic circuits since they would not require converting between light and electricity.