Using I/O pins


Author Message
Maniccyberdog
Newbie

Joined: 19/02/2018
Location: United Kingdom
Posts: 13
Posted: 01:23pm 11 Dec 2019      

Dear fellow MM users,

I'm just working on my first project and have a small problem (using a PIC32MX170).  I have a ILI9341 working ok, and a DS18B20 sensor all ok.  I'm adding a another sensor that gives a logic 0/1 at 3.3v but have been unable to get this to work.

So far I have tried 3 different pins 4,5,17

code used;
SETPIN 17,DIN
PRINT PIN(17)

I have also changed the option to pullup and pulldown both show the correct values with the print statement and nothing connected to the pin.  If I set the option to pullup and ground the pin, the resulting output is 1 from PRINT PIN(17)

What I'm I missing?