hwiguna / g33k Goto Github PK
View Code? Open in Web Editor NEWPersonal code, mostly for my YouTube channel
Home Page: https://www.youtube.com/user/hwiguna
Personal code, mostly for my YouTube channel
Home Page: https://www.youtube.com/user/hwiguna
The Wire.beginTransmission() and Wire.endTransmission() should only be used when writing data. They should not be used together with Wire.requestFrom().
The next files have that:
For example this:
Wire.beginTransmission( address );
Wire.requestFrom((int)address, 1); // Ask for 1 byte from slave
val = Wire.read(); // read that one byte
error = Wire.endTransmission();
should be this:
Wire.requestFrom((int)address, 1); // Ask for 1 byte from slave
val = Wire.read(); // read that one byte
mas orang ingonesia kan saya boleh sharing dikit ilmu nxa mas
saya bingung mau buat smart house bahan nxa dan cara nxa karena saya baru kenal arduino boleh bantu dikit mas terimakasih
Hi, I have been using your great program since 2014 and I updated each time the version changed (currently v 1.0.2.3) however there are a couple of small problems I notice:
The relatively new addition of a working "Load from ESP" works fine for small scripts but if the script is long say 65 lines it stops loading at line 43 every time, that tripped me up a couple of times.
Also I notice when you first start Lua Uploader "Save to ESP" works fast however if you do a number of "Delete" and "Save to ESP" the save process becomes progressively slower, to a point were I actually close the program and then open it up again.
Please understand I like your program a lot and will continue to use it as is, this is not a deal breaker for me but hopefully you may take this post as s constructive bug report.
(wish list) a really useful addition would be line numbers down the left hand side of the screen (when I get a error in the Lua code I am writing, which is regular believe me, I find myself counting lines of code to find which line the Lua interpreter is indicating the error) I guess the line numbers could form the left boarder that scrolls with the screen for instance like not part of the code window.
Thanks and best regards
Toshi
Hey - wasn't sure how to reach you so decided to try through creating an issue.
I looked into your code for controlling USB Relays. I have similar code but written in C# for controlling relays from Windows machine, and I noticed that if I send 0x51 and 0x03 (for instance) nothing happens - but if I but 10 ms delay in between commands then it works. Did you run into similar issue?
Thanks!
When I have a multiline string, "Save to ESP" fails. Example:
print([[Hello
World]])
I can execute it, but when I save it I get this:
> SENT: file.remove("delme.lua")
SENT: file.open("delme.lua","w")
SENT: file.writeline([[print([[Hello]])
SENT: file.writeline([[World]])]])
SENT: file.close()
file.remove("delme.lua")
> file.open("delme.lua","w")
> file.writeline([[print([[Hello]])
stdin:1: nesting of [[...]] is deprecated near '['
> file.writeline([[World]])]])
stdin:1: unexpected symbol near ']'
> file.close()
I think the problem is in https://github.com/hwiguna/g33k/blob/master/ArduinoProjects/Windows/ESP8266_Related/LuaUploader/SerialPort/Form1.cs line 211:
stringBuilder.AppendLine("file.writeline([[" + line + "]])");
You may want to check if there's anything else that should be escaped.
All zip files show corrupted or damaged (different machines, different browsers)..can you please check them?
(LuaUploader_1.0.x.x.zip)
Dears,
I've got fed up of searching over the internet on this - now I want a straight forward solution or guidance please.
My project simply is to have one ESP8266 connected to a host Microcontroller to be like a hub or master to establish a local private network no need to connect to the internet. On the other hand, I have many ESP8266 devices connected to the same network and receiving data from the master ESP8266 or the Microcontroller. These ESP slave devices will receive the message from the master and turn on/off a relay on one of the gpio pins and return a status feedback to the master. That's it!
Please guide me to the correct direction. I'm so confused right now and don't know what should I focus on! Thanks in advance!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.