Page 3 of 3

Re: unable to communicate with doit esp-12n developemebt board

Posted: Tue Feb 18, 2020 4:45 pm
by jay2026
Roberthh wrote:
Tue Feb 18, 2020 3:59 pm
You can set the pin value with either:

pin.value(1) resp. pin.value(0)

or shorthand:

pin(1) or pin(0)

For any question on usage, please refer the documentation: http://docs.micropython.org/en/latest/
There are quick examples for each module type, e.g. ESP8266 and Pin:
http://docs.micropython.org/en/latest/e ... s-and-gpio
Thank you so much sir this issue occurred due changes in the code

Code: Select all

dir(machine.Pin)
the low and high have been changed to on and off
Sir i accidentally press the RST switch on the board and found i'm getting garbage values like shown below
>>> {$lܞ|�c�N

�l�"|����r���
#��oo�$no���
cp��bl`rlp�o�

l

b
o��n��ll�b��Nn�$��d �2oN
l or���o�d p�N�
r�����

b
N��nl$

�p�|�N�
$`�2no$`n{����

�lp�o�
r�ܜ��
��
b
N��n�

B��oo�

d �Nn
d or���N
���rdr��o
���l��
l��|�����{oB����$�p�
b�lb쌜���


c�bl`dlܾ�����{oB���l��
c��b쌜��B�
�cl �l��|��rrN"���l��

c�
c서���
b�dBl����n쒜p��o|�$
lld ��r�$���

l ��{�p��l�

l ��{�p����ll`rl��r$����B��c�Bbr��r
B��o��nn�l���
l
�l��d$��l�����sd�N���bb
l
d�rp

��cB$
�c{$rls�o�����nܞb���������cl�"�pcl ��lN�prl�lܞ����s#4 ets_task(40100164, 3, 3fff829c, 4)
OSError: [Errno 2] ENOENT
I did some digging and found that i was missing main.py file n that was the reason for "OSError: [Errno 2] ENOENT" i followed this link https://github.com/micropython/micropyt ... /issues/90 to fix the ENOENT error hoping the garbage values will go but i still have the issue sir i no longer have the OSError but the garbage values still appear when i press the RST on the board

Re: unable to communicate with doit esp-12n developemebt board

Posted: Tue Feb 18, 2020 4:53 pm
by Roberthh
The garbage is normal and no sign of an error. After reset, the first messages of the boot loader are send with 76800 baud. Received at 115200 baud, that looks like garbage. So nothing is broken. You just did not see that before.
And yes. This ENOENT message just says: file not found. In this case: main.py

Re: unable to communicate with doit esp-12n developemebt board

Posted: Wed Feb 19, 2020 5:03 am
by jay2026
Roberthh wrote:
Tue Feb 18, 2020 4:53 pm
The garbage is normal and no sign of an error. After reset, the first messages of the boot loader are send with 76800 baud. Received at 115200 baud, that looks like garbage. So nothing is broken. You just did not see that before.
And yes. This ENOENT message just says: file not found. In this case: main.py
Can that not be changed sir

Re: unable to communicate with doit esp-12n developemebt board

Posted: Wed Feb 19, 2020 5:13 am
by jimmo
jay2026 wrote:
Wed Feb 19, 2020 5:03 am
Can that not be changed sir
Already being discussed in another thread -- viewtopic.php?f=16&t=7785