![]() Hi,I was just wondering if there is a direct interface into w1-therm in python. = Syntax error anyway when the code struck the 'blob' in any caseI have to say that this sure helps fill in time and is way more complex than my other micro and weapon of choice: Gives a result with one line of code in two optional resolutions and has three lines of syntax and a short para explanation in the help section Andrew. I have seen the glob thing that I read somewhere only works 'pre version z.y.z' so that will not be a lot of use and may still require more pre tinkering. Os.system('modprobe w1-gpio') / os.system('modprobe w1-therm') run within the Raspi idle did nothing (no sys/bus/w1 etc folder created.I know you can create (yet another tweak / autostart modification to things but I want to be able to provide a little / lab / workshop that allows a student to just 'load the code' then plug in a DS18B20 into the bus and get a result in the most direct way possible3/. Of course this is all gone next time the Pi is started. Modprobe w1-gpio / modprobe w1-therm 'worked just fine from the cmd prompt and created the w1 folder and appropriate bits for the rest of the code to find. Like most stuff with Pi I find it very hard to get simple meaning and explanations for some commands and sort out (guesse) the environment and or user mode (pi or root) for some of them.Put me straight here / help please:1/. ![]() I am trying to set up a few little demo py scripts along with photos so students can gain confidence with interfacing simple Low cost devices like great little DS18B20 temperature sensor. I am trying to get os.system('modprobe w1-gpio') / os.system('modprobe w1-therm') to work. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |