/* * wsmon - monitor for WS2812B on LPC810 * by uratan! 2014.11.01 */ /* * how to use */ connect uart0(same as ISP mode) at 57600bps, this menu will appear +-------------------------------------------- |/* | * WS2812B bench for LPC810 ver.0.21 <=== version is here | * [command list] (N_LEDs is: 3) | * s,g -- select drive method: SPI/GPIO | * t -- toggle auto-mode: ON/off | * RET,BS -- rotate values | * u,i,o -- inc G,R,B | * j,k,l -- dec G,R,B | * SPC -- send | * n/m -- tune GPIO narrow pulse width | * ,/. -- tune GPIO wide pulse width | * d --- dump LPC810 regs | * ? --- display this menu | */ | SPI mode |] +-------------------------------------------- /* * FILES */ 00README.txt --- this file Makefile --- Makefile for make.exe link.awk --- a AWK script to generate linker script Startup.S --- CPU start up main.c --- main entry common.h --- system shared difinitions common.c --- system shared functions (uart) rprintf.c --- simple printf() (from sample of WinARM_20060606.zip) wconsole.c --- a monitor to examine WS2812B / LPC810 drive.c --- drive WS2812B, by SPI or GPIO uart1.c --- handle uart1 to get Ir signal d_regs.c --- dump LPC810 peripheral registers wsmon-0NN.hex --- hex file image made Compiler used is gcc-4.7.1(2012-0616) from yagarto You may need sh.exe and rm.exe, seek it from web please. Get LPC810 related definitions from: lpcopen_2_01_lpcxpresso_nxp_lpcxpresso_812.zip (LPCXpresso v6.1.0_164, LPCOpen 2.xx software package for LPCXpresso LPC812 boead) then place lpc_chip_8xx_lib/inc/ to ../chip-inc/. GNU awk を持ってない? これを使いなさい。 Don't you have GNU awk ? use this. -- uratan@st.rim.or.jp