alternate with all 1's

pico-fc-test
alanbjohnston 3 years ago committed by GitHub
parent 7ab873acaa
commit 9edeb531df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1414,7 +1414,11 @@ void get_tlm_fox() {
//void write_wave(int i, short int *buffer) //void write_wave(int i, short int *buffer)
void write_wave(int i, byte *buffer) void write_wave(int i, byte *buffer)
{ {
if ((loop_count % 2) == 0)
buffer[ctr++] = (byte)(phase == 1); buffer[ctr++] = (byte)(phase == 1);
else
buffer[ctr++] = 1;
// Serial.printf("buffer is %d \n", buffer[ctr - 1]); // Serial.printf("buffer is %d \n", buffer[ctr - 1]);
// Serial.print(ctr); // Serial.print(ctr);
// Serial.print(" "); // Serial.print(" ");

Loading…
Cancel
Save

Powered by TurnKey Linux.