If I can to compile the code for the neopixel test, the Particle Build show me an error. Fail the library. I try to add the library manually, also add pwm, and rpihw library, but the building is impossible.
Can I use the neopixel library? can I use the ws2801 library? How I can git clone the https://github.com/spark/particle-pi-camera into my raspberry pi and compile all the package directly by using the particle agent?
Which?
Posting the error message is inevitable to tell what's wrong
First error is:
/workspace/rasp_neopixeltest.cpp:2:20: fatal error: ws2811.h: No such file or directory
#include "ws2811.h"
I add the ws2811.h file by github,
Second one is the same but the pwm.h file. I add the second pwm.h file and rpihw.h.
After this I read:
Processing /workspace/rasp_neopixeltest.ino
make -C ā¦/newlib_nano
make[1]: Entering directory '/firmware/newlib_nanoā
make[1]: Nothing to be done for āallā.
make[1]: Leaving directory '/firmware/newlib_nanoā
make -C ā¦/user
make[1]: Entering directory '/firmware/userā
Building cpp file: /workspace/rasp_neopixeltest.cpp
Invoking: ARM GCC CPP Compiler
mkdir -p ā¦/build/target/user/platform-31/workspace/
arm-unknown-linux-gnueabi-gcc -DPLATFORM_THREADING=0 -DPLATFORM_ID=31 -DPLATFORM_NAME=raspberrypi -DUSBD_VID_SPARK=0x1D50 -DUSBD_PID_DFU=0x607F -DUSBD_PID_CDC=0x607D -DEMBEDDED_TARGET=0 -g3 -O3 -gdwarf-2 -Wno-unused-local-typedefs -DINCLUDE_PLATFORM=1 -DPRODUCT_ID=31 -DPRODUCT_FIRMWARE_VERSION=65535 -DSYSTEM_VERSION_STRING=0.6.0-rc.1 -DRELEASE_BUILD -I./inc -Iā¦/wiring/inc -Iā¦/system/inc -Iā¦/services/inc -Iā¦/communication/src -Iā¦/hal/inc -Iā¦/hal/shared -I/workspace/ -I./libraries -I. -MD -MP -MF ā¦/build/target/user/platform-31/workspace/rasp_neopixeltest.o.d -ffunction-sections -fdata-sections -Wall -Wno-switch -Wno-error=deprecated-declarations -fmessage-length=0 -fno-strict-aliasing -DSPARK=1 -DPARTICLE=1 -DSTART_DFU_FLASHER_SERIAL_SPEED=14400 -DSTART_YMODEM_FLASHER_SERIAL_SPEED=28800 -DSPARK_PLATFORM_NET=gcc -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc -DLOG_INCLUDE_SOURCE_INFO -DMODULE_VERSION=0 -DMODULE_FUNCTION=3 -DMODULE_DEPENDENCY=0,0,0 -D_GNU_SOURCE -D_WINSOCK_H -DLOG_MODULE_CATEGORY="āappā" -fno-rtti -fcheck-new -std=gnu++11 -c -o ā¦/build/target/user/platform-31/workspace/rasp_neopixeltest.o /workspace/rasp_neopixeltest.cpp
In file included from /workspace/rasp_neopixeltest.cpp:2:0:
/workspace/rpihw.h:36:5: error: āuint32_tā does not name a type
uint32_t type;
^
/workspace/rpihw.h:40:5: error: āuint32_tā does not name a type
uint32_t hwver;
^
/workspace/rpihw.h:41:5: error: āuint32_tā does not name a type
uint32_t periph_base;
^
/workspace/rpihw.h:42:5: error: āuint32_tā does not name a type
uint32_t videocore_base;
^
In file included from /workspace/rasp_neopixeltest.cpp:5:0:
/workspace/pwm.h:58:5: error: āuint32_tā does not name a type
uint32_t ctl;
^
/workspace/pwm.h:74:5: error: āuint32_tā does not name a type
uint32_t sta;
^
/workspace/pwm.h:88:5: error: āuint32_tā does not name a type
uint32_t dmac;
^
/workspace/pwm.h:92:5: error: āuint32_tā does not name a type
uint32_t resvd_0x0c;
^
/workspace/pwm.h:93:5: error: āuint32_tā does not name a type
uint32_t rng1;
^
/workspace/pwm.h:94:5: error: āuint32_tā does not name a type
uint32_t dat1;
^
/workspace/pwm.h:95:5: error: āuint32_tā does not name a type
uint32_t fif1;
^
/workspace/pwm.h:96:5: error: āuint32_tā does not name a type
uint32_t resvd_0x1c;
^
/workspace/pwm.h:97:5: error: āuint32_tā does not name a type
uint32_t rng2;
^
/workspace/pwm.h:98:5: error: āuint32_tā does not name a type
uint32_t dat2;
^
In file included from /workspace/rasp_neopixeltest.cpp:8:0:
/workspace/ws2811.h:68:9: error: āuint32_tā does not name a type
typedef uint32_t ws2811_led_t; //< 0xWWRRGGBB
^
/workspace/ws2811.h:75:5: error: āws2811_led_tā does not name a type
ws2811_led_t *leds; //< LED buffers, allocated by driver based on count
^
/workspace/ws2811.h:76:5: error: āuint8_tā does not name a type
uint8_t brightness; //< Brightness value between 0 and 255
^
/workspace/ws2811.h:77:5: error: āuint8_tā does not name a type
uint8_t wshift; //< White shift value
^
/workspace/ws2811.h:78:5: error: āuint8_tā does not name a type
uint8_t rshift; //< Red shift value
^
/workspace/ws2811.h:79:5: error: āuint8_tā does not name a type
uint8_t gshift; //< Green shift value
^
/workspace/ws2811.h:80:5: error: āuint8_tā does not name a type
uint8_t bshift; //< Blue shift value
^
/workspace/ws2811.h:87:5: error: āuint32_tā does not name a type
uint32_t freq; //< Required output frequency
^
/workspace/rasp_neopixeltest.cpp:50:1: error: braces around scalar initializer for type 'intā
0,
^
/workspace/rasp_neopixeltest.cpp: In function āvoid rainbow(uint8_t)ā:
/workspace/rasp_neopixeltest.cpp:79:28: error: āstruct ws2811_channel_tā has no member named āledsā
^
ā¦/build/module.mk:264: recipe for target āā¦/build/target/user/platform-31/workspace/rasp_neopixeltest.oā failed
make[1]: Leaving directory '/firmware/userā
make[1]: *** [ā¦/build/target/user/platform-31/workspace/rasp_neopixeltest.o] Error 1
ā¦/build/recurse.mk:11: recipe for target āuserā failed
make: *** [user] Error 2