Interface Switch With ARM7

Description The switch is a component that connects two points in a circuit when you press it. LED turns on when you press the button. Hardware Required Push Button. LPC21xx MicroController. Circuit Code #include <LPC21xx.H> void delay() { int i; for(i=0;i<10000;i++); } int main() { IO0DIR=0XFFFFFFFF; IO1DIR=0XFFFEFFFF; while(1) { if(IO1PIN &(1<<16)) { IO0PIN=0XFFFFFFFF; } else … Continue reading Interface Switch With ARM7