You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At one point I thought I saw some DAC code in place, but now I don't see it:
Tried simple sketch:
int sensorPin = A0; // select the input pin for the potentiometer
int sensorValue = 0; // variable to store the value coming from the sensor
int sensorValuePrev = -1;
int DACPin = A12;
void setup() {
// put your setup code here, to run once:
pinMode(LED_BUILTIN, OUTPUT);
Serial.begin(115200);
}
void loop() {
// put your main code here, to run repeatedly:
sensorValue = analogRead(sensorPin);
if (sensorValue != sensorValuePrev) {
digitalWrite(LED_BUILTIN, !digitalRead(LED_BUILTIN));
analogWrite(DACPin, sensorValue);
Serial.println(sensorValue);
sensorValuePrev = sensorValue;
}
delay(100);
}
Which faulted the processor. As A12 was not found in the list of PWM pins. This is covered in issue #19
Note: I pushed up a fix for the fault as part of my current PR: #32
Now need to see what code should be added to support this.
The text was updated successfully, but these errors were encountered:
@facchinm - I could be missing something, but I don't believe that there is any support at least for the
giga for PWM, except for the one Camera pin and maybe it works for those on the same timer.
I was playing with this awhile back and more data in the thread: #19 (comment)
I tried several different things, but found lots of issues and stuff I was unsure how to solve.
First one is your camera one,
But the others using Arduino_header pins, 0-5 are A0-A5,
So, the pins in this list correspond to: (D57, D0, A5, D11, D6, A2, A3, D3, D4)
Which I don't believe is what you want. I believe D2-D13, which I see by tables as well
as: https://docs.arduino.cc/tutorials/giga-r1-wifi/cheat-sheet/#pwm-pins
At one point I thought I saw some DAC code in place, but now I don't see it:
Tried simple sketch:
Which faulted the processor. As A12 was not found in the list of PWM pins. This is covered in issue #19
Note: I pushed up a fix for the fault as part of my current PR: #32
Now need to see what code should be added to support this.
The text was updated successfully, but these errors were encountered: