Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
ongvanor
@ongvanor
okay i got where the error occurs it starts in the while loop
Tejas H
@CodingCreate101
Its because of EEPROM.write()
Try this line:
EEPROM.write(i, '\0');
ongvanor
@ongvanor
that part works just the while loop gives the error
blob
this code runs fine, as you can see I comment out the while loop, the error is in the while loop
Tejas H
@CodingCreate101
That looks strange
ongvanor
@ongvanor
maybe in my firmware version?
is there anyway to display the firmware version?
Clemens Kirchgatterer
@everslick
guys, you cannot write strings that are stored in a 'String' object like that. (i'm referring to the struct above!) @tejas007tez
String is a complex type, it will only contain a pointer to the real data it holds and not the data itself. writing that String object to the EEPROM is bogus.
Tejas H
@CodingCreate101
Thanks for responding. So, it should be character array, then?
Ohh right. Now I have realised. So that's the reason why I was getting weird output. It's because of inefficient way of handling of address' right?
Nikolas Beutler
@biacz
hey guys, i got this and this and it does not work. any advice whats wrong? http://imgur.com/a/tABZR - https://gist.github.com/biacz/d1255d44841736e09f1234d0e4418cae
Lan-Hekary
@Lan-Hekary
I am Wondering why nobody is looking in the Pull requests ?? There is a lot of them ..
ongvanor
@ongvanor
hi guys how to use pin D4 to pin D9 of the NodeMCU esp8266-12e dev board?
Nikolas Beutler
@biacz
@ongvanor what do you mean exactly?
just use as described here
ongvanor
@ongvanor
im using pin D0 to D4 in output for LEDS i want to use D5 to D8 as input pins is that possible?
Nikolas Beutler
@biacz
sure
ongvanor
@ongvanor
so i can say that pinMode(D4,INPUT); to declare as input?
Nikolas Beutler
@biacz
i always use the GPIO numbers
like pinMode(12, INPUT);
ongvanor
@ongvanor
ohhhh i see thanks :)
ongvanor
@ongvanor
is there libraries i should add? im getting confused its not working lol
Nikolas Beutler
@biacz
no
is this true that GPIO16 can only be used in read and write? other pins like D5 to D10 cant be used?
Martin Ayotte
@martinayotte
As the notice says, GPIO16 can't support interrupt. Also, it has a PullDown, but no PullUp. Other than that, it can be use as normal GPIO.
ongvanor
@ongvanor
how about D5 to D8 can i use it for input button? i've been coding for hours cant find a solution
ongvanor
@ongvanor
im having this error rst cause:2, boot mode:(3,6), can this be a not enough power, im powering up in VIN 5+ 2A power supply will that be enough or i should really have a 3.3v converter to power up the module
Nikolas Beutler
@biacz
thats fine
hmm when do you have the error exactly?
ongvanor
@ongvanor
blob
when the loop goes in that function
resetSsidandpwd is D0 and is set to input
Nikolas Beutler
@biacz
well you are resetting your ESP. so you would see the above rst cause message
ongvanor
@ongvanor
oh crap i missed that area thanks for noticing
it should be inside the if statement
Steve Nelson
@zenmanenergy
Am I looking at the wrong page... the filesystem docs don't have the file.write() method. https://github.com/esp8266/Arduino/blob/master/doc/filesystem.md
Martin Ayotte
@martinayotte
@zenmanenergy , File class is derived from Stream, and Stream is derived from Print, and Print has the write() method.
Steve Nelson
@zenmanenergy
So, the file object itself does not have a write method?
Martin Ayotte
@martinayotte
No need to overwrite this method, simply use the derived one.
Steve Nelson
@zenmanenergy
ok. I think I understand. thanks
Martin Ayotte
@martinayotte
Welcome
ongvanor
@ongvanor
node mcu has really have small number of inputs is there a way i can use PWM as input with buttons that have different resistors that makes them unique in pressing?
Steve Nelson
@zenmanenergy
There are very inexpesive modules on ebay that will increase the number of GPIOs. I got some a few years ago, haven't played with them since, but if I recall, you connect the module to the esp through i2c, then there are libraries to read and write to the additional pins. I think the ones I used added 8 GPIOs
ongvanor
@ongvanor
can i have a sample? i might find one in here locally (hopefully)