12-Channel LED Driver With Gray scale Adaptive Pulse Density Modulation Control IC Library. maker MY-Semi
Diff: MY9221.h
- Revision:
- 1:60440eb16f81
- Parent:
- 0:3a18655ada14
- Child:
- 2:4d9aee0bd724
diff -r 3a18655ada14 -r 60440eb16f81 MY9221.h --- a/MY9221.h Thu Oct 19 05:28:32 2017 +0000 +++ b/MY9221.h Sun Oct 22 00:22:18 2017 +0000 @@ -25,28 +25,8 @@ * @param IC serial connection number :min = 1(default) * @note nothing */ - MY9221(PinName di, PinName dcki, uint8_t number = 1); + MY9221(PinName di, PinName dcki, uint8_t number); - /** - * start of driver. - */ - void start(void); - - /** - * stop of driver. - */ - void stop(void); - - /** - * clear of data. - */ - void dataClear(void); - - /** - * set of commant - * @param uint16_t command MY9221 commandset - */ - void commandSet(uint16_t command); //========================= // command data description @@ -114,10 +94,13 @@ dataSet_t D[4]; // [0]:OUT3 [1]:OUT2 [2]:OUT1 [3]:OUT0 } commandData_t; +void initialTest(void); +void test(void); //---------------------------------------------------------- private: + /** send one word data * @param uint16_t data : send data @@ -131,18 +114,27 @@ */ void latch(void); +/** send brock data + * @param commandData_t *data : MY9221 Data + * @param uint8_t number : connection number (min=1) + * @param none + */ +void sendBrock(commandData_t *data, uint8_t number); + + + + + + DigitalOut _di; DigitalOut _dcki; - - + int8_t _number; + + commandData_t MY9221_data[10];//_number]; + - /* - volatile int16_t _onEdge; - volatile int16_t _offEdge; - volatile int16_t _levelNow; - volatile int16_t _levelOld; - */ + }; - +#undef _MY9221_C #endif // MBED_PCA9547_H \ No newline at end of file