goodmanrs / u8glib

Automatically exported from code.google.com/p/u8glib
Other
0 stars 0 forks source link

Sanguino patch #145

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi Oliver,

hier ein kleiner Patch um Deine Lib Sanguino kompatibel zu machen.

u8g_com_arduino_hw_spi.c

#include "u8g.h"

#if defined(ARDUINO)

#if defined(__AVR__)

#include <avr/interrupt.h>
#include <avr/io.h>

#if ARDUINO < 100
#include <WProgram.h>
//#include <pins_arduino.h>

============================================================================
========================
/* fixed pins */
        #if defined(__AVR_ATmega644P__) || defined(__AVR_ATmega1284P__) //
Sanguino.cc board
        #define PIN_SCK         7
        #define PIN_MISO        6
        #define PIN_MOSI        5
        #define PIN_CS          4
        #else                                   // Arduino Board
        #define PIN_SCK         13
        #define PIN_MISO        12
        #define PIN_MOSI        11
        #define PIN_CS          10
        #endif // (__AVR_ATmega644P__) || defined(__AVR_ATmega1284P__)
============================================================================
=========================

Original issue reported on code.google.com by olikr...@gmail.com on 19 Feb 2013 at 6:49

GoogleCodeExporter commented 8 years ago
done

Original comment by olikr...@gmail.com on 23 Feb 2013 at 10:01