Update cubesatsim.ino

pull/161/head
alanbjohnston 4 years ago committed by GitHub
parent a1c28d38de
commit 846cdf152b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2714,14 +2714,16 @@ bool TimerHandler0(struct repeating_timer *t) {
tx_bit = (buffer[wav_position] > 0) ? HIGH: LOW; tx_bit = (buffer[wav_position] > 0) ? HIGH: LOW;
digitalWrite(AUDIO_OUT_PIN, tx_bit);
tx_bit = (buffer[wav_position++] > 0) ? true: false;
/*
if (tx_bit) if (tx_bit)
Serial.print("-"); Serial.print("-");
else else
Serial.print("_"); Serial.print("_");
digitalWrite(AUDIO_OUT_PIN, tx_bit);
tx_bit = (buffer[wav_position++] > 0) ? true: false;
/*
*/ */
pwm_config_set_output_polarity( &config, tx_bit, tx_bit); pwm_config_set_output_polarity( &config, tx_bit, tx_bit);
pwm_init(bpsk_pin_slice, &config, true); pwm_init(bpsk_pin_slice, &config, true);

Loading…
Cancel
Save

Powered by TurnKey Linux.