1 #define F_CPU 100000000UL // Sets up the default speed for delay.h
4 #include <util/delay.h>
6 //#include <compat/deprecated.h>
8 variable = PINx; // Read a byte from a port, replace x with the port number
9 PORTx = variable; //Write a byte to a port
10 PORTx |= 1<<pin_number; // Set a pin in a port
11 PORTx &= ~(1<<pin_number); // Clear a pin in a port
14 void delay(unsigned int ms
) {
16 for ( j
=0; j
<1000; j
++)
17 for ( i
=0; i
<ms
; i
++);
22 //sbi(DDRD,PD5); /*enable port 5 for output*/
This page took 0.310617 seconds and 4 git commands to generate.