/* * spi.h * * Created: 21-3-2016 15:05:54 * Author: kenny */ #ifndef SPI_H_ #define SPI_H_ /* * Project name : Demo5_7a : spi - 7 segments display * Author : Avans-TI, WvdE, JW * Revision History : 20110228: - initial release; 20120307: - this version * Description : This program sends data to a 4-digit display with spi * Test configuration: MCU: ATmega128 Dev.Board: BIGAVR6 Oscillator: External Clock 08.0000 MHz Ext. Modules: Serial 7-seg display SW: AVR-GCC * NOTES : Turn ON switch 15, PB1/PB2/PB3 to MISO/MOSI/SCK */ #define BIT(x) ( 1<