Search found 2 matches

by sesh
Mon Oct 16, 2023 7:47 pm
Forum: PR's bugs and enhancements
Topic: Issues with analogRead() for PB0 on Nucleo G431KB
Replies: 5
Views: 7934

Issues with analogRead() for PB0 on Nucleo G431KB

I am trying to use pin PB0 in analogRead mode on a Nucleo32 G431KB. This is the code that I am using: #include <Arduino.h> void setup() { Serial.begin(9600); pinMode(PB0, INPUT_ANALOG); } void loop() { int analogValue = analogRead(PB0); Serial.println("Analog Value (PB0): " + String(analog...

Go to advanced search