This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "lpc2103.h" // LPC2103 MPU Register | |
/* pototype section */ | |
void delay_led(unsigned long int); // Delay Time Function | |
int main(void) | |
{ | |
unsigned long int LED; // LED Output Status Buffer | |
// Initial all GPIO-0 = Output |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Newbie programmer | |
def factorial(x): | |
if x == 0: | |
return 1 | |
else: | |
return x * factorial(x - 1) | |
print factorial(6) | |
#First year programmer, studied Pascal |