clockgen signals now controlled through analog switches

pull/207/head
alanbjohnston 3 years ago committed by GitHub
parent 2a37b56ce1
commit bf37b72bbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -3453,17 +3453,17 @@ bool TimerHandler0(struct repeating_timer *t) {
// Serial.println(micros() - micro_timer2);
micro_timer2 = micros();
if (buffer[wav_position++] > 0) {
// digitalWrite(BPSK_CONTROL_A, HIGH);
digitalWrite(BPSK_CONTROL_A, HIGH);
// delayMicroseconds(2);
// digitalWrite(BPSK_CONTROL_B, LOW);
digitalWrite(BPSK_CONTROL_B, LOW);
Serial.print("-");
clockgen.enableOutputOnly(1);
// clockgen.enableOutputOnly(1);
} else {
// digitalWrite(BPSK_CONTROL_B, HIGH);
digitalWrite(BPSK_CONTROL_B, HIGH);
// delayMicroseconds(2);
// digitalWrite(BPSK_CONTROL_A, LOW);
digitalWrite(BPSK_CONTROL_A, LOW);
Serial.print("_");
clockgen.enableOutputOnly(0);
// clockgen.enableOutputOnly(0);
}
/*
tx_bit = (buffer[wav_position] > 0) ? HIGH: LOW;

Loading…
Cancel
Save

Powered by TurnKey Linux.