Search found 2 matches
- Tue Oct 17, 2023 8:50 am
- Forum: PR's bugs and enhancements
- Topic: Issues with analogRead() for PB0 on Nucleo G431KB
- Replies: 5
- Views: 15256
Re: Issues with analogRead() for PB0 on Nucleo G431KB
Tried that, it still doesn't work
- 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: 15256
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 ...
#include <Arduino.h>
void setup() {
Serial.begin(9600);
pinMode(PB0, INPUT_ANALOG);
}
void loop() {
int analogValue = analogRead(PB0);
Serial.println("Analog Value (PB0): " + String ...