Search found 5 matches

by vitor
Wed Aug 30, 2017 2:10 pm
Forum: ESP8266 boards
Topic: pulse sensor reading (sen-11574)
Replies: 6
Views: 6762

Re: pulse sensor reading (sen-11574)

Thank you, shaoziyang. I can read the value now, from 0 to 1024. I need to treat this value. Do you have a started point?
by vitor
Tue Aug 29, 2017 7:56 pm
Forum: ESP8266 boards
Topic: pulse sensor reading (sen-11574)
Replies: 6
Views: 6762

pulse sensor reading (sen-11574)

Hello, I'm trying to read the sensor data from pulse sensor (https://www.sparkfun.com/products/11574). Can someone help me? I know that I cannot connect the sensor directly to ESP8266 otherwise, could damage the ADC port. Is it true (according to http://www.instructables.com/id/Online-Heart-Rate-Mon...
by vitor
Sun Apr 02, 2017 5:39 pm
Forum: ESP8266 boards
Topic: while true in boot
Replies: 10
Views: 12398

Re: while true in boot

Hello @vitor, it is not clear to me what you want to achieve. Clearly, the intended use of boot.py is to set up the initial state, and may of us use main.py for just calling the final script. But that is a matter of style. It seems to me that you want to achieve concurrent execution of some code. T...
by vitor
Sun Apr 02, 2017 12:54 pm
Forum: ESP8266 boards
Topic: while true in boot
Replies: 10
Views: 12398

Re: while true in boot

Thanks for all your answers. Indeed my boot.py and main.py are very small, they have only the calls to other .py files and functions. @torwag: As far as I understand the post, these two lines are in boot.py: import networkconfig networkconfig.start() so start() is called, which contains the while tr...
by vitor
Sun Apr 02, 2017 2:06 am
Forum: ESP8266 boards
Topic: while true in boot
Replies: 10
Views: 12398

while true in boot

Hello, can I have a while True loop inside boot? I found this network config code (https://github.com/cpopp/MicroPythonSamples/blob/master/MicroPythonSamples/networkconfig.py). But if I put in boot.py the following code: import networkconfig networkconfig.start() and in main.py I started another cod...