benwilliam / equinox_clock Goto Github PK
View Code? Open in Web Editor NEWfirt steps to build an equinox clock with an STM32F4 + TLC5940
firt steps to build an equinox clock with an STM32F4 + TLC5940
Hi! The graphics.c issue was solved! Thanks! :)
Now however, i get different results for building the TLC and WS2812 projects.
I have built (after cleaning) both of the projects, the TLC one builds fine, no errors whatsoever.
The WS2812 one gives the following list of errors, i dont understand. Is there a setting i'm missing? Or do i have the wrong toolchain version or something?
Thanks again! :)
GCC HOME: C:\Program Files (x86)\GNU Tools ARM Embedded\4.7 2013q2\bin
compile:
[mkdir] Created dir: C:\equinox_clock-master\WS2811\WS2811\Debug\bin
[mkdir] Created dir: C:\equinox_clock-master\WS2811\WS2811\Debug\obj
[cc] 12 total files to be compiled.
[cc] arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -Wall -ffunction-sections -g -O0 -flto -fno-builtin -std=c99 -c -DSTM32F407VG -DSTM32F4XX -DUSE_STDPERIPH_DRIVER -D__ASSEMBLY__ -IC:\equinox_clock-master\WS2811\cmsis_boot -IC:\equinox_clock-master -IC:\ -IC:\equinox_clock-master\WS2811\cmsis_lib -IC:\equinox_clock-master\WS2811 -IC:\equinox_clock-master\WS2811\cmsis -IC:\equinox_clock-master\WS2811\cmsis_lib\include C:\equinox_clock-master\WS2811\cmsis_lib\source\stm32f4xx_syscfg.c C:\equinox_clock-master\WS2811\WS2811.c C:\equinox_clock-master\WS2811\cmsis_boot\startup\startup_stm32f4xx.c C:\equinox_clock-master\WS2811\main.c C:\equinox_clock-master\WS2811\cmsis_lib\source\stm32f4xx_rcc.c C:\equinox_clock-master\WS2811\cmsis_lib\source\stm32f4xx_gpio.c C:\equinox_clock-master\WS2811\cmsis_boot\system_stm32f4xx.c C:\equinox_clock-master\WS2811\cmsis_lib\source\stm32f4xx_dma.c C:\equinox_clock-master\WS2811\cmsis_lib\source\stm32f4xx_spi.c C:\equinox_clock-master\WS2811\cmsis_lib\source\misc.c C:\equinox_clock-master\WS2811\graphics.c C:\equinox_clock-master\WS2811\cmsis_lib\source\stm32f4xx_tim.c
[cc] In file included from C:\equinox_clock-master\WS2811\WS2811.c:2:0:
[cc] C:\equinox_clock-master\WS2811\WS2811.h:47:6: error: conflicting types for 'setLED'
[cc] C:\equinox_clock-master\WS2811\WS2811.h:46:6: note: previous declaration of 'setLED' was here
[cc] C:\equinox_clock-master\WS2811\WS2811.h:50:6: error: conflicting types for 'setAllLED'
[cc] C:\equinox_clock-master\WS2811\WS2811.h:49:6: note: previous declaration of 'setAllLED' was here
[cc] C:\equinox_clock-master\WS2811\WS2811.c:48:6: error: conflicting types for 'setLED'
[cc] C:\equinox_clock-master\WS2811\WS2811.c:40:6: note: previous definition of 'setLED' was here
[cc] C:\equinox_clock-master\WS2811\WS2811.c: In function 'setLED_32':
[cc] C:\equinox_clock-master\WS2811\WS2811.c:60:2: error: incompatible type for argument 2 of 'setLED'
[cc] C:\equinox_clock-master\WS2811\WS2811.c:48:6: note: expected 'color' but argument is of type 'long unsigned int'
[cc] C:\equinox_clock-master\WS2811\WS2811.c:60:2: error: too many arguments to function 'setLED'
[cc] C:\equinox_clock-master\WS2811\WS2811.c:48:6: note: declared here
[cc] C:\equinox_clock-master\WS2811\WS2811.c: In function 'setAllLED':
[cc] C:\equinox_clock-master\WS2811\WS2811.c:66:3: error: incompatible type for argument 2 of 'setLED'
[cc] C:\equinox_clock-master\WS2811\WS2811.c:48:6: note: expected 'color' but argument is of type 'uint8_t'
[cc] C:\equinox_clock-master\WS2811\WS2811.c:66:3: error: too many arguments to function 'setLED'
[cc] C:\equinox_clock-master\WS2811\WS2811.c:48:6: note: declared here
[cc] C:\equinox_clock-master\WS2811\WS2811.c: At top level:
[cc] C:\equinox_clock-master\WS2811\WS2811.c:70:6: error: conflicting types for 'setAllLED'
[cc] C:\equinox_clock-master\WS2811\WS2811.c:63:6: note: previous definition of 'setAllLED' was here
[cc] C:\equinox_clock-master\WS2811\WS2811.c: In function 'clearAllLED':
[cc] C:\equinox_clock-master\WS2811\WS2811.c:85:2: error: incompatible type for argument 1 of 'setAllLED'
[cc] C:\equinox_clock-master\WS2811\WS2811.c:70:6: note: expected 'color' but argument is of type 'int'
[cc] C:\equinox_clock-master\WS2811\WS2811.c:85:2: error: too many arguments to function 'setAllLED'
[cc] C:\equinox_clock-master\WS2811\WS2811.c:70:6: note: declared here
[cc] In file included from C:\equinox_clock-master\WS2811\main.c:1:0:
[cc] C:\equinox_clock-master\WS2811\WS2811.h:47:6: error: conflicting types for 'setLED'
[cc] C:\equinox_clock-master\WS2811\WS2811.h:46:6: note: previous declaration of 'setLED' was here
[cc] C:\equinox_clock-master\WS2811\WS2811.h:50:6: error: conflicting types for 'setAllLED'
[cc] C:\equinox_clock-master\WS2811\WS2811.h:49:6: note: previous declaration of 'setAllLED' was here
[cc] C:\equinox_clock-master\WS2811\main.c: In function 'main':
[cc] C:\equinox_clock-master\WS2811\main.c:20:6: error: incompatible type for argument 2 of 'setLED'
[cc] In file included from C:\equinox_clock-master\WS2811\main.c:1:0:
[cc] C:\equinox_clock-master\WS2811\WS2811.h:47:6: note: expected 'color' but argument is of type 'int'
[cc] C:\equinox_clock-master\WS2811\main.c:20:6: error: too many arguments to function 'setLED'
[cc] In file included from C:\equinox_clock-master\WS2811\main.c:1:0:
[cc] C:\equinox_clock-master\WS2811\WS2811.h:47:6: note: declared here
[cc] C:\equinox_clock-master\WS2811\main.c:21:6: error: incompatible type for argument 2 of 'setLED'
[cc] In file included from C:\equinox_clock-master\WS2811\main.c:1:0:
[cc] C:\equinox_clock-master\WS2811\WS2811.h:47:6: note: expected 'color' but argument is of type 'int'
[cc] C:\equinox_clock-master\WS2811\main.c:21:6: error: too many arguments to function 'setLED'
[cc] In file included from C:\equinox_clock-master\WS2811\main.c:1:0:
[cc] C:\equinox_clock-master\WS2811\WS2811.h:47:6: note: declared here
[cc] C:\equinox_clock-master\WS2811\main.c:22:6: error: incompatible type for argument 2 of 'setLED'
[cc] In file included from C:\equinox_clock-master\WS2811\main.c:1:0:
[cc] C:\equinox_clock-master\WS2811\WS2811.h:47:6: note: expected 'color' but argument is of type 'int'
[cc] C:\equinox_clock-master\WS2811\main.c:22:6: error: too many arguments to function 'setLED'
[cc] In file included from C:\equinox_clock-master\WS2811\main.c:1:0:
[cc] C:\equinox_clock-master\WS2811\WS2811.h:47:6: note: declared here
[cc] C:\equinox_clock-master\WS2811\main.c:26:6: error: incompatible type for argument 2 of 'setLED'
[cc] In file included from C:\equinox_clock-master\WS2811\main.c:1:0:
[cc] C:\equinox_clock-master\WS2811\WS2811.h:47:6: note: expected 'color' but argument is of type 'int'
[cc] C:\equinox_clock-master\WS2811\main.c:26:6: error: too many arguments to function 'setLED'
[cc] In file included from C:\equinox_clock-master\WS2811\main.c:1:0:
[cc] C:\equinox_clock-master\WS2811\WS2811.h:47:6: note: declared here
[cc] C:\equinox_clock-master\WS2811\main.c:30:6: error: incompatible type for argument 2 of 'setLED'
[cc] In file included from C:\equinox_clock-master\WS2811\main.c:1:0:
[cc] C:\equinox_clock-master\WS2811\WS2811.h:47:6: note: expected 'color' but argument is of type 'int'
[cc] C:\equinox_clock-master\WS2811\main.c:30:6: error: too many arguments to function 'setLED'
[cc] In file included from C:\equinox_clock-master\WS2811\main.c:1:0:
[cc] C:\equinox_clock-master\WS2811\WS2811.h:47:6: note: declared here
[cc] C:\equinox_clock-master\WS2811\main.c:39:3: error: incompatible type for argument 2 of 'setLED'
[cc] In file included from C:\equinox_clock-master\WS2811\main.c:1:0:
[cc] C:\equinox_clock-master\WS2811\WS2811.h:47:6: note: expected 'color' but argument is of type 'int'
[cc] C:\equinox_clock-master\WS2811\main.c:39:3: error: too many arguments to function 'setLED'
[cc] In file included from C:\equinox_clock-master\WS2811\main.c:1:0:
[cc] C:\equinox_clock-master\WS2811\WS2811.h:47:6: note: declared here
[cc] C:\equinox_clock-master\WS2811\main.c:43:3: error: incompatible type for argument 2 of 'setLED'
[cc] In file included from C:\equinox_clock-master\WS2811\main.c:1:0:
[cc] C:\equinox_clock-master\WS2811\WS2811.h:47:6: note: expected 'color' but argument is of type 'int'
[cc] C:\equinox_clock-master\WS2811\main.c:43:3: error: too many arguments to function 'setLED'
[cc] In file included from C:\equinox_clock-master\WS2811\main.c:1:0:
[cc] C:\equinox_clock-master\WS2811\WS2811.h:47:6: note: declared here
[cc] In file included from C:\equinox_clock-master\WS2811\graphics.h:4:0,
[cc] from C:\equinox_clock-master\WS2811\graphics.c:1:
[cc] C:\equinox_clock-master\WS2811\WS2811.h:47:6: error: conflicting types for 'setLED'
[cc] C:\equinox_clock-master\WS2811\WS2811.h:46:6: note: previous declaration of 'setLED' was here
[cc] C:\equinox_clock-master\WS2811\WS2811.h:49:6: note: previous declaration of 'setAllLED' was here
[cc] C:\equinox_clock-master\WS2811\graphics.c: In function 'fadeLiniearDown':
[cc] C:\equinox_clock-master\WS2811\WS2811.h:50:6: error: conflicting types for 'setAllLED'
[cc] C:\equinox_clock-master\WS2811\graphics.c:185:10: warning: unused variable 'fadingSteps' [-Wunused-variable]
[cc] C:\equinox_clock-master\WS2811\graphics.c: At top level:
[cc] C:\equinox_clock-master\WS2811\graphics.c:20:16: warning: 'maxColorValue' defined but not used [-Wunused-function]
[cc] C:\equinox_clock-master\WS2811\graphics.c:60:13: warning: 'incrementLED' defined but not used [-Wunused-function]
[cc] C:\equinox_clock-master\WS2811\graphics.c:67:13: warning: 'decrementLED' defined but not used [-Wunused-function]
BUILD FAILED
Total time: 2 seconds
Hello benwilliam
At first of all: Great Job. Your Programm for the WS2811 works realy fine.
Do you already have some code for your second Project with SPI? I would be realy interested on testing this version. The readme sound realy great, but i can't find any files...
Looking forward to hear from You!
Joe_91
Hi!
I'm pretty much a noob when it comes to both developer board as well WS2812 projects, but have an STM32F07Discovery and an Adafruit NeoPixel strip. Wanted to try out this code, but am getting the following message when i compile in CoIDE:
[cc] C:\equinox_clock-master\WS2811\main.c:2:22: fatal error: graphics.h: No such file or directory
Am i missing something i should have installed? Or is there a file missing on github?
Thanks a lot for sharing your code, it looks very nice and clean :)
Best regards,
Ralph
write efficient WS2812 driver
use the internal RTC of the STM32F4
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.