File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change 27
27
28
28
#include <avr/pgmspace.h>
29
29
30
+ #define NUM_DIGITAL_PINS 70
31
+ #define NUM_ANALOG_INPUTS 16
32
+ #define analogInputToDigitalPin (p ) ((p < 16) ? (p) + 54 : -1)
33
+ #define digitalPinHasPWM (p ) (((p) >= 2 && (p) <= 13) || ((p) >= 44 && (p)<= 46))
34
+
30
35
const static uint8_t SS = 53 ;
31
36
const static uint8_t MOSI = 51 ;
32
37
const static uint8_t MISO = 50 ;
Original file line number Diff line number Diff line change 27
27
28
28
#include <avr/pgmspace.h>
29
29
30
+ #define NUM_DIGITAL_PINS 20
31
+ #define NUM_ANALOG_INPUTS 6
32
+ #define analogInputToDigitalPin (p ) ((p < 6) ? (p) + 14 : -1)
33
+
34
+ #if defined(__AVR_ATmega8__ )
35
+ #define digitalPinHasPWM (p ) ((p) == 9 || (p) == 10 || (p) == 11)
36
+ #else
37
+ #define digitalPinHasPWM (p ) ((p) == 3 || (p) == 5 || (p) == 6 || (p) == 9 || (p) == 10 || (p) == 11)
38
+ #endif
39
+
30
40
const static uint8_t SS = 10 ;
31
41
const static uint8_t MOSI = 11 ;
32
42
const static uint8_t MISO = 12 ;
You can’t perform that action at this time.
0 commit comments