Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting error when running milight.lua #2

Open
rajbadri opened this issue Jan 14, 2016 · 11 comments
Open

Getting error when running milight.lua #2

rajbadri opened this issue Jan 14, 2016 · 11 comments

Comments

@rajbadri
Copy link

i am getting this error when i run milight.lua

dofile("initit.lua")

192.168.1.236 255.255.255.0 192.168.1.1
PANIC: unprotected error in call to Lua API (milight.lua:6: malformed number near '0.5')
PANIC: unprotected error in call to Lua API (attempt to call a string value)

@frizzby
Copy link
Owner

frizzby commented Jan 14, 2016

Most likely you flashed integer version of nodemcu firmware. You need float version to make this work. Give it a try.

@rajbadri
Copy link
Author

Thanks started working perfectly.
i am able to run it with the iPhone app.
Can you please suggest a app for Android

Thanks Again

@frizzby
Copy link
Owner

frizzby commented Jan 15, 2016

I do not own any androids, so i can't verify, but this one should work: https://play.google.com/store/apps/details?id=com.lierda.wifi

@rajbadri
Copy link
Author

Thanks
need one more help
i don't have esp-201 and am using nodemcu ver : 1
i am using the following pins

red = gpio 0 (D3 on nodemcu)
green = gpio 15 (D1 on nodemcu)
blue = gpio 5 (D8 on nodemcu)

i am not getting green colour on rgb strip. (blue and red is ok)

Thanks

@frizzby
Copy link
Owner

frizzby commented Jan 15, 2016

can't help with this.

Maybe gpio15 is not suitable for PWM. I had to figure out correct pins for my ESP-201 empirically because i didn't find any documentation on this.

@rajbadri
Copy link
Author

is it possible to change the gpio pins in your sketch ?

@frizzby
Copy link
Owner

frizzby commented Feb 10, 2016

The first lines of milight.lua are:

    r_pin=1 
    g_pin=2
    b_pin=3

Pin1 for red channel, Pin2 is for green and Pin3 for blue. RGB.

@Retroaktiv
Copy link

hello frizzby!
which Float version from nodemcu do you use? I have problems, and would exclude potential sources of error
Thanks!

@frizzby
Copy link
Owner

frizzby commented Feb 10, 2016

@Retroaktiv hi. i use nodemcu_float_0.9.6-dev_20150406.bin
it was quite a while ago.

@Retroaktiv
Copy link

Tanks ! works !

@rachit94
Copy link

rachit94 commented Mar 9, 2016

is it possible to use esp8266-01 + arduino uno instead of esp8266-201

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants