Firstly I set the GPIO to input using GPIO -> DIRCLR[0] =(1UL << sensor1)
//sensor 1 is gpio 19 which is the output voltage from temperature sensor
im trying to read it and print it to the console using
GPIO -> B[0][sensor1]
the problem is I’m constantly getting 0 as the voltage.
Hello Jada246 ,
Please first use logic to confirm there is signal in gpio pin.
Then check your code, you'd better refer to to gpio demo, which chip do you used,
I can help to provide demo.
Also check whether enable GPIO clock.
Regards,
Alice