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

@ -2712,16 +2712,18 @@ bool TimerHandler0(struct repeating_timer *t) {
// Serial.print(wav_position);
// Serial.print(" ");
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)
Serial.print("-");
else
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_init(bpsk_pin_slice, &config, true);

Loading…
Cancel
Save

Powered by TurnKey Linux.