[Swansea Hackspace] (no subject)

Alice Mitchell alice at swansea.hackspace.org.uk
Sun Aug 9 18:16:09 BST 2020


On Sat, 2020-08-08 at 22:57 +0100, Ceri Clatworthy wrote:
> 
> Hi all,
> 
> I found this project:
> 
> https://www.instructables.com/id/Play-With-Fire-Over-WIFI-ESP8266-Neopixels/ 
> 
> Really fancied making something 'flashy' 
> But I cannot get the code to compile, SPI hardware not defined, 
> using softSPI or similar error.
> 
> As you might know I am not an arduino fan, so well confused.
> 
> I have an ESP8266 module, I have got A-N-Other wifi project to work
> so the module is OK.
> 
> 
> Anyone know how to fix it ??
> 

Oh jeez, the file as linked does not compile, all sorts of mess.
tidying it up a bit i can get it to build.

some important lines wound up as comments, some functions got called
before they were defined. stuff like that.
attached the fixed version.




> In file included from
> C:\Users\3D\Documents\Arduino\libraries\FastLED/FastLED.h:65:0,
> 
>                  from C:\Users\3D\Documents\Arduino\Fire
> Lamp\fire\fire.ino:3:
> 
> C:\Users\3D\Documents\Arduino\libraries\FastLED/fastspi.h:130:23:
> note: #pragma message: No hardware SPI pins defined.  All SPI access
> will default to bitbanged output
> 
>  #      pragma message "No hardware SPI pins defined.  All SPI access
> will default to bitbanged output"
> 

this is a warning, it applies to all ESP devices and this library, just
ignore it.



> C:\Users\3D\Documents\Arduino\libraries\FastLED/fastpin.h:207:2:
> error: static assertion failed: Invalid pin specified
> 
>   static_assert(validpin(), "Invalid pin specified");
> 
>   ^

what did you change DATA_PIN to ?



attached version compiles in Arduino 1.8.13 with esp8266 version 2.7.2
and FastLED 3.3.3



-------------- next part --------------
A non-text attachment was scrubbed...
Name: fire.ino
Type: text/x-arduino
Size: 7714 bytes
Desc: not available
URL: <http://swansea.hackspace.org.uk/pipermail/hackspace/attachments/20200809/cb0dfe4a/attachment-0001.bin>


More information about the Hackspace mailing list