Program ////////////////////////////////////////////////////////////////////// void init_ports(void) { TRISIO = 0; } ////////////////////////////////////////////////////////////////////// void main() { int x; init_ports(); do{ GPIO.GP1=1; Delay_ms(1000); GPIO.GP1=0; Delay_ms(1000); //GPIO.GP1=1; }while(1); } Code is written using MikroC
This blog is dedicated for Internet Of Things, Embedded Projects and Tutorials. ARM, AVR, PIC, 8051, Arduino, ESP8266, ESP32, Raspberry PI Projects and Tutorials are discussed here.