Onewire DS18B20 #852
Replies: 4 comments 9 replies
-
@wilberforce, can you help with this? |
Beta Was this translation helpful? Give feedback.
-
sure!
You could set this up so that these values in the manifest the same way these are set up: moddable/modules/drivers/onewire/esp/modonewire.c Lines 36 to 38 in e9742b4 Then you can override in your manifest and use the #defined
So when you read the resolution after setting it does not come back as 9? Does the example work for you with a short run? moddable/examples/drivers/onewire/main.js Lines 63 to 69 in e9742b4 |
Beta Was this translation helpful? Give feedback.
-
Thank wilberforce,
|
Beta Was this translation helpful? Give feedback.
-
I ran the example code with a couple of DS18b20 ... this is what I see:
So the resolution does appear to set using the examples. |
Beta Was this translation helpful? Give feedback.
-
I included in my project the module "Onewire" and I added to my moddable two until 4 sensors DS18B20..
I have two problem:
In the module it seems that when this scratchpad is called the first byte is set to "78" (??) and the command "sensor.resolution = 9" no effect on the resolution.
Beta Was this translation helpful? Give feedback.
All reactions