Compare commits
2 commits
dc1a63fbb0
...
f653fe0914
Author | SHA1 | Date | |
---|---|---|---|
|
f653fe0914 | ||
|
273a477a37 |
2 changed files with 4 additions and 1 deletions
|
@ -55,6 +55,7 @@ static constexpr int CC = MAXPWM / 2;
|
|||
static pthread_t rc;
|
||||
|
||||
void * WriteHandler (void * data) {
|
||||
usleep(10'000);
|
||||
printf ("Start thread\n");
|
||||
PwmClass * pA = (PwmClass *) data;
|
||||
Sample buf [BufLen];
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
#include <cstdio>
|
||||
#include <mutex>
|
||||
#include "utils.h"
|
||||
|
||||
void print_morse_table (const TABLE<unsigned char, 64> & tab) {
|
||||
int n = 0;
|
||||
printf("static const unsigned char compressed_table [] = {");
|
||||
for (auto & e: tab) {
|
||||
if ((n % 16) == 0) printf("\n");
|
||||
if ((n % 16) == 0) printf("\n ");
|
||||
printf("0x%02x,", e);
|
||||
n++;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue