Browse Source

„DMX_Interface.cpp“ löschen

master
Lars Mewes 2 years ago
parent
commit
977f4896d1
1 changed files with 0 additions and 21 deletions
  1. 0
    21
      DMX_Interface.cpp

+ 0
- 21
DMX_Interface.cpp View File

@@ -1,21 +0,0 @@
#include <stdio.h>
//#include "UART.h"
#include <wiringPiSPI.h>
#include "SPI_DMX.h"

# define measure_length(type) ((char *)(&type+1)-(char*)(&type))

/* demo.c: My first C program on a Linux */
int main(void)
{
printf("Hello! This is a test prgoram.\n");
SPI_DMX spi1(0);
spi1.nice();
unsigned char message[4] = {0x55,0x66,0x55,0x66};
//uart.TX_Bytes(message,measure_length(message));
spi1.TX_Bytes(message,4);
return 0;
}

Loading…
Cancel
Save