[ create a new paste ] login | about

Canopus

Name: Canopus
Email:
Site/Blog:
Location: Czech
Default language: C
Favorite languages: html, basic
About:

Saved pastes by Canopus:

C, pasted on Jun 12:
1
2
3
#include <avr/io.h>
#include <inttypes.h>
#include <util/delay.h>
...
view (356 lines)
C, pasted on Apr 15:
1
2
3
4
5
/*
void DACwaddr(unsigned char value); // zapis adresy pro DAC 8b
void DACwdata(unsigned int value);  // zapis dat pro DAC 16b
void DAClatch(void);                // latchne DAC data
void DACclr(void);
...
view (93 lines)
Haskell, pasted on Apr 5:
1
2
3
4
5
Dim w1 As Single
Dim w2 As Byte

Dim x1 As Single
Dim x2 As Byte
...
view (67 lines)
C, pasted on Mar 26:
1
2
3
4
5
//  Main.c

/*
 * Copyright:      
 * Author:         
...
view (81 lines)
C, pasted on Mar 26:
1
2
3
4
5
// Bitmap.h

#include <avr/pgmspace.h>
#define LCD_WIDTH 128
#ifndef	BITMAP_H
...
view (139 lines)
C, pasted on Mar 26:
1
2
3
4
5
#include <avr/pgmspace.h>
#define LCD_WIDTH 128
#ifndef	BITMAP_H
#define BITMAP_H
const static uint8_t IMAGE[] PROGMEM = {
...
view (137 lines)
C, pasted on Mar 22:
1
2
3
4
5
// GLCD - glcd.h

#include <util/delay.h> 
#include <stdlib.h>
#include <math.h>
...
view (662 lines)
C, pasted on Mar 22:
1
2
3
4
5
// GLCD - main.c
/*****************************************************
This program was produced by the
CodeWizardAVR V2.03.4 Standard
Automatic Program Generator
...
view (126 lines)
C, pasted on Mar 4:
1
2
3
4
5
// 74HC595

#include <avr/io.h>
 
// funkce pro přenos do 74595
...
view (45 lines)
C, pasted on Feb 27:
1
2
3
4
// AD7715_5.c

// Created: 27.2.2014 18:56:09
//  Author: Filip
...
view (188 lines)
C, pasted on Jan 20:
1
2
3
4
5
 // LCD display 128x64 w ST7920 driver connection:
 // D0..D7 - PA0..7
 // E      - PC7
 // RS     - PC6
 // RST    - PC5
...
view (150 lines)
C, pasted on Jan 12:
1
2
3
4
5
#define F_CPU 4000000UL  // taktovací frekvence procesoru 4 MHz 

#include <avr/io.h>			
#include <avr/interrupt.h>
#include <avr/pgmspace.h>   // pgm_read_byte()
...
view (153 lines)
C, pasted on Jan 5:
1
2
3
4
5
/*
 * LCD_test.c
 *
 * Created: 1.1.2014 19:17:18
 *  Author: Filip
...
view (164 lines)
C, pasted on Dec 26:
1
2
3
4
5
int main(void)
{
	DDRB = 0b10100000;     // Set MOSI and SCK output, all others input 
	                
	SPCR = (1<<SPE)|(1<<MSTR)|(1<<SPR0);    // Enable SPI, Master, set clock rate fck/16 
...
view (23 lines)
C, pasted on Dec 26:
1
2
3
4
5
/* This program has read and write routines for the 68HC11 to interface to the AD7715 and the sample
program sets the various registers and then reads 1000 samples from the part. */
#include <math.h>
#include <io6811.h>
#define NUM_SAMPLES 1000 /* change the number of data samples */
...
view (59 lines)
C, pasted on Dec 26:
1
2
3
4
5
#include <avr/io.h>
#include <math.h>


#define NUM_SAMPLES 1000   /* change the number of data samples */
...
view (126 lines)