Skip to content

Instantly share code, notes, and snippets.

View pilinux's full-sized avatar

mahir pilinux

View GitHub Profile
@pilinux
pilinux / Usage: avrdude
Created February 13, 2016 06:36
Usage: avrdude [options]
Usage: avrdude [options]
Options:
-p <partno> Required. Specify AVR device.
-b <baudrate> Override RS-232 baud rate.
-B <bitclock> Specify JTAG/STK500v2 bit clock period (us).
-C <config-file> Specify location of configuration file.
-c <programmer> Specify programmer type.
-D Disable auto erase for flash memory
-i <delay> ISP Clock Delay [in microseconds]
-P <port> Specify connection port.
@pilinux
pilinux / xor.c
Created February 12, 2016 10:23
Twiddling bit with XOR operation
// ------- Preamble ------- //
#include <avr/io.h>
#include <util/delay.h> /* Time delay function */
#define DELAYTIME 250 /* milliseconds */
#define LED_PORT PORTB
#define LED_DDR DDRB
int main(void) {
@pilinux
pilinux / or.c
Created February 12, 2016 10:21
Set bit with OR operation
// ------- Preamble ------- //
#include <avr/io.h>
#include <util/delay.h> /* Time delay function */
#define DELAYTIME 250 /* milliseconds */
#define LED_PORT PORTB
#define LED_DDR DDRB
int main(void) {
#include <stdio.h>
void main(int argc, char[] argv) {
printf("hello, world!\n");
}
@pilinux
pilinux / 0_reuse_code.js
Created October 18, 2015 23:43
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console