Coder Social home page Coder Social logo

equinox_clock's People

Contributors

benwilliam avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

equinox_clock's Issues

error: conflicting types for 'setLED'

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

Nothing in WS2812b_SPI

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

graphics.h not found

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

use RTC

use the internal RTC of the STM32F4

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.