One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| while(1){ | |
| PORTB = 0b00000001; | |
| _delay_ms(500); | |
| PORTB = 0b00000010; | |
| _delay_ms(500); | |
| PORTB = 0b00000100; | |
| _delay_ms(500); | |
| PORTB = 0b00001000; | |
| _delay_ms(500); | |
| PORTB = 0b00010000; |
| // ------- Preamble ------- // | |
| #include <avr/io.h> | |
| #include <util/delay.h> /* Time delay function */ | |
| int main(void) { | |
| // ------- Inits ------- // | |
| DDRB = 0b11111111; /* Port-B configured for output */ | |
| uint8_t i; /* unsigned 8-bit integer */ | |
| window.alert("Hello World!"); |
| /* | |
| * lab7.c | |
| * | |
| * Author : mahir | |
| */ | |
| #include <avr/io.h> | |
| int main(void) | |
| { |
| ########## | |
| # L.append(object) -> – append object to the end of list | |
| # append() takes exactly one argument | |
| L = [1,2,3,4,5] | |
| L.append(2.1) | |
| print(L) | |
| # Output: | |
| # [1, 2, 3, 4, 5, 2.1] |
| ########## | |
| # Arithmetic operation | |
| (5 + 2 * 3 + (3 - 1) / 2 + 9) % 2 | |
| Out[1]: 1 | |
| 2**2 # power | |
| Out[2]: 4 | |
| 4**0.5 # square root |
| #### | |
| # For Ubuntu 18.04 | |
| # | |
| # Add the following repos at /etc/apt/sources.list: | |
| # deb http://archive.ubuntu.com/ubuntu bionic main multiverse restricted universe | |
| # deb http://archive.ubuntu.com/ubuntu bionic-security main multiverse restricted universe | |
| # deb http://archive.ubuntu.com/ubuntu bionic-updates main multiverse restricted universe | |
| # and remove the default repos. | |
| #### |
| #!/bin/bash | |
| # run as root only | |
| if [ $EUID -ne 0 ] | |
| then | |
| echo -e "\e[1;39m[ \e[31mError\e[39m ] need root access to run this script\e[0;39m" | |
| exit 1 | |
| fi | |
| function install_automake() { |