Search found 25 matches
- Tue Jun 25, 2019 2:10 pm
- Forum: Programs, Libraries and Tools
- Topic: I2C ESP8266
- Replies: 1
- Views: 606
I2C ESP8266
Hi there , I send data from I2CBus to my sensor RFD77402 and i got this problem. I send the value 0x91 at the address 0x04 (Cmd_R) . After i try to read the same address for see if i wrote the correct number and this i what i received. 0x11 0x11 OK self.i2c.writeto_mem(Add,Cmd_R,bytearray([0x91])) t...
- Wed Jun 19, 2019 12:46 pm
- Forum: Programs, Libraries and Tools
- Topic: Call method and passed as a parameter
- Replies: 18
- Views: 2997
Re: Call method and passed as a parameter
Thank you. I think mabye is good for me start to "play" with python for have more confidence and second step ESP or other boards.
Have a good day
Sergio
Have a good day
Sergio
- Wed Jun 19, 2019 10:29 am
- Forum: Programs, Libraries and Tools
- Topic: Call method and passed as a parameter
- Replies: 18
- Views: 2997
Re: Call method and passed as a parameter
Hi
finally work , be honest with you i change side and i download the new firmware for the ESP8266.
Thank you for your patience. For sure i need your help in the future
Sergio
finally work , be honest with you i change side and i download the new firmware for the ESP8266.
Thank you for your patience. For sure i need your help in the future




Sergio
- Mon Jun 17, 2019 5:53 pm
- Forum: Programs, Libraries and Tools
- Topic: Call method and passed as a parameter
- Replies: 18
- Views: 2997
- Mon Jun 17, 2019 5:52 pm
- Forum: Programs, Libraries and Tools
- Topic: Call method and passed as a parameter
- Replies: 18
- Views: 2997
Re: Call method and passed as a parameter
Code: Select all
from machine import Pin, I2C
import RFD77402
from time import sleep
dist = rfd77 (I2C(-1, scl=Pin(5), sda=Pin(4), freq=400000))
dist.scan()
and this is the board

- Mon Jun 17, 2019 6:10 am
- Forum: Programs, Libraries and Tools
- Topic: Call method and passed as a parameter
- Replies: 18
- Views: 2997
Re: Call method and passed as a parameter
Please forgive me i wrote in your same way but still doesn't work :cry: :cry: :cry: same error download ok exec(open('main.py').read(),globals()) [76] Traceback (most recent call last): File "<stdin>", line 1, in <module> File "<string>", line 15, in <module> AttributeError: 'rfd77' object has no at...
- Sun Jun 16, 2019 8:38 pm
- Forum: Programs, Libraries and Tools
- Topic: Call method and passed as a parameter
- Replies: 18
- Views: 2997
Re: Call method and passed as a parameter
and this is the message gave to me
Thank you
Code: Select all
download ok
exec(open('main.py').read(),globals())
[76]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<string>", line 15, in <module>
AttributeError: 'rfd77' object has no attribute 'scan'
- Sun Jun 16, 2019 8:37 pm
- Forum: Programs, Libraries and Tools
- Topic: Call method and passed as a parameter
- Replies: 18
- Views: 2997
Re: Call method and passed as a parameter
from machine import Pin, I2C from micropython import const from time import sleep """ Costanti """ ICSR = const(0x00)IER = const(0x02) Cmd_R = const(0x04) Dev_Status_R = const(0x06) Rslt_R = const(0x08) RsltCnfdR = const(0x0A) Cmd_CfgR_A = const(0x0C) Cmd_CfgR_B = const(0x0E) H2M_mbx = const(0x10) ...
- Sun Jun 16, 2019 3:10 pm
- Forum: Programs, Libraries and Tools
- Topic: Call method and passed as a parameter
- Replies: 18
- Views: 2997
Re: Call method and passed as a parameter
Hi, i try to did but the first part work the scene doesn't this is the error compiler wrote to me download ok exec(open('main.py').read(),globals()) [76] Traceback (most recent call last): File "<stdin>", line 1, in <module> File "<string>", line 15, in <module> AttributeError: 'rfd77' object has no...
- Sun Jun 16, 2019 7:14 am
- Forum: Programs, Libraries and Tools
- Topic: Call method and passed as a parameter
- Replies: 18
- Views: 2997
Re: Call method and passed as a parameter
Hi , this is my library just start to grow up: from machine import Pin, I2C from micropython import const from time import sleep """ Costanti """ ICSR = const(0x00)IER = const(0x02) Cmd_R = const(0x04) Dev_Status_R = const(0x06) Rslt_R = const(0x08) RsltCnfdR = const(0x0A) Cmd_CfgR_A = const(0x0C) C...