Home
Forums
New posts
Search forums
What's new
New posts
New profile posts
Latest activity
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Home
Forums
Main category
Main forum
Mosfet Hat
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="TonyD" data-source="post: 495" data-attributes="member: 37"><p>Hi Again</p><p>Just carried out a couple of Python tests. Below is a screen shot of what i carried out</p><p></p><p>pi@raspberrypi:~/8mosfet-rpi $ python3</p><p>Python 3.11.2 (main, Mar 13 2023, 12:18:29) [GCC 12.2.0] on linux</p><p>Type "help", "copyright", "credits" or "license" for more information.</p><p>>>> import lib8mosfet as mos</p><p>>>> mos.set(0,1,1) "This turned on led 6 counting from board flashing light"</p><p>>>> mos.get(0,1)</p><p>1</p><p>>>> mos.set(0,8,1) "This turned on led 5 counting from the board light</p><p>>>> mos.get(0,8)</p><p>1</p><p>>>> </p><p></p><p>It appears Python corresponds the same way as command line</p><p>Please not i have not tried further testing using the python code i uploaded in my first post</p><p>I await your earliest reply</p><p></p><p>Regards TonyD</p></blockquote><p></p>
[QUOTE="TonyD, post: 495, member: 37"] Hi Again Just carried out a couple of Python tests. Below is a screen shot of what i carried out pi@raspberrypi:~/8mosfet-rpi $ python3 Python 3.11.2 (main, Mar 13 2023, 12:18:29) [GCC 12.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import lib8mosfet as mos >>> mos.set(0,1,1) "This turned on led 6 counting from board flashing light" >>> mos.get(0,1) 1 >>> mos.set(0,8,1) "This turned on led 5 counting from the board light >>> mos.get(0,8) 1 >>> It appears Python corresponds the same way as command line Please not i have not tried further testing using the python code i uploaded in my first post I await your earliest reply Regards TonyD [/QUOTE]
Verification
Post reply
Home
Forums
Main category
Main forum
Mosfet Hat
Top