Author Options:

Would some one PLEASE write me a VERY basic python code? Answered

I have been very thoroughly FAILING at learning python, everything i can find on it is either far out of my league or doing something completely different than what i need

THIS is what i need

A single square button that when pressed sends a bit of "1" over serial to an arduino uno

nothing fancy,just a skeleton script allowing me to do that and HOPEFULLY figure this whole button concept out

and please, if you do decide to help me, please comment on the  various lines just  briefly telling what they do, so many of the codes ive looked at arn't very descriptive in their commenting.


Can you understand this page

I think this will be very helpful, it seems to have all of what i need, thanks

Have you got pySerial installed ?