10000 Clear Code · cezer-io/cezerio-blocks-arduino@a29ff5c · GitHub
[go: up one dir, main page]

Skip to content

Commit a29ff5c

Browse files
committed
Clear Code
1 parent 67518f8 commit a29ff5c

File tree

1 file changed

+0
-81
lines changed

1 file changed

+0
-81
lines changed

variants/cezerioblocks/pins_arduino.h

Lines changed: 0 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,3 @@
1-
/*
2-
pins_arduino.h - Pin definition functions for Arduino
3-
Part of Arduino - http://www.arduino.cc/
4-
5-
Copyright (c) 2007 David A. Mellis
6-
7-
This library is free software; you can redistribute it and/or
8-
modify it under the terms of the GNU Lesser General Public
9-
License as published by the Free Software Foundation; either
10-
version 2.1 of the License, or (at your option) any later version.
11-
12-
This library is distributed in the hope that it will be useful,
13-
but WITHOUT ANY WARRANTY; without even the implied warranty of
14-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15-
Lesser General Public License for more details.
16-
17-
You should have received a copy of the GNU Lesser General
18-
Public License along with this library; if not, write to the
19-
Free Software Foundation, Inc., 59 Temple Place, Suite 330,
20-
Boston, MA 02111-1307 USA
21-
*/
22-
231
#ifndef Pins_Arduino_h
242
#define Pins_Arduino_h
253

@@ -80,49 +58,6 @@ static const uint8_t A7 = PIN_A7;
8058

8159
#ifdef ARDUINO_MAIN
8260

83-
// On the Arduino board, digital pins are also used
84-
// for the analog output (software PWM). Analog input
85-
// pins are a separate set.
86-
87-
// ATMEL ATMEGA8 & 168 / ARDUINO
88-
//
89-
// +-\/-+
90-
// PC6 1| |28 PC5 (AI 5)
91-
// (D 0) PD0 2| |27 PC4 (AI 4)
92-
// (D 1) PD1 3| |26 PC3 (AI 3)
93-
// (D 2) PD2 4| |25 PC2 (AI 2)
94-
// PWM+ (D 3) PD3 5| |24 PC1 (AI 1)
95-
// (D 4) PD4 6| |23 PC0 (AI 0)
96-
// VCC 7| |22 GND
97-
// GND 8| |21 AREF
98-
// PB6 9| |20 AVCC
99-
// PB7 10| |19 PB5 (D 13)
100-
// PWM+ (D 5) PD5 11| |18 PB4 (D 12)
101-
// PWM+ (D 6) PD6 12| |17 PB3 (D 11) PWM
102-
// (D 7) PD7 13| |16 PB2 (D 10) PWM
103-
// (D 8) PB0 14| |15 PB1 (D 9) PWM
104-
// +----+
105-
//
106-
// (PWM+ indicates the additional PWM pins on the ATmega168.)
107-
108-
// ATMEL ATMEGA1280 / ARDUINO
109-
//
110-
// 0-7 PE0-PE7 works
111-
// 8-13 PB0-PB5 works
112-
// 14-21 PA0-PA7 works
113-
// 22-29 PH0-PH7 works
114-
// 30-35 PG5-PG0 works
115-
// 36-43 PC7-PC0 works
116-
// 44-51 PJ7-PJ0 works
117-
// 52-59 PL7-PL0 works
118-
// 60-67 PD7-PD0 works
119-
// A0-A7 PF0-PF7
120-
// A8-A15 PK0-PK7
121-
122-
123-
// these arrays map port names (e.g. port B) to the
124-
// appropriate addresses for various functions (e.g. reading
125-
// and writing)
12661
const uint16_t PROGMEM port_to_mode_PGM[] = {
12762
NOT_A_PORT,
12863
NOT_A_PORT,
@@ -230,24 +165,8 @@ const uint8_t PROGMEM digital_pin_to_timer_PGM[] = {
230165
NOT_ON_TIMER,
231166
NOT_ON_TIMER,
232167
};
233-
234168
#endif
235169

236-
// These serial port names are intended to allow libraries and architecture-neutral
237-
// sketches to automatically default to the correct port name for a particular type
238-
// of use. For example, a GPS module would normally connect to SERIAL_PORT_HARDWARE_OPEN,
239-
// the first hardware serial port whose RX/TX pins are not dedicated to another use.
240-
//
241-
// SERIAL_PORT_MONITOR Port which normally prints to the Arduino Serial Monitor
242-
//
243-
// SERIAL_PORT_USBVIRTUAL Port which is USB virtual serial
244-
//
245-
// SERIAL_PORT_LINUXBRIDGE Port which connects to a Linux system via Bridge library
246-
//
247-
// SERIAL_PORT_HARDWARE Hardware serial port, physical RX & TX pins.
248-
//
249-
// SERIAL_PORT_HARDWARE_OPEN Hardware serial ports which are open for use. Their RX & TX
250-
// pins are NOT connected to anything by default.
251170
#define SERIAL_PORT_MONITOR Serial
252171
#define SERIAL_PORT_HARDWARE Serial
253172

0 commit comments

Comments
 (0)
0