colorchord/embeddedcc.c

30 lines
475 B
C
Raw Normal View History

2015-04-01 06:21:01 +02:00
//
// This is the teststrap for the Embedded ColorChord System.
// It is intended as a minimal scaffolding for testing Embedded ColorChord.
//
#include <stdio.h>
#include "embeddednf.h"
2015-04-01 06:21:01 +02:00
#include "dft.h"
int main()
{
int wf = 0;
int ci;
Init();
while( ( ci = getchar() ) != EOF )
{
int cs = ci - 0x80;
Push8BitIntegerSkippy( (int8_t)cs );
//printf( "%d ", cs ); fflush( stdout );
wf++;
if( wf == 64 )
{
HandleFrameInfo();
wf = 0;
}
}
return 0;
}