+ 3

How to manage external IO in ruby

Hi, I'm very new to higher level languages and previously only had experience with assembly language. I'm just curious, is it possible to write code in ruby (or python) to test the binary value of a bit in an external device (input) and then action with if/else and send that bit value to an output ie LED, relay etc Similar to btfss/btfsc of an input port and then writing to an output port in assembly If so, how would one achieve this? Thanks all

14th Dec 2017, 8:33 AM
Conall O'Shannessy
Conall O'Shannessy - avatar
9 Respuestas
+ 9
ask the sid. he created the post. it is called "This is a Q & A for all beginners as ruby. Any queries, just posts them and I or another user will answer. Happy days😁"
21st Dec 2017, 12:19 PM
serhio923
serhio923 - avatar
21st Dec 2017, 9:57 PM
serhio923
serhio923 - avatar
+ 9
you will learn .. everything is normal)
21st Dec 2017, 10:00 PM
serhio923
serhio923 - avatar
+ 8
"q" means the question, "a" means the answer ..
21st Dec 2017, 9:54 PM
serhio923
serhio923 - avatar
+ 8
wait..
21st Dec 2017, 9:56 PM
serhio923
serhio923 - avatar
+ 8
please)
21st Dec 2017, 9:58 PM
serhio923
serhio923 - avatar
+ 1
Thanks! Where can I find this Q and A? I searched for Q and A for ruby in discussions but no results came up. thanks again
21st Dec 2017, 9:51 PM
Conall O'Shannessy
Conall O'Shannessy - avatar
+ 1
Yes. But where do I find the post you mention? or am I missing something? Thanks
21st Dec 2017, 9:56 PM
Conall O'Shannessy
Conall O'Shannessy - avatar
+ 1
Great thanks very much. Your search skills are far superior to mine 👍
21st Dec 2017, 9:59 PM
Conall O'Shannessy
Conall O'Shannessy - avatar