Go to advanced search

by justStarting
Wed Jul 19, 2017 2:57 am
Forum: Beginners
Topic: Arduino Serial doesn't work until open Serial Monitor
Replies: 11
Views: 6714

Re: Arduino Serial doesn't work until open Serial Monitor

ok, I fear that a translation issue may be a problem here, so I'll try to go through what's happened so far =) Thank you KLL for all your help and your patience with me =) I was going through everything you had put so far to see if I misunderstood something or what was happening. The very first lett...
by justStarting
Wed Jul 19, 2017 2:17 am
Forum: Beginners
Topic: Arduino Serial doesn't work until open Serial Monitor
Replies: 11
Views: 6714

Re: Arduino Serial doesn't work until open Serial Monitor

Thank you for taking the time to help me ^_^ but no, even after changing the code to the following: #!/usr/bin/python import serial import sys if len(sys.argv) == 2: s = serial.Serial('/dev/ttyACM0', 9600, timeout=1) if s.isOpen(): s.flush() s.write(sys.argv[1] + "\n") s.close() print sys.argv[1] th...
by justStarting
Wed Jul 19, 2017 1:49 am
Forum: Beginners
Topic: Arduino Serial doesn't work until open Serial Monitor
Replies: 11
Views: 6714

Re: Arduino Serial doesn't work until open Serial Monitor

Thank you for the response =) I'll go ahead and modify my python code, you're right and it being a test program is no reason for my code to be sloppy ^_^ Any idea about how to solve the problem I posted about though? Looking to have an Arduino hooked up to a headless rPi zeroW and having to buy or c...
by justStarting
Tue Jul 18, 2017 11:45 pm
Forum: Beginners
Topic: Arduino Serial doesn't work until open Serial Monitor
Replies: 11
Views: 6714

Arduino Serial doesn't work until open Serial Monitor

Hi folks =) So I wrote a simple serial testing script between the arduino and python. Arduino code: String inputString = ""; int led = 13; boolean stringComplete; void setup() { Serial.begin(9600); inputString.reserve(200); pinMode(led, OUTPUT); stringComplete = false; } void loop() { if (stringComp...
by justStarting
Sat Oct 12, 2013 10:33 pm
Forum: Python
Topic: trouble running python script with sudo [obsolete]
Replies: 9
Views: 6550

Re: trouble running python script with sudo

that appears to have done the trick, much appreciated =)
by justStarting
Sat Oct 12, 2013 11:12 am
Forum: Python
Topic: trouble running python script with sudo [obsolete]
Replies: 9
Views: 6550

Re: trouble running python script with sudo

it was either "pip install wolframalpha" or "easy_install wolframalpha", it's been a while so I don't actually recall, I think it was pip though
by justStarting
Sat Oct 12, 2013 7:16 am
Forum: Python
Topic: trouble running python script with sudo [obsolete]
Replies: 9
Views: 6550

Re: trouble running python script with sudo

after adding:

Code: Select all

import sys
print sys.version
then running the same script the version returns as "2.7.3 (default, Jan 13 2013, 11:20:46)
[GCC 4.6.3]" for with and without using sudo
by justStarting
Sat Oct 12, 2013 5:09 am
Forum: Python
Topic: trouble running python script with sudo [obsolete]
Replies: 9
Views: 6550

trouble running python script with sudo [obsolete]

so I have a python script running fine on my RPi when I trigger it with "python takeSpeech.py", however as soon as I add a sudo to it like: sudo python takeSpeech.py I get the following error: Traceback (most recent call last): File "takeSpeech.py", line 11, in <module> import wolframalpha ImportErr...
by justStarting
Wed Jul 17, 2013 2:15 am
Forum: Beginners
Topic: command line leafpad?
Replies: 10
Views: 14378

Re: command line leafpad?

unfortunately

Code: Select all

leafpad -display :0.0 somefile.txt
gives me the error message "leafpad: Unknown option -display" =(
I do also very much appreciate your efforts to help me ^_^
by justStarting
Mon Jul 15, 2013 11:41 pm
Forum: Beginners
Topic: command line leafpad?
Replies: 10
Views: 14378

Re: command line leafpad?

just to know how to start it without the menu ^_^ I seem to have found the problem, apparently it does work that way, just not through ssh on putty on my laptop lol(I figured running it through putty would simply try to open it on the pi's desktop, I was wrong). So is there a way to force it to open...
by justStarting
Mon Jul 15, 2013 10:49 pm
Forum: Beginners
Topic: command line leafpad?
Replies: 10
Views: 14378

Re: command line leafpad?

well, mainly it's so I can have an easy way of displaying a text file on screen without the command line lol. I have a python script that is writing lists as it's receiving data (when prompted). I'm still fairly new to python and haven't dealt with pygame very much yet, and I'll use that later to ma...
by justStarting
Mon Jul 15, 2013 9:40 pm
Forum: Beginners
Topic: command line leafpad?
Replies: 10
Views: 14378

command line leafpad?

So is there a way to make leafpad turn on from the command? like if I wanted something like "leafpad 'filename.txt'" to launch in a gui mode, how would I launch it from the command line?

Go to advanced search