mirror of https://github.com/noisymime/Arduino.git
Reversed order of analog input pins. Added printNewline().
This commit is contained in:
parent
e8de19d110
commit
30999fdcfd
10
readme.txt
10
readme.txt
|
@ -13,6 +13,16 @@ taking care of the production.
|
||||||
Yaniv Steiner and Giorgio Olivero have been supporting the project and are
|
Yaniv Steiner and Giorgio Olivero have been supporting the project and are
|
||||||
working at using it with the Instant Soup platform.
|
working at using it with the Instant Soup platform.
|
||||||
|
|
||||||
|
0003
|
||||||
|
millis() now updates every millisecond instead of every second.
|
||||||
|
FTDI USB drivers included with Mac and Windows distributions.
|
||||||
|
Bootloader included with Windows distribution.
|
||||||
|
Reversed the analog input pins to correspond to newer boards. This means
|
||||||
|
a call, for example, to analogRead(0) must be changed to analogRead(5) in
|
||||||
|
order to read the same physical pin.
|
||||||
|
Now flushing the serial port before uploading (should fix some errors).
|
||||||
|
Added a printNewline() function.
|
||||||
|
|
||||||
0002 - 2005.10.05
|
0002 - 2005.10.05
|
||||||
New build process no longer uses makefiles; now controlled by preferences.txt.
|
New build process no longer uses makefiles; now controlled by preferences.txt.
|
||||||
core/ replaced with targets/; can now link against Wiring libraries.
|
core/ replaced with targets/; can now link against Wiring libraries.
|
||||||
|
|
|
@ -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_out_pin_to_port = analog_out_pin_to_port_array;
|
||||||
|
|
||||||
pin_t analog_in_pin_to_port_array[NUM_ANALOG_IN_PINS] = {
|
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, 0 },
|
||||||
|
{ PC, 1 },
|
||||||
|
{ PC, 2 },
|
||||||
|
{ PC, 3 },
|
||||||
|
{ PC, 4 },
|
||||||
|
{ PC, 5 },
|
||||||
};
|
};
|
||||||
|
|
||||||
pin_t *analog_in_pin_to_port = analog_in_pin_to_port_array;
|
pin_t *analog_in_pin_to_port = analog_in_pin_to_port_array;
|
||||||
|
|
|
@ -207,6 +207,11 @@ void printByte(unsigned char c)
|
||||||
serialWrite(c);
|
serialWrite(c);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void printNewline()
|
||||||
|
{
|
||||||
|
printByte('\n');
|
||||||
|
}
|
||||||
|
|
||||||
void printString(unsigned char *s)
|
void printString(unsigned char *s)
|
||||||
{
|
{
|
||||||
while (*s)
|
while (*s)
|
||||||
|
|
Loading…
Reference in New Issue