123456789101112131415161718192021 |
- #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;
- }
|