Quantcast
Channel: Arduino Forum - Latest topics
Viewing all articles
Browse latest Browse all 15733

Portenta H7 on code upload the board port disconnects

$
0
0
const int out_pin = A0;                       // Setting output pin
int count = 0;                               // counters
int t0 = 0;
double freq = 0;


void setup() {
    
    Serial.begin(9600);
    analogWriteResolution(12); // setting analog write resolution to 12 bits (0 - 4095)
    analogReadResolution(12);  // setting analog read resolution to 12 bits (0 - 4095)

    }

void loop() {
        t0 = micros();
      analogWrite(out_pin,1*count);

                    
                count += 1;
 

}

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 15733

Latest Images

Trending Articles



Latest Images