Merge pull request #8616 from hg42/bugfix-2.0.x

[2.0.x][LPC1768][FIX] NUM_DIGITAL_PINS was negative, fixes PWM, arduino io functions, M42, M43, M226, probably also Servo, some LCD, soft spi, SoftwareSerial, ... may be others
This commit is contained in:
Bob-the-Kuhn 2017-12-03 14:48:00 -06:00 committed by GitHub
commit fb44f8e50f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -239,7 +239,7 @@ constexpr pin_t pin_map[] = {
P_NC, P_NC, P_NC, P_NC, P4_28, P4_29, P_NC, P_NC
};
constexpr int8_t NUM_DIGITAL_PINS = COUNT(pin_map);
constexpr uint8_t NUM_DIGITAL_PINS = COUNT(pin_map);
constexpr pin_t adc_pin_table[] = {
P0_23, P0_24, P0_25, P0_26, P1_30, P1_31,