//#define ECHO 8
//#define TRIG 9
#define VM 18
#define AM 19
#define VD 21
void setup() {
// put your setup code here, to run once:
//Serial.begin(115200);
//Serial.println("Hello, STM32!");
pinMode (VM,OUTPUT);
pinMode (AM,OUTPUT);
pinMode (VD,OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
//delay(10); // this speeds up the simulation
digitalWrite(VM, HIGH);
delay(1000);
digitalWrite(VM, LOW);
delay(1000);
digitalWrite(AM, HIGH);
delay(1000);
digitalWrite(AM, LOW);
delay(1000);
digitalWrite(VD, HIGH);
delay(1000);
digitalWrite(VD, LOW);
delay(1000);
}
Loading
st-nucleo-c031c6
st-nucleo-c031c6