1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-30 16:24:09 +03:00

Reversed order of analog input pins. Added printNewline().

This commit is contained in:
David A. Mellis
2005-11-28 13:31:08 +00:00
parent e8de19d110
commit 30999fdcfd
4 changed files with 21 additions and 6 deletions

View File

@ -126,12 +126,12 @@ pin_t analog_out_pin_to_port_array[NUM_DIGITAL_PINS] = {
pin_t *analog_out_pin_to_port = analog_out_pin_to_port_array;
pin_t analog_in_pin_to_port_array[NUM_ANALOG_IN_PINS] = {
{ PC, 5 },
{ PC, 4 },
{ PC, 3 },
{ PC, 2 },
{ PC, 1 },
{ PC, 0 },
{ PC, 1 },
{ PC, 2 },
{ PC, 3 },
{ PC, 4 },
{ PC, 5 },
};
pin_t *analog_in_pin_to_port = analog_in_pin_to_port_array;

View File

@ -207,6 +207,11 @@ void printByte(unsigned char c)
serialWrite(c);
}
void printNewline()
{
printByte('\n');
}
void printString(unsigned char *s)
{
while (*s)