Post about your Basic project here

Moderator: Mmiscool

User avatar
By drhaitch
#51586 http://www.drural.com/blog

I have tried to quickly write this up and post a you tube link.
Im hoping MM will add neohex to the commands for esp8266basic :)

This is a work in progress, a 16x16 grid of neopixels displaying pixel art that is stored on the flash of the esp8266. By adding a new command in arduino to espbasic, the end result is pretty good animation.
The grids can be brought on ebay for under $50 US,

I have added a few more commands to draw lines on it, so I can have a clock display also, and would like to add some text commands :) Ill upload these when they work ..


http://www.drural.com/blog
User avatar
By Mmiscool
#51615 I am adding this to the new build. Could you please make a short and simple explanation of the command for the user manual. I copied what you had on the blog but want to give a little write up on the command.

Also change it from neohex() to neo.hex() to match the formatting of the other neo functions.
User avatar
By drhaitch
#51625 Apologies for my poor explanation

NEO.HEX({pixel data},{start pixel},{data start },{number pixels},{brightness 0-100}):

pixel data = string , where each letter is 0-F in groups of 3(red,green ,blue values). No spaces or other characters used.
ie"F00" is red. "0F0" is green. "0F00F00F0" is 3 green pixels

start pixel = Integer . The first pixel in the neopixel display to set. Usually 0
data start = Integer . The location in the Pixel data string to start from. Zero indexed
ie neo.hex("000F00FFF",0,2,1,20) would select "FFF" and set the first pixel to this color at 20% brightness

Number Pixels = Integer . The number of pixels to set

brightness = 0-100 percentage of full brightness. 10 = 10% . 50 = 50%.

Example:
neo.hex("400fff",0,0,2,10)

Will use the string , starting at the start of the string copy it to the start of the neopixel display, copy 2 pixels, at 10% brighness.