ambiguous error with Pins
Posted: Tue Feb 04, 2020 6:52 am
Using a NANO with v2.9.2.
Why do I get error "conversion from 'PinIO' to 'WORD' is ambiguous" for each of the following:
But no error with:
Why do I get error "conversion from 'PinIO' to 'WORD' is ambiguous" for each of the following:
Code: Select all
WORD val = Pins[23];
WORD val = (WORD) Pins[23];
WORD val = ( Pins[23] ) ? 1:0;
Code: Select all
int val = Pins[23];
BYTE val = Pins[23];
if ( Pins[23] )
iprintf( "The pin is low" );